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

editor: fix 'oneOf' behaviour #215

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

AoNoOokami
Copy link

@AoNoOokami AoNoOokami commented Jul 20, 2020

Fixes the behaviour of the editor with 'oneOf' schema property: for
example, when selecting 'organisation' as author, the value of 'type'
needed to be selected manually. Now the correct value of type is
selected automatically. A similar behaviour is noted for 'mode of
issuance' maintype and subtype.

Co-Authored-by: Alicia Zangger alicia.zangger@rero.ch
Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch

Why are you opening this PR?

This PR is part of US1432 (task 1603)
https://tree.taiga.io/project/rero21-reroils/us/1432?milestone=268117
https://tree.taiga.io/project/rero21-reroils/task/1603?kanban-status=1224894

How to test?

Needs rero/rero-ils#1097 and rero/rero-ils-ui#283
Login as a (system) librarian.
Go to the record editor.
Try several values for authors and mode of issuance.
If you try to edit an existing record, you'll find that the values are not correct, except for the default ones. This is reported here: rero/rero-ils#1102

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@AoNoOokami AoNoOokami self-assigned this Jul 20, 2020
@AoNoOokami AoNoOokami force-pushed the zaa#1603-issuance-maintype-subtype branch from 9502900 to ccc3db0 Compare July 20, 2020 12:25
@AoNoOokami AoNoOokami force-pushed the zaa#1603-issuance-maintype-subtype branch from ccc3db0 to c560c5b Compare July 20, 2020 12:37
@AoNoOokami AoNoOokami force-pushed the zaa#1603-issuance-maintype-subtype branch 2 times, most recently from d7318a5 to 9fbb195 Compare July 20, 2020 12:57
@AoNoOokami AoNoOokami requested a review from iGormilhit July 20, 2020 12:58
Fixes the behaviour of the editor with 'oneOf' schema property: for
example, when selecting 'organisation' as author, the value of 'type'
needed to be selected manually. Now the correct value of type is
selected automatically. A similar behaviour is noted for 'mode of
issuance' maintype and subtype.

Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@AoNoOokami AoNoOokami force-pushed the zaa#1603-issuance-maintype-subtype branch from 9fbb195 to 07c65a1 Compare July 20, 2020 14:09
@AoNoOokami AoNoOokami requested review from sebdeleze and removed request for sebdeleze July 20, 2020 15:20
@AoNoOokami AoNoOokami merged commit a7e2e99 into rero:dev Jul 20, 2020
@AoNoOokami AoNoOokami deleted the zaa#1603-issuance-maintype-subtype branch August 3, 2020 07:33
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.

3 participants