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] Add presets #62

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

[feature] Add presets #62

wants to merge 12 commits into from

Commits on Jul 31, 2024

  1. Add presets table and setup alembic for migrations

    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    0745faa View commit details
    Browse the repository at this point in the history
  2. Add services/presets.py

    Create presets service for database operations
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    edd9da5 View commit details
    Browse the repository at this point in the history
  3. Add routes/presets.py

    Create endpoints for presets
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    35838c7 View commit details
    Browse the repository at this point in the history
  4. tests/conftest.py: Add fixtures

    Add fixtures to conftest.py for database session and FastAPI
    TestClient
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    3d3f4b5 View commit details
    Browse the repository at this point in the history
  5. Add tests/test_preset.py

    Add unittests for /presets endpoint
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    b78886a View commit details
    Browse the repository at this point in the history
  6. gh-actions/start.sh: Add database environment variable

    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    b2a7de8 View commit details
    Browse the repository at this point in the history
  7. .github/workflows/unit_tests.yaml: Add database env variable

    Add TEUTHOLOGY_API_SQLITE_URI environment variable to tox.ini
    and unit_tests.yaml
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    54099fc View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. Add check for preset limit

    Added a limit on how many presets a user can store at
    a time (currently 10)
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    bd3b11d View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Add PresetArgs schema, update Presets cmd column type

    Added a schema for /add endpoint request body for validating
    cmd attribute. Updated the cmd column datatype from string to
    JSON for the Presets model.
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    955c1dc View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Update documentation

    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    2b70962 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Add query parameter to search preset by suite

    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    72c88d9 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Convert username to lowercase, update request models for presets

    Removed the suite attribute from PresetArgs, created a new model
    for /update with optional preset fields
    
    Signed-off-by: Devansh Singh <[email protected]>
    Devansh3712 committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    1b9424f View commit details
    Browse the repository at this point in the history