Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/sqlite repo #71

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open

Feature/sqlite repo #71

wants to merge 38 commits into from

Commits on Aug 12, 2024

  1. Configuration menu
    Copy the full SHA
    fb8da82 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dbf8df1 View commit details
    Browse the repository at this point in the history
  3. adds make test

    codecakes committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    bfa02f9 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

  1. Configuration menu
    Copy the full SHA
    d5ff73a View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    a55413c View commit details
    Browse the repository at this point in the history
  2. refactoring project structure to match a more decoupled logic away fr…

    …om blacksheep framework. most of these layers do not have to be tied to a framework's folder. any other framework can simply consume these layers as well
    codecakes committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    e288445 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2024

  1. Configuration menu
    Copy the full SHA
    d1c733f View commit details
    Browse the repository at this point in the history
  2. refactored code to adhere to interface requirements and implement mis…

    …sing functionality to make tests green
    codecakes committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    ad6805e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b296d89 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Configuration menu
    Copy the full SHA
    e99d741 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59fbde7 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. added support libraries

    codecakes committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    4f24bd9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef85176 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d3ff7c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    962a1da View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. refactored unit tests to have dummy functions move to conftest. fix t…

    …heir type annotaitons. added e2e api testing support in start_server and conftest. added unit test configuration setup in pyproject. ignore any db files in project
    codecakes committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    916defe View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. refactors dummy tests, removed to conftest. make test works. added te…

    …st-integration marker WIP. adds support for test markers
    codecakes committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    22e14e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00d5884 View commit details
    Browse the repository at this point in the history
  3. fix typo

    codecakes committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    90cb943 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a180a72 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a7d58c9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5d79824 View commit details
    Browse the repository at this point in the history
  7. added sqlite models to support sqlite database. database.py enhances …

    …app level infra setup using DI using rodi's Container that sets up database and session
    codecakes committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    c576c43 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fca13b0 View commit details
    Browse the repository at this point in the history
  9. major rewrite of test services for integration test for Sqlite Repo D…

    …B. refactored code to use container to setup database using start_test_database and asyncSetUp. WIP: test_fetch_facilities
    codecakes committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    c8f23f9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    39bbd27 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    5ddf9ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3d15a1f View commit details
    Browse the repository at this point in the history
  3. Feature/sqlite repo: setup for GeoLocationServiceSqlRepoDBTest (#68)

    Unstable, active and WIP: This is where things start taking shape for setting test coverage
    `GeoLocationServiceSqlRepoDBTest` to implement issue: #26 ;
    
    - major rewrite of test services for integration test for Sqlite Repo
    DB. refactored code to use container to setup database using
    start_test_database and asyncSetUp. WIP: test_fetch_facilities
    - added sqlite models to support sqlite database. database.py enhances
    app level infra setup using DI using rodi's Container that sets up
    database and session
    codecakes committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    87265fd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fbb2c0a View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Configuration menu
    Copy the full SHA
    0dd37fb View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. Configuration menu
    Copy the full SHA
    a6f45ed View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Fix: Removed commented out line in pyproject.toml and setup project i…

    …n local (#74)
    
    ## Description
    
    - Remove the commented out line
    - Ensure project is setup and runs successfully on your local
    
    I have uncommented the line instead of removing that to install them as
    dev dependencies
    
    Fixes #52
    JiyaGupta-cs authored and codecakes committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    938b62f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    210d0c6 View commit details
    Browse the repository at this point in the history
  3. adds docker support for integration testing and running containerized…

    … service (#75)
    
    resolves #73
    
    adds:
    
    - Dockerfile.build: This is the base multi-stage image.
    - Dockerfile: Main image to run the service using docker compose.
    - Dockerfile.test-integration: For running integration tests.
    
    <!-- Generated by sourcery-ai[bot]: start summary -->
    
    ## Summary by Sourcery
    
    Add Docker support for integration testing and running the service in a
    containerized environment. Update documentation to guide developers on
    setting up and using Docker for local testing and service emulation.
    Introduce Dockerfiles for building base, main, and integration test
    images, and add a Docker Compose configuration for service deployment.
    
    New Features:
    - Introduce Docker support for integration testing and running the
    service in a containerized environment using Docker Compose.
    
    Enhancements:
    - Update CONTRIBUTING.md and README.md to include instructions for
    setting up and running the containerized application, enhancing the
    documentation for developers.
    
    Build:
    - Add Dockerfile.build for creating a base multi-stage image, Dockerfile
    for the main service image, and Dockerfile.test-integration for
    integration testing.
    
    Deployment:
    - Add docker-compose.yml to define the containerized service setup,
    including shared configuration for ports, volumes, and logging.
    
    Documentation:
    - Enhance user-facing documentation in CONTRIBUTING.md and README.md to
    guide developers on using Docker for local integration testing and
    service emulation.
    
    <!-- Generated by sourcery-ai[bot]: end summary -->
    codecakes committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    e19185b View commit details
    Browse the repository at this point in the history
  4. these changes reflect a working spatialite extension to sqlite. the t…

    …abels are created in container and spatialite is loaded successfully
    codecakes committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    71f5c43 View commit details
    Browse the repository at this point in the history
  5. WIP: Feature/fix infra spatialite (#79)

    Introduces changes to fix spatialite extension loading issue to support
    data fields in sqlachemy model type `POINT`. This change directly
    supports the work in #26
    - Fixes spatialite extension as loadable with the updated dockerfile
    setup and correct implementation using aiosqlite compatibility
    - Temporary disables integration test. The repository return type needs
    to be refactored and return type changed to list dto facilities results
    
    <!-- Generated by sourcery-ai[bot]: start summary -->
    
    Fix SpatiaLite extension loading issue to support spatial data fields in
    SQLAlchemy models. Introduce a new `PointType` for handling geopoint
    data. Refactor test database setup and temporarily disable integration
    tests pending refactoring. Update build scripts and Makefile for
    improved Docker handling.
    
    New Features:
    - Introduce a new `PointType` class to handle geopoint data types in
    SQLAlchemy models, enabling support for spatial data fields like
    `POINT`.
    
    Bug Fixes:
    - Fix the loading of the SpatiaLite extension in the database setup to
    support spatial data operations.
    
    Enhancements:
    - Refactor the test database setup to use a new `SetUpTestDatabase`
    class, improving the management of test database lifecycle and session
    handling.
    
    Build:
    - Update the Makefile to include a new `set-docker` target and modify
    the `docker-run-server` target to remove orphan containers.
    
    Tests:
    - Temporarily disable integration tests due to the need for refactoring
    repository return types and changing return types to list DTO facilities
    results.
    
    Chores:
    - Update the `run.sh` script to include additional logging for file
    listing and database removal.
    
    <!-- Generated by sourcery-ai[bot]: end summary -->
    
    ---------
    
    Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
    codecakes and sourcery-ai[bot] committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    b98428a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4354017 View commit details
    Browse the repository at this point in the history