Closed OwenPriceSkelly closed 4 months ago
Attention: Patch coverage is 40.00000%
with 12 lines
in your changes missing coverage. Please review.
Project coverage is 74.65%. Comparing base (
b769232
) to head (93f40fe
). Report is 19 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
garden_ai/client.py | 9.09% | 10 Missing :warning: |
garden_ai/backend_client.py | 33.33% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
closes #497
Overview
This PR includes logic to toggle the sdk's use of
/garden-search-record
routes on the backend, similar to the local_data toggle (but was much simpler in practice).Discussion
The dev backend has already deprecated the
/garden-search-record
routes, which was handy for testing this. When it's time to "flip the switch" on the migration, my plan is for the SDK side to just cut a new release with thelocal_data
andglobus_search._IS_DISABLED
constants hardcoded toTrue
. The subsequent cleanup PR can worry about the unreachable code left over as well as tidying up the schemas we no longer need in a local-data-free world.Testing
Manually, with
garden create
;garden publish
andgarden delete
. Since these were the only operations that touched the search index this was enough to convince me. Because the dev backend already syncs with the dev search index, I was able to see the changes propagate through on the staging frontend despite not calling the/garden-search-record
routes anywhere.Documentation
n/a
📚 Documentation preview 📚: https://garden-ai--501.org.readthedocs.build/en/501/