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

WIP - Condense configurations into conventions for Database (Metadatastore) Adapters #1460

Merged

Commits on Jul 9, 2024

  1. logs red to green

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    23b6082 View commit details
    Browse the repository at this point in the history
  2. logs reflect debug status

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    ac0572d View commit details
    Browse the repository at this point in the history
  3. import submodule

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    dc33421 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2488380 View commit details
    Browse the repository at this point in the history
  5. found the bug duplication

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    39fe6f2 View commit details
    Browse the repository at this point in the history
  6. black

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    c74109b View commit details
    Browse the repository at this point in the history
  7. isort

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    ca93678 View commit details
    Browse the repository at this point in the history
  8. placeholder while thinking

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    20bd4cc View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    57da67a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    56368a0 View commit details
    Browse the repository at this point in the history
  11. most of the initial config override in test_server

    is working. Next up:
    - isolate the test_server failing tests
    - move the settings mock into a conftest fixture
    - add a test hook for SyncServer so you can do the
    same thing there.
    - propigate.
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    92f136e View commit details
    Browse the repository at this point in the history
  12. abstracted fixture

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    72b88c7 View commit details
    Browse the repository at this point in the history
  13. moving more to fixtures

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    af7bb37 View commit details
    Browse the repository at this point in the history
  14. defaults

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    6e6d310 View commit details
    Browse the repository at this point in the history
  15. Removed duplication of constants/configs/envars

    for default persona, human, and preset. Now all
    derived from settings (which is in turn derived
    from envars). Still need to square away with the
    config file hierarchy, so once we resolve the value
    there is only one definitive source of truth across
    the rest of the code.
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    5c3d7fe View commit details
    Browse the repository at this point in the history
  16. conflicting persist

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    094abd0 View commit details
    Browse the repository at this point in the history
  17. Started a working README for refactor, so if I get

    hit by a bus the next person doesn't need to spend
    a week getting up to speed.
    
    This helps clarify the goal in this PR: one config
    hierarchy assembled once, with one mega hook.
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    3e6e3bb View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4fe9670 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    73c636c View commit details
    Browse the repository at this point in the history
  20. This is the basic 2 backend pattern.

    TODO:
    - mount the test sqlite/chroma somewhere that doesn't
    clutter up the repo
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    62da646 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    2ea713b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    d0d18d7 View commit details
    Browse the repository at this point in the history
  23. updating readme

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    0187d81 View commit details
    Browse the repository at this point in the history
  24. more readme

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    732cbbb View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    347c9f0 View commit details
    Browse the repository at this point in the history
  26. I'm trying to keep this as close to the current model as possible whi…

    …le stripping out extraneous elements. The memory thing needs to be abstracted in a later time, never clear if these are strings or templates or references to a related object
    Ethan Knox authored and norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    7cae7cf View commit details
    Browse the repository at this point in the history
  27. basic ORM pattern for most objects

    Ethan Knox authored and norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    0f3e8c8 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4e22369 View commit details
    Browse the repository at this point in the history
  29. pretty sure this is the current model

    Ethan Knox authored and norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    4347d39 View commit details
    Browse the repository at this point in the history
  30. alembic-managed migrations

    Ethan Knox authored and norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    90349f0 View commit details
    Browse the repository at this point in the history
  31. migrations now included on startup. we need to add it to every possib…

    …le entrypoint to be good to go
    Ethan Knox authored and norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    b8391a9 View commit details
    Browse the repository at this point in the history
  32. added jobs model

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9f0b8dc View commit details
    Browse the repository at this point in the history
  33. configs pattern for now. these should be 1st class. also there needs …

    …to be helpers like palm to do migrations and such
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    d11f87b View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    c4e45b0 View commit details
    Browse the repository at this point in the history
  35. pg_uri is now the _only_ db setting. it will always have the correct …

    …scheme. the settings.backend object is self-contained, so no more external double-setting
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1c2ae94 View commit details
    Browse the repository at this point in the history
  36. chewing through all the redundant crud methods in metadata to ideally…

    … stub everything over to ORM models.
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    2c3ca0d View commit details
    Browse the repository at this point in the history
  37. The big cutover to ORM begins! What's happening here:

    1. the metadata.py file is being updated to use the ORM
    2. conflicting models are being sunset and/or quarantined for this PR
    3. CRUD accessors stay in metadatastore but are now managed behind the scenes by the ORM
    
    This is going to break a lot of things (which is goodTo get unbroken:
    1. update the tests to no longer be aware of the backend configs
    2. update the code to same
    3. remove all the SQLModel and deprecated backend code
    4. document (loom) how the ORM works, how to create migrations, how
    to traverse the ORM tree etc etc.
    
    Strategy here should be to merge this into a long-running branch and start CI against it,
    then keep pulling main into it until we're ready for a major release (this will be a major).
    
    Configs will be extremely thin after this PR. We should be
    set up to move docker dev to a single stack and docker quickstart to a single image.
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e440f24 View commit details
    Browse the repository at this point in the history
  38. hacking out SQLModel

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    7f9a7a3 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    585a3cb View commit details
    Browse the repository at this point in the history
  40. stripped all the SQLModel, pydantic schemas vs dataclasses vs arb cla…

    …sses still a mess, but I think we can get around that to get things working
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    ec0b328 View commit details
    Browse the repository at this point in the history
  41. cleanup

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    ed09718 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    fe38a1f View commit details
    Browse the repository at this point in the history
  43. minimal orm test passes

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    3fb3931 View commit details
    Browse the repository at this point in the history
  44. Conftest ALMOST has a scoped test app so we can

    stop spinning up servers in tests!
    But...
    1. need to move the db_session all the way up to
    the request (where it belongs).
    2. dep inject that thing at request time!
    3. dep override it in conftest!
    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    37a04a2 View commit details
    Browse the repository at this point in the history
  45. breakpoint to rebase

    norton120 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    7f4711e View commit details
    Browse the repository at this point in the history