Paginate Sampling Sites & Separate Spatial Data in API Responses
Links to Jira Tickets
- https://apps.nrs.gov.bc.ca/int/jira/browse/SIMSBIOHUB-629
Description of Changes
- Adds a
/sample-site/spatialendpoint for retrieving the geojson data for all sites in the survey - Removes geojson property from the response when requesting all sampling sites in the survey
- Paginates sampling sites on the frontend (backend pagination was already in place)
- For the sampling site accordions on the observations page, does not load accordion content until expanded
Testing Notes
- Should not be any double requests for sampling site data
Openshift URLs for the PR Deployment:
- App Route: https://biohubbc-app-1393-af2668-dev.apps.silver.devops.gov.bc.ca/
- Api Route: https://biohubbc-api-1393-af2668-dev.apps.silver.devops.gov.bc.ca/
- Pods: https://console.apps.silver.devops.gov.bc.ca/k8s/ns/af2668-dev/pods?name=1393
Codecov Report
Attention: Patch coverage is 13.79310% with 600 lines in your changes missing coverage. Please review.
Project coverage is 45.72%. Comparing base (
5203f31) to head (5e75350). Report is 1 commits behind head on dev.
Additional details and impacted files
@@ Coverage Diff @@
## dev #1393 +/- ##
==========================================
- Coverage 46.30% 45.72% -0.58%
==========================================
Files 784 801 +17
Lines 21225 21639 +414
Branches 3194 3253 +59
==========================================
+ Hits 9828 9895 +67
- Misses 10810 11155 +345
- Partials 587 589 +2
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Openshift URLs for the PR Deployment:
- App Route: https://biohubbc-app-1393-af2668-dev.apps.silver.devops.gov.bc.ca/
- Api Route: https://biohubbc-api-1393-af2668-dev.apps.silver.devops.gov.bc.ca/
- Pods: https://console.apps.silver.devops.gov.bc.ca/k8s/ns/af2668-dev/pods?name=1393
Just going to change this to a draft temporarily as we are hitting the limit on our openshift resources.
Openshift URLs for the PR Deployment:
- App Route: https://biohubbc-app-1393-af2668-dev.apps.silver.devops.gov.bc.ca/
- Api Route: https://biohubbc-api-1393-af2668-dev.apps.silver.devops.gov.bc.ca/
- Pods: https://console.apps.silver.devops.gov.bc.ca/k8s/ns/af2668-dev/pods?name=1393
@mauberti-bc Okay, other than any minor CSS tweaks, etc, you might have, it should be good to go.
I'll do the other TODOs in a separate PR:
- Add pagination to the period table on the survey page.
- See if I can make the dropdown modal wider (somehow its working for the taxon/site control, but not the technique/period, even though they use the same autocomplete under the hood. But havent poked at it too hard yet)
