AtlasOfLivingAustralia / spatial-hub

New spatial portal front end using AngularJS
https://spatial.ala.org.au/
7 stars 16 forks source link

Display error message when we apply a filter/prefix on a numeric field in Facet query #392

Closed qifeng-bai closed 1 year ago

qifeng-bai commented 3 years ago

No error message is displayed when we apply a filter/prefix on a numeric field (year)

Select 'Add to map' -> Click on "Facet" -> Scroll down to 'Select Facet' -> Select 'Year' You should see years listed underneath

Type '134' in filter and click "Apply filter" A progress bar pops up, no result comes back

Reason

Biocache supports 'json / plain text' types when it returns data. However, it only supports 'plain text' when it returns error

link to: https://github.com/AtlasOfLivingAustralia/biocache-service/issues/587

Solution 1, Set hearder to accept 'Plain text' when we query facets (Temporary solution) 2, Log and display errors

qifeng-bai commented 3 years ago

PR: https://github.com/AtlasOfLivingAustralia/spatial-hub/pull/393