Skip to content

Conversation

@NickPhura
Copy link
Contributor

Update associated yup schema.

Links to Jira Tickets

https://apps.nrs.gov.bc.ca/int/jira/browse/SIMSBIOHUB-544

Description of Changes

Update project and survey date triggers to remove restrictions on survey dates being between project dates.
Update associated yup schema.

Why? The triggers were not complete (there were cases they didn't handle correctly) + the project dates are going to be deprecated in future. So this resolves the trigger issue (by removing the constraints altogether), and moves a few steps closer to the eventual goal of removing the project dates.

Testing Notes

Project start date must always come before its own end date, as before.

Survey start date must always come before its own end date, as before, but now has no constraints related to the project dates. So a survey could start before a project, or start after the project has ended, etc.

…vey dates being between project dates.

Update associated yup schema.
@github-actions
Copy link

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.

the new trigger works but I noticed that the survey end date component is still warning that End Date cannot come after the Project End Date

@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 54.57%. Comparing base (0daa88d) to head (d244139).

Files Patch % Lines
app/src/features/surveys/edit/EditSurveyForm.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1245      +/-   ##
==========================================
+ Coverage   54.56%   54.57%   +0.01%     
==========================================
  Files         599      599              
  Lines       18392    18387       -5     
  Branches     2837     2832       -5     
==========================================
  Hits        10035    10035              
+ Misses       7703     7698       -5     
  Partials      654      654              

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

Copy link
Collaborator

@mauberti-bc mauberti-bc left a comment

Choose a reason for hiding this comment

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

Created Projects and Surveys with non-overlapping dates 👍

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 to me

@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarCloud

@NickPhura NickPhura merged commit 46aa8a5 into dev Mar 15, 2024
@NickPhura NickPhura deleted the SIMSBIOHUB-544 branch March 15, 2024 22:41
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.

7 participants