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

DM-37609: Resurrect prototype client/server and add tests #774

Merged
merged 51 commits into from
Jan 25, 2023
Merged

Commits on Jan 20, 2023

  1. Initial test server

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    1d3dd15 View commit details
    Browse the repository at this point in the history
  2. Simplify dataset type query

    The expression is now a path component rather than query param.
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    6c8c23d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    06854f9 View commit details
    Browse the repository at this point in the history
  4. Add getDatasetType

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    6671fe6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2abf500 View commit details
    Browse the repository at this point in the history
  6. Fix some model return types

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    85232e2 View commit details
    Browse the repository at this point in the history
  7. Add some features from testing

    * dimension universe
    * return butler config
    * query datasets types now properly handles expressions
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    451bc65 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b24bb30 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fb1b599 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4ac0018 View commit details
    Browse the repository at this point in the history
  11. Add query data IDs

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    3bc03bd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0d67b13 View commit details
    Browse the repository at this point in the history
  13. Clean up some collection queries

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    c928087 View commit details
    Browse the repository at this point in the history
  14. Remove unused imports

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    5d33ee6 View commit details
    Browse the repository at this point in the history
  15. Create butler at launch

    This significantly improves performance.
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    92bc391 View commit details
    Browse the repository at this point in the history
  16. Switch to using a "butler" subapp

    This means that the service runs at /butler
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    8355979 View commit details
    Browse the repository at this point in the history
  17. Change class for remote registry

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    62d1e68 View commit details
    Browse the repository at this point in the history
  18. Add v1 to REST API

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    2bf8d78 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    067c080 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    099c949 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9119164 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ff98853 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f61d7b3 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    cf25782 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    b79945f View commit details
    Browse the repository at this point in the history
  26. Add missing response models

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    3a1d7fc View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    f030fce View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    fbfde5c View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    86afad4 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    b33a26f View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    df05250 View commit details
    Browse the repository at this point in the history
  32. Stop using deepcopy to copy configs

    Use the same method we use when copying other mappings.
    Deepcopy causes problems if we try to attach objects to a config
    after reading the config (for example in client/server testing).
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    83fddf6 View commit details
    Browse the repository at this point in the history
  33. Protect the BUTLER_ROOT replacement against unexpected types

    In some edge cases a field that is normally a string will
    be replaced by an object that does not support BUTLER_ROOT.
    Catch the type error.
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    94eb951 View commit details
    Browse the repository at this point in the history
  34. Defer reading of Butler repo until we need it

    This works around the problem of hardcoding the butler repo location
    (which needs to be fixed in the future) for testing.
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    104e2d0 View commit details
    Browse the repository at this point in the history
  35. Add FastAPI to requirements

    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    4722558 View commit details
    Browse the repository at this point in the history
  36. Add basic client/server registry test

    Testing needs to be expanded but this demonstrates that testing
    can be done.
    timj committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    9e86339 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    6861280 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    1d8ddff View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    d076df7 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    2045766 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    0bb1505 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    6da6ff6 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2023

  1. Add test for the get_uri method

    This is not going to be a production method but is there
    as a demonstration. To make it work we had to implement
    refresh in the server but the long term usefulness of this
    needs thought. What happens if a dataset type or collection
    is added to the server butler? How do the cached butler objects
    in the server know they all need to update?
    timj committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    2fe8bc5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b9331b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    527f6c1 View commit details
    Browse the repository at this point in the history
  4. Fix two minor typos

    timj committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    7bd55e9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c7d637b View commit details
    Browse the repository at this point in the history
  6. Add v1 to universe API

    It's likely not necessary since this is a simple GET that
    returns a dict, but playing it safe won't harm anything.
    timj committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    2ee6528 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ef377d6 View commit details
    Browse the repository at this point in the history
  8. Combine import checks for fastapi

    They will all fail anyhow if FastAPI is not installed.
    timj committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    f5ed3d4 View commit details
    Browse the repository at this point in the history
  9. Add news fragment

    timj committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    31dac07 View commit details
    Browse the repository at this point in the history