COSMOS is a web application designed to manage collections indexed in NASA's Science Discovery Engine (SDE), facilitating precise content selection and allowing metadata modification before indexing.
Fix /candidate-urls-api endpoint to add include patterns on the top of exclude patterns before returning the URLs list. Currently, the response only contains URLs list excluding those URLs matched by exclude_patterns.
Implementation Considerations
Fix with_exclusion_status() function on models/candidate_url.py to also accomodate inclusion status
Deliverable
The URLs list returned by the endpoint should be matched by excluded_patterns at first with include_patterns on the top.
Description
Fix
/candidate-urls-api
endpoint to add include patterns on the top of exclude patterns before returning the URLs list. Currently, the response only contains URLs list excluding those URLs matched by exclude_patterns.Implementation Considerations
Fix
with_exclusion_status()
function onmodels/candidate_url.py
to also accomodate inclusion statusDeliverable
The URLs list returned by the endpoint should be matched by excluded_patterns at first with include_patterns on the top.
Dependencies
No response