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 211 - Edit Telemetry Form #1094

Merged
merged 243 commits into from
Sep 19, 2023
Merged

SIMSBIOHUB 211 - Edit Telemetry Form #1094

merged 243 commits into from
Sep 19, 2023

Conversation

GrahamS-Quartech
Copy link
Contributor

@GrahamS-Quartech GrahamS-Quartech commented Sep 15, 2023

Links to Jira Tickets

SIMSBIOHUB-211

Description of Changes

  • Restructured the deployment form to better handle the case where multiple devices with potentially multiple deployments per device will need to be displayed. Hitting edit deployment on a critter with multiple devices assigned will demonstrate this case. It will only update information that has been modified since opening the form.
  • Added hooks and routes for upserting collars in BCTW, getting deployments per device id, getting device metadata change history, updating deployment rows for both SIMS and BCTW.

Testing Notes

  • Some functionality may not work 100% correctly until an API patch for BCTW gets merged in. Will update this comment when that happens.

MacQSL and others added 30 commits July 18, 2023 10:27
…o critterbase calls, still need to implement automated signup
…mponents can now be added to form on button click
… calling cb api through hooks in the frontend. No more extra auth headers, now all done through keycloak JWT.
…rbase. Made a wrapper function for critterbase selects that uses existing Formik components
…der and the docker compose that we don't need anymore
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #1094 (ae21c2d) into dev (5289900) will increase coverage by 0.27%.
The diff coverage is 66.27%.

@@            Coverage Diff             @@
##              dev    #1094      +/-   ##
==========================================
+ Coverage   64.62%   64.90%   +0.27%     
==========================================
  Files         487      489       +2     
  Lines       14495    14622     +127     
  Branches     2263     2287      +24     
==========================================
+ Hits         9368     9490     +122     
+ Misses       4535     4526       -9     
- Partials      592      606      +14     
Files Changed Coverage Δ
...src/features/surveys/view/survey-animals/animal.ts 68.26% <ø> (-0.60%) ⬇️
app/src/utils/Utils.ts 74.11% <25.00%> (-2.43%) ⬇️
app/src/features/surveys/view/SurveyAnimals.tsx 44.94% <37.73%> (+1.19%) ⬆️
...urveys/view/survey-animals/TelemetryDeviceForm.tsx 60.60% <50.00%> (+56.43%) ⬆️
app/src/hooks/telemetry/useDeviceApi.tsx 60.00% <57.14%> (-0.87%) ⬇️
api/src/paths/telemetry/device/index.ts 83.33% <83.33%> (ø)
app/src/hooks/api/useSurveyApi.ts 42.85% <85.71%> (+3.29%) ⬆️
...vey/{surveyId}/critters/{critterId}/deployments.ts 89.28% <88.88%> (-1.63%) ⬇️
...ojectId}/survey/{surveyId}/critters/{critterId}.ts 95.65% <100.00%> (-0.19%) ⬇️
api/src/repositories/survey-critter-repository.ts 100.00% <100.00%> (ø)
... and 5 more

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@GrahamS-Quartech GrahamS-Quartech changed the title SIMSBIOHUB 211 SIMSBIOHUB 211 - Edit Telemetry Form Sep 18, 2023
api/src/repositories/survey-critter-repository.ts Outdated Show resolved Hide resolved
api/src/services/bctw-service.ts Outdated Show resolved Hide resolved
api/src/services/survey-critter-service.ts Outdated Show resolved Hide resolved
api/src/services/survey-critter-service.ts Outdated Show resolved Hide resolved
app/src/features/surveys/view/SurveyAnimals.tsx Outdated Show resolved Hide resolved
app/src/features/surveys/view/SurveyAnimals.tsx Outdated Show resolved Hide resolved
app/src/features/surveys/view/SurveyAnimals.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@curtisupshall curtisupshall left a comment

Choose a reason for hiding this comment

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

Had to review this in chunks, sorry about that. Code looks good!

app/src/utils/Utils.ts Show resolved Hide resolved
Copy link
Contributor

@JeremyQuartech JeremyQuartech left a comment

Choose a reason for hiding this comment

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

Code looks good!

JeremyQuartech
JeremyQuartech previously approved these changes Sep 18, 2023
Copy link
Contributor

@JeremyQuartech JeremyQuartech left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Contributor

@curtisupshall curtisupshall left a comment

Choose a reason for hiding this comment

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

Looks good - just noticed a couple more things

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@curtisupshall curtisupshall left a comment

Choose a reason for hiding this comment

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

Code looks good! 🌎

Copy link
Contributor

@JeremyQuartech JeremyQuartech left a comment

Choose a reason for hiding this comment

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

Good to go 👍

@GrahamS-Quartech GrahamS-Quartech merged commit 429212f into dev Sep 19, 2023
@NickPhura NickPhura deleted the SIMSBIOHUB-211 branch October 13, 2023 18:00
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

Successfully merging this pull request may close these issues.

5 participants