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

CRDCDH-1861 Submission Request Content Adjustments #536

Merged
merged 13 commits into from
Jan 13, 2025
Merged

Conversation

amattu2
Copy link
Member

@amattu2 amattu2 commented Nov 18, 2024

Overview

This PR reorganizes some of the Submission Request content and includes minor QoL updates for the end users.

Note

This change, specifically the moving of the dbGaPID field, should be fully backwards compatible. I tested working on the same form "simultaneously" using DEV2 and locally, but it's possible I missed something when testing.

Change Details (Specifics)

Requirement based changes:

  • Move dbGaPID field to Section C
    • Since dbGaPID is serialized inside the Study details, there's some migration code to ensure study data is properly stored.
    • Another option would be to pull dbGaPID out of study – Open to opinions on this
  • Adjust max length of Funding Agency -> Grant field (Section B)
  • Reorganize the last 3 inputs to make the Additional Comments box the last field in the form (Section D)
  • Apply reorganization on the Review page (not explicitly called for, but inferred)

Related changes:

  • Add error logging for saveApplication mutation and remove raw error details from the alert
  • Bug fix for – User was unable to remove the last Planned Publication. This bug was not logged.

Unrelated changes:

Related Ticket(s)

CRDCDH-1861 (FE Task)
CRDCDH-1846 (User Story)

@amattu2 amattu2 added this to the 3.2.0 (PMVP-M3) milestone Nov 18, 2024
@coveralls
Copy link
Collaborator

coveralls commented Nov 18, 2024

Pull Request Test Coverage Report for Build 12749851024

Details

  • 0 of 13 (0.0%) changed or added relevant lines in 4 files are covered.
  • 4 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.03%) to 56.679%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Contexts/FormContext.tsx 0 1 0.0%
src/content/questionnaire/FormView.tsx 0 1 0.0%
src/content/questionnaire/sections/B.tsx 0 3 0.0%
src/content/questionnaire/sections/C.tsx 0 8 0.0%
Files with Coverage Reduction New Missed Lines %
src/content/questionnaire/sections/B.tsx 1 0.59%
src/content/questionnaire/sections/Review.tsx 1 3.28%
src/components/Contexts/FormContext.tsx 2 71.56%
Totals Coverage Status
Change from base Build 12676325651: 0.03%
Covered Lines: 3833
Relevant Lines: 6313

💛 - Coveralls

@amattu2 amattu2 added the 🚧 Do Not Merge This PR is not ready for merging label Nov 19, 2024
@amattu2 amattu2 marked this pull request as ready for review January 7, 2025 18:47
@amattu2 amattu2 removed the 🚧 Do Not Merge This PR is not ready for merging label Jan 7, 2025
@amattu2 amattu2 requested a review from Alejandro-Vega January 7, 2025 18:47
Copy link
Collaborator

@Alejandro-Vega Alejandro-Vega left a comment

Choose a reason for hiding this comment

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

Everything looks solid to me. I left one optional suggestion, but feel free to disregard it if it doesn't work or if you're fine with your existing implementation.

src/content/questionnaire/sections/B.tsx Outdated Show resolved Hide resolved
@Alejandro-Vega Alejandro-Vega added the 📝 Change Requested This PR has requested changes label Jan 9, 2025
@amattu2 amattu2 removed the 📝 Change Requested This PR has requested changes label Jan 13, 2025
Copy link
Collaborator

@Alejandro-Vega Alejandro-Vega left a comment

Choose a reason for hiding this comment

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

Pre-approving, everything LGTM! Feel free to merge once you resolve the discussion above.

@amattu2 amattu2 merged commit a45a6b3 into 3.2.0 Jan 13, 2025
7 checks passed
@amattu2 amattu2 deleted the CRDCDH-1861 branch January 13, 2025 21:12
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.

3 participants