icgc-argo / dac-ui

Development of the ICGC ARGO Data Access Control UI
https://daco.icgc-argo.org/
GNU Affero General Public License v3.0
0 stars 0 forks source link

🐛 Collaborator section has multiple bugs #362

Closed kcullion closed 3 years ago

kcullion commented 3 years ago

Describe the bugs

There are some weird things happening in the collaborators section/ethics sections. Logging them all here for investigation

justincorrigible commented 3 years ago

The issue with the validation icon on the outline is happening because of how we're calling a different API endpoint for collaborators; which is not done inside the validation routine, and therefor doesn't have all the same abstracted functionality out of the box. i.e. That code needs to be duplicated for the section.

What needs to happen is fairly simple, though: - this https://github.com/icgc-argo/dac-ui/blob/develop/components/pages/Applications/ApplicationForm/Forms/index.tsx#L89 - which is an abstraction for this https://github.com/icgc-argo/dac-ui/blob/develop/components/pages/Applications/ApplicationForm/Forms/validations/index.ts#L418 - needs to be called from here https://github.com/icgc-argo/dac-ui/blob/develop/components/pages/Applications/ApplicationForm/Forms/Collaborators/index.tsx#L128

It's only a matter of passing that dispatch call (that changes showOverall) down to Collaborators' fetch.then, somehow. Hope this helps!


Found a better way to do this and will be executing on it.

justincorrigible commented 3 years ago

Coincidentally, I've found the value.map error while working on #361, and fixed it there.

justincorrigible commented 3 years ago

The issues with the modal form not getting cleared and the delete modal not showing the collaborator's name are resolved via #329

justincorrigible commented 3 years ago

Could not replicate the first error Sam found (Cannot convert undefined or null to object) at all. Must've been resolved with another ticket?

As a sidenote, I did notice if you save the email as the collaborator's first, and then go an add the email as the applicant's, API is not tagging the collaborator as invalid/errored the same way it does for Affiliation. Not sure there's a ticket for that already.

kcullion commented 3 years ago

Tested Aug 12/13

we just found some log errors in the console so I'm making a new ticket for @samrichca to resolve that. https://github.com/icgc-argo/dac-ui/issues/373

Regarding: As a sidenote, I did notice if you save the email as the collaborator's first, and then go an add the email as the applicant's, API is not tagging the collaborator as invalid/errored the same way it does for Affiliation. Not sure there's a ticket for that already We made a ticket for Ann during sprint planning for this: https://github.com/icgc-argo/dac-api/issues/151

kcullion commented 3 years ago

Aug 16: working in staging

rosibaj commented 3 years ago

Aug 16, deployed to production (ui 0.23.1 / api 0.32.0)