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

Should Biocache WS support query parameters that are not URL encoded? #886

Closed
qifeng-bai opened this issue Mar 8, 2024 · 2 comments
Closed
Assignees

Comments

@qifeng-bai
Copy link
Contributor

For example:
https://biocache-test.ala.org.au/occurrences/search?q=species_list_uid:dr21646&fq=decade:2020&fq=country:Australia&fq=first_loaded_date:[2023-02-07T13:00:00Z%20TO%20*]&fq=occurrence_date:[2023-02-07T13:00:00Z%20TO%20*]&sort=first_loaded_date&dir=desc&disableAllQualityFilters=true

returns no records without errors.

However, after we replaced species_list_uid:dr21646 with species_list_uid%3Ddr21646, the url returns occurences

@adam-collins adam-collins self-assigned this Mar 8, 2024
@adam-collins
Copy link
Contributor

Closing as the problem is in specieslist-webapp.

  1. species_list_uid is only usable for authoritative lists. e.g. https://biocache.ala.org.au/occurrences/search?q=species_list_uid:dr947
  2. species_list is what you want for non-authoritative lists. e.g. https://biocache.ala.org.au/occurrences/search?q=species_list:dr21646
  3. lists has a matching bug that prevents uploading a list with only taxonID. See Species list upload from spatial is now broken specieslist-webapp#299
  4. when you encode the colon you break the search. It ends up doing a search on the default catch all text field, i.e. the wrong results for this example.

@qifeng-bai
Copy link
Contributor Author

@adam-collins However, in the Alerts, when we subscribe a list, it does not check if it is an authoritative list or not, it always use species_list_uit to construct its query

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

No branches or pull requests

2 participants