Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
grid_dataset_metadata_in_area
to return metadata with updated min and max values for the specified area.load_meta
function with@lru_cache
decorator to load and cache metadata.Filtering Enhancements:
colum_filter
andfeature_filter
dependency functions to handle column and feature filtering.grid_tile
andgrid_tile_in_area
functions to use the new dependency functions for filtering. [1] [2]Test Updates:
METADATA
constant inconftest.py
to provide sample metadata for testing.test_grid.py
to check for correct metadata retrieval and filtering. [1] [2]grid_dataset
fixture to use the sample metadata.Dockerfile Update:
CMD
instruction inDockerfile
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.