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

Metadata fields section on create collection page #451

Merged
merged 54 commits into from
Aug 19, 2024

Conversation

g-saracca
Copy link
Contributor

@g-saracca g-saracca commented Aug 6, 2024

What this PR does / why we need it:

Adds the Metadata Fields section to the create collection page.

Which issue(s) this PR closes:

Closes #444

Special notes for your reviewer:

Suggestions on how to test this:

Create a Collection from both the header ( from there will always create a collection inside Root).
Change different input levels configurations and save the collection.
Go to that collection and create a dataset from there, check fields that has been set as required, optional or hidden.

Also navigate to that created collection and check that all the input levels are configured by default as the parent collection.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

metadata-fields-section-recording.mov

Is there a release notes update needed for this change?:

N/A

Additional documentation:

N/A

@g-saracca g-saracca added UI Tasks related to the user interface (UI) or frontend development integration Tasks involving the connection and interaction of UI features with the Dataverse API GREI Re-arch GREI re-architecture-related SPA: New Collection Page FY25 Sprint 2 FY25 Sprint 2 labels Aug 6, 2024
@coveralls
Copy link

coveralls commented Aug 6, 2024

Coverage Status

coverage: 97.9% (+0.3%) from 97.592%
when pulling f33b875 on 444-metadata-fields-section-create-collection
into 393e926 on develop.

@ekraffmiller ekraffmiller self-assigned this Aug 8, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

Hi @GermanSaracca, it looks very good, I just have some questions about how different parts of the code are working. thanks!

astrophysicsBlock: ReducedMetadataBlockInfo
biomedicalBlock: ReducedMetadataBlockInfo
journalBlock: ReducedMetadataBlockInfo
} {
Copy link
Contributor

Choose a reason for hiding this comment

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

If the list of metadataBlocks is retrieved from the API in the future, will this hard-coded list have to be converted to something dynamic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly, all parts of the code where I explicitly define this 6 metadata blocks will be dynamic.

}
export type CollectionFormMetadataBlock = Exclude<
MetadataBlockName,
MetadataBlockName.CODE_META | MetadataBlockName.COMPUTATIONAL_WORKFLOW
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we have these names in MetadataBlockName without using them? Will they be used in the future?

Copy link
Contributor Author

@g-saracca g-saracca Aug 9, 2024

Choose a reason for hiding this comment

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

This is the same thing about dynamic or not dynamic metadata blocks, will change also later, this is to narrow down MetadataBlockName to all enums except those two.

@ekraffmiller
Copy link
Contributor

Also, there is an error in the e2e test, in CollectionJSDataverseRepository.spec.ts, I think it needs to be updated to match the new Collection model:
Screenshot 2024-08-08 at 4 07 26 PM

@g-saracca g-saracca self-assigned this Aug 9, 2024
@g-saracca
Copy link
Contributor Author

Hi @ekraffmiller, I make the requested changes and fix the e2e test 👍🏼

@g-saracca g-saracca removed their assignment Aug 9, 2024
ekraffmiller
ekraffmiller previously approved these changes Aug 9, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a 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!

@GPortas GPortas self-assigned this Aug 19, 2024
@g-saracca
Copy link
Contributor Author

Update to latest version of js-dataverse and change registry back to docker.io.

Copy link
Contributor

@GPortas GPortas left a comment

Choose a reason for hiding this comment

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

Works great. Very nice job. I have tested many scenarios. We know there are pending changes, but they are on the API side and will not affect the UI.

@GPortas GPortas merged commit 7bc5d41 into develop Aug 19, 2024
10 of 14 checks passed
@GPortas GPortas deleted the 444-metadata-fields-section-create-collection branch August 19, 2024 14:46
@GPortas GPortas added SPA.Q3.4 Create Collection page (Full version) Original size: 3 labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 2 FY25 Sprint 2 GREI Re-arch GREI re-architecture-related integration Tasks involving the connection and interaction of UI features with the Dataverse API Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA: New Collection Page SPA.Q3.4 Create Collection page (Full version) UI Tasks related to the user interface (UI) or frontend development
Projects
Status: Done 🧹
Development

Successfully merging this pull request may close these issues.

Metadata Fields section on Create Collection page
4 participants