NASA-IMPACT / COSMOS

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.
https://sde-indexing-helper.nasa-impact.net/
3 stars 1 forks source link

Fix /candidate-urls-api endpoint to add include patterns above exclude patterns in URLs list #1042

Open Kirandawadi opened 2 months ago

Kirandawadi commented 2 months ago

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 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.

Dependencies

No response