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

Feature/add oneOf rendering #57

Merged
merged 9 commits into from
Aug 11, 2020
Merged

Conversation

otahontas
Copy link
Contributor

Description

This PR adds support for oneOf-fields: user can select which option he/she wants to use and correct fields are rendering according to selection. Layout issues such as save-button positioning and headings for arrays are also fixed.

Related issues

Fixes #42, #55

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Testing

  • Needs testing (start an issue or do a follow up PR about it)

@otahontas otahontas self-assigned this Aug 10, 2020
@otahontas otahontas requested a review from blankdots August 10, 2020 18:24
Copy link
Contributor

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

Noticed
image

and made a PR with more typo fixes: CSCfi/metadata-submitter#117

Copy link
Contributor

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

accessionId field should be ignored and not displayed as this is generated in the back-end and is not needed on front-end

edit: misunderstood the purpose and make an issue about linking accession IDs #58

Copy link
Contributor

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

Tested and looks good

@otahontas
Copy link
Contributor Author

Noticed
image

and made a PR with more typo fixes: CSCfi/metadata-submitter#117

There are actually a few different keys without any titles, which should be fixed at some point. See for example https://github.com/CSCfi/metadata-submitter/blob/950555f0b7309fbd4379dc0bbfbf4f13ae96187d/metadata_backend/helpers/schemas/ena_experiment.json#L364

Currently version is to render path of field (such as descriptor.studyAttributes) as label is title is not found

@otahontas otahontas merged commit 3811758 into develop Aug 11, 2020
@otahontas otahontas deleted the feature/add-oneOf-rendering branch August 11, 2020 06:13
@otahontas otahontas mentioned this pull request Aug 13, 2020
5 tasks
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.

2 participants