-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rename submission.dac
to submission.rems
#648
Conversation
f48a0c6
to
e6b33ee
Compare
e6b33ee
to
6c2383b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, but i think we should keep terminology consistent with the source, REMS has workflow and approvers/Handlers make up a DAC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Well done, finding all the occurrences to be renamed.
After Stefan's comments are resolved, please dismiss the review and request it again. ^^
6c2383b
to
c4a931f
Compare
While converting all these DAC namings, I also looked at this but wasn't sure if that dataset key needs to change or stay like that. |
🤔 what is the dataset key in the lines you highlighted, could we get more details ? |
That's adding the REMS details to a My answer to @csc-jm would be that |
I do think that writing REMS DAC makes sense, as what we're doing is translating REMS data into DAC. But I don't mind if you prefer to have different wording. The most important imo is that it's consistent, and at least somewhat accurate. |
On the other hand, writing some documentation how the publishing process works would be good. I just wonder if now is a good time, or after we make the changes we've been planning. |
hmm i see, so it is added to the: https://github.com/CSCfi/metadata-submitter/blob/develop/metadata_backend/helpers/schemas/ena_dataset.json or https://github.com/CSCfi/metadata-submitter/blob/develop/metadata_backend/helpers/schemas/ena_bpdataset.json this info - but we also have this information in https://github.com/CSCfi/metadata-submitter/blob/refactor/rename-submission-dac/metadata_backend/helpers/schemas/submission.json#L1165 is that correct ? My question would be what do we do with a submission that has multiple datasets each with their own worflow in REMS because a submission can have multiple datasets (which correspond to a REMS resource) and for each one in rems you need to create a separate catalogue item, however https://github.com/CSCfi/metadata-submitter/blob/refactor/rename-submission-dac/metadata_backend/helpers/schemas/submission.json#L1165 allows for only one object not an array ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, writing some documentation how the publishing process works would be good. I just wonder if now is a good time, or after we make the changes we've been planning.
yeah, i think this needs to come with some documentation on what represents a REMS DAC and how we map concepts, otherwise this will not go well with further development
@blankdots, not really. Most of the information should be the same, but there are values which are specific to the dataset: |
As for the second question, in a meeting with other people, we decided that a submission has the same workflow / policy / dac for all datasets. That's why it's an object in the submission. Mostly so that the frontend and backend "remembers" what was the chosen one, and it doesn't have to be specified for each dataset. But then we do need to create new records in REMS for each dataset, so that data ends up in the |
then we need to remove these lines: |
Indeed, there was a bug. The issue was created :) #649 |
submission.dac
to submission.rems
submission.dac
to submission.rems
a44f5a4
to
f0fa684
Compare
f0fa684
to
7185408
Compare
submission.dac
to submission.rems
submission.dac
to submission.rems
Moved this momentarily to WIP because I need to push and test some things. Sorry if it still generated bunch unnecessary emails. I renamed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am ok with changes so far.
Description
Separated this task from the other tasks given in #588 for less chaotic reviewing. So this just refactors the naming scheme of the
dac
field in thesubmission
object torems
.Related issues
Partially fixes #588
Type of change
Changes Made
submission
schema/v1/submission/rems
Testing