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

Deploy v1 #95

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Deploy v1 #95

merged 2 commits into from
Dec 17, 2024

Conversation

mbarrenechea
Copy link
Member

This pull request includes several changes to the api project, focusing on enhancing the metadata handling, improving the filtering capabilities, and updating tests to reflect these changes. The most important changes include the addition of new dependency functions, restructuring metadata endpoints, and updating tests to ensure proper functionality.

Metadata Handling Improvements:

  • Added a new endpoint grid_dataset_metadata_in_area to return metadata with updated min and max values for the specified area.
  • Introduced load_meta function with @lru_cache decorator to load and cache metadata.

Filtering Enhancements:

  • Added colum_filter and feature_filter dependency functions to handle column and feature filtering.
  • Updated grid_tile and grid_tile_in_area functions to use the new dependency functions for filtering. [1] [2]

Test Updates:

  • Added a METADATA constant in conftest.py to provide sample metadata for testing.
  • Updated tests in test_grid.py to check for correct metadata retrieval and filtering. [1] [2]
  • Modified grid_dataset fixture to use the sample metadata.

Dockerfile Update:

  • Modified the CMD instruction in Dockerfile to include a --root-path parameter for better API path handling.

These changes collectively improve the functionality and reliability of the API, particularly in terms of metadata management and data filtering.

* Meta endpoint now can return dynamic min/max based on a polygon filter

* Starts tests

* Fixes testss
* Meta endpoint now can return dynamic min/max based on a polygon filter

* Starts tests

* Fixes testss

* Add root-path to uvicorn run command
@mbarrenechea mbarrenechea self-assigned this Dec 17, 2024
Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
amazonia-360 ⬜️ Ignored (Inspect) Dec 17, 2024 8:52am

@mbarrenechea mbarrenechea merged commit 5a66d66 into staging Dec 17, 2024
6 checks passed
@alexeh alexeh deployed to production January 13, 2025 09:12 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants