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-275: Remove Project Coordinator from SIMS #1104

Merged
merged 19 commits into from
Oct 5, 2023
Merged

Conversation

curtisupshall
Copy link
Contributor

@curtisupshall curtisupshall commented Sep 29, 2023

Links to Jira Tickets

Description of Changes

  • Removes any Project Coordinator UI for creating, editing or viewing projects
  • Removes any reference to Project Coordinator in the frontend and backend codebase
  • Adds a migration that makes project coordinator fields optional, retaining any existing project coordinator data.

Testing Notes (for local environment)

  1. On branch dev, create one or more projects.
  2. Check out the SIMSBIOHUB-275 branch and run make web to run the new migration.
  3. Upon compiling the project, you should be able to:
  • View an existing project + participants
  • Edit an existing project
  • Create a new project
  • View a survey + participants
  • Add participants to a project
  • Add participants to a survey
  1. For the projects created before running the migration, their participant data in the project table should still exist.

@curtisupshall curtisupshall added the Not Ready For Review Addressing feedback and/or refactoring label Sep 29, 2023
@curtisupshall curtisupshall removed the Not Ready For Review Addressing feedback and/or refactoring label Sep 29, 2023
@NickPhura
Copy link
Collaborator

Looks good.

A few tests on front and back end that are referencing project coordinator still.

@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

Merging #1104 (50eef24) into dev (df7d0cb) will decrease coverage by 14.81%.
The diff coverage is 14.28%.

@@             Coverage Diff             @@
##              dev    #1104       +/-   ##
===========================================
- Coverage   78.11%   63.30%   -14.81%     
===========================================
  Files         231      531      +300     
  Lines        9090    15786     +6696     
  Branches     1338     2445     +1107     
===========================================
+ Hits         7101     9994     +2893     
- Misses       1603     5107     +3504     
- Partials      386      685      +299     
Files Coverage Δ
api/src/models/project-create.ts 66.66% <ø> (-13.34%) ⬇️
api/src/models/project-update.ts 100.00% <ø> (ø)
api/src/models/project-view.ts 100.00% <ø> (ø)
api/src/models/survey-view.ts 83.33% <ø> (ø)
api/src/openapi/schemas/project.ts 100.00% <ø> (ø)
api/src/paths/project/list.ts 96.29% <ø> (ø)
...rojectId}/participants/{projectParticipationId}.ts 93.65% <ø> (ø)
api/src/paths/project/{projectId}/update.ts 91.22% <ø> (-0.16%) ⬇️
api/src/paths/project/{projectId}/view.ts 95.65% <ø> (ø)
...c/repositories/project-participation-repository.ts 74.28% <ø> (ø)
... and 13 more

... and 292 files with indirect coverage changes

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

@JeremyQuartech
Copy link
Contributor

I may be misunderstanding the changes a bit here, but just clarifying... When creating a project, under managing team members, Coordinator is still meant to be an option right? So do these changes simply remove the ability to add metadata associated with the coordinator?

@curtisupshall
Copy link
Contributor Author

I may be misunderstanding the changes a bit here, but just clarifying... When creating a project, under managing team members, Coordinator is still meant to be an option right? So do these changes simply remove the ability to add metadata associated with the coordinator?

@JeremyQuartech That is essentially it, yeah. Project team members did not historically have roles like "Coordinator", so projects has specific metadata (Project Coordinator) to store basic info for the primary contact for the project. Since we now have the Coordinator team member role, this information is pretty much unneeded.

NickPhura
NickPhura previously approved these changes Oct 4, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 4, 2023

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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

ran this locally and followed your instructions. It is working as expected 🐶

@curtisupshall curtisupshall merged commit 73681f3 into dev Oct 5, 2023
18 of 20 checks passed
@curtisupshall curtisupshall deleted the SIMSBIOHUB-275 branch October 5, 2023 17:40
KjartanE pushed a commit that referenced this pull request Oct 5, 2023
* Removes any Project Coordinator UI for creating, editing or viewing projects

* Removes any reference to Project Coordinator in the frontend and backend codebase

* Adds a migration that makes project coordinator fields optional, retaining any existing project coordinator data.
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