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

SIMSBIOHUB-445: Feature Branch - Consolidate Observations/Telemetry/Animals #1202

Merged
merged 104 commits into from
Jan 31, 2024

Conversation

curtisupshall
Copy link
Contributor

@curtisupshall curtisupshall commented Jan 23, 2024

Links to Jira Tickets

Description of Changes

  • Combined the Telemetry and Observations map/table view on the Survey page, allowing users to toggle between them;
  • Added server-side support for paginating the observations fetching endpoint;
  • Modified the Manage Observations page to use server-side pagination;
  • Added a new endpoint to fetch all the spatial data relating to survey observations;
  • Deleted some old code related to Survey Summary Results.

Testing Notes

You should be able to:

  • View observation and telemetry points on the survey page
  • On the survey page, sort on various columns and page through the observations table (except for Species; see 465)
  • On the Manage Observations page, sort on various columns and page through the observations

@jeznorth jeznorth self-requested a review January 30, 2024 22:01
jeznorth
jeznorth previously approved these changes Jan 30, 2024
@NickPhura
Copy link
Collaborator

Found one funny interaction, which could probably be fixed in a later PR: If you add a new record on the observation page, but then paginate to a new page, the UI gets into a funny state where the new row is gone, but the save/discard buttons are still active. Similar type issue with the validation banner remaining even though the new row is gone.

@curtisupshall
Copy link
Contributor Author

Found one funny interaction, which could probably be fixed in a later PR: If you add a new record on the observation page, but then paginate to a new page, the UI gets into a funny state where the new row is gone, but the save/discard buttons are still active. Similar type issue with the validation banner remaining even though the new row is gone.

Yeah that's an issue. We might not need to solve this if we add rows through a modal - or could solve it with a sticky row, if that ever becomes possible. Or we could even disable pagination entirely while the table is in "edit" mode.

NickPhura
NickPhura previously approved these changes Jan 30, 2024
Copy link
Collaborator

@NickPhura NickPhura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Played with it a bit locally (not super exhaustively tbh). And gave the code a quick look over. Seems to function well. The endpoints look tightly defined which is great.

Not specifically about this PR, but in general:
One thing we should get into the habit of including in our OpenApi spec, is adding additionalProperties: false. Gets added as a sibling to the properties field in a type: object section. Just helps ensure over time that the openapi stays in sync with the response by making it more strict.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

10.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link
Collaborator

@MacQSL MacQSL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😻

@curtisupshall curtisupshall merged commit 66db344 into dev Jan 31, 2024
16 of 19 checks passed
@curtisupshall curtisupshall deleted the SIMSBIOHUB-445 branch January 31, 2024 23:08
KjartanE pushed a commit that referenced this pull request Feb 1, 2024
…nimals (#1202)

* Combined the Telemetry and Observations map/table view on the Survey page, allowing users to toggle between them;
* Added server-side support for paginating the observations fetching endpoint;
* Modified the Manage Observations page to use server-side pagination;
* Added a new endpoint to fetch all the spatial data relating to survey observations;
* Deleted some old code related to Survey Summary Results.
curtisupshall added a commit that referenced this pull request Feb 7, 2024
* Adds survey sampling sites and study areas back to the Survey Map (since being removed by #1202);
* Adds various popups to survey map features, showing various point/polygon metadata;
* Removes extraneous observation table hook call;
* Updates method names and documentation for telemetry API hooks.
curtisupshall added a commit that referenced this pull request Feb 7, 2024
* Adds survey sampling sites and study areas back to the Survey Map (since being removed by #1202);
* Adds various popups to survey map features, showing various point/polygon metadata;
* Removes extraneous observation table hook call;
* Updates method names and documentation for telemetry API hooks.
KjartanE pushed a commit that referenced this pull request Feb 8, 2024
* Adds survey sampling sites and study areas back to the Survey Map (since being removed by #1202);
* Adds various popups to survey map features, showing various point/polygon metadata;
* Removes extraneous observation table hook call;
* Updates method names and documentation for telemetry API hooks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants