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

421 - BCTW Multiple Device Fix #1208

Merged
merged 8 commits into from
Feb 13, 2024
Merged

421 - BCTW Multiple Device Fix #1208

merged 8 commits into from
Feb 13, 2024

Conversation

MacQSL
Copy link
Collaborator

@MacQSL MacQSL commented Feb 6, 2024

Links to Jira Tickets

Description of Changes

  • Multiple devices can be created using the same device_id for critters (with different device makes)

Testing Notes

  • Add a critter
  • Add a deployment using a device id and a device make
  • Add another deployment with same device id and different device make (should succeed)
  • Add another deployment with same device id and same device make (should fail)

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (08bcecc) 56.89% compared to head (9a61266) 56.90%.

Files Patch % Lines
...y-animals/telemetry-device/TelemetryDeviceForm.tsx 0.00% 2 Missing ⚠️
...ls/telemetry-device/TelemetryDeviceFormContent.tsx 0.00% 2 Missing ⚠️
...features/surveys/telemetry/ManualTelemetryList.tsx 0.00% 1 Missing ⚠️
...ures/surveys/view/survey-animals/AddEditAnimal.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1208   +/-   ##
=======================================
  Coverage   56.89%   56.90%           
=======================================
  Files         594      594           
  Lines       18014    18011    -3     
  Branches     2775     2774    -1     
=======================================
  Hits        10249    10249           
+ Misses       7099     7096    -3     
  Partials      666      666           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@al-rosenthal al-rosenthal left a comment

Choose a reason for hiding this comment

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

I ran this locally and was able to add multiple device makes as you'd expect. When I tried with data that should 'fail' I noticed that the date inputs gave warnings of the same device make within the date range and could not save. Is this what you meant by 'fail'?

api/src/services/bctw-service.ts Outdated Show resolved Hide resolved
api/src/services/bctw-service.ts Outdated Show resolved Hide resolved
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

LGTM

Copy link
Contributor

@al-rosenthal al-rosenthal left a comment

Choose a reason for hiding this comment

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

tried this out and works as expected 🍰

@MacQSL MacQSL merged commit cc7e913 into dev Feb 13, 2024
19 checks passed
@MacQSL MacQSL deleted the 421-bctw-device-fix branch February 13, 2024 23:37
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.

4 participants