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 patron editor #443

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Conversation

zannkukai
Copy link
Contributor

@zannkukai zannkukai commented Nov 24, 2020

In the patron editor, if the current edited patron doesn't have the
'patron' role, we need to remove all informations linked to this
profile (mainly the default expiration_date set in
preprocessRecordEditor function).

Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com

Code review check list

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

@zannkukai zannkukai added the bug Breaks something, but is not blocking. label Nov 24, 2020
@zannkukai zannkukai added this to the v0.14.1 milestone Nov 24, 2020
@zannkukai zannkukai self-assigned this Nov 24, 2020
In the patron editor, if the current edited patron doesn't have the
'patron' role, we need to remove all informations linked to this
profile (mainly the default expiration_date set in
`preprocessRecordEditor` function).

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai requested review from jma, sebdeleze, Garfield-fr and iGormilhit and removed request for jma November 24, 2020 16:33
Copy link
Contributor

@Garfield-fr Garfield-fr left a comment

Choose a reason for hiding this comment

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

The problem reside in the "preprocessRecordEditor" function. Do not make a clear on the "postprocessRecordEditor". Transfer the code into "postprocessRecordEditor" and add "expiration_date" if the patron exists.

@iGormilhit iGormilhit added f: editor Concerns editor based on JSON schema AND custom editor f: user management labels Nov 25, 2020
@iGormilhit iGormilhit modified the milestones: v0.14.1, v0.15.0 Nov 25, 2020
@zannkukai
Copy link
Contributor Author

The problem reside in the "preprocessRecordEditor" function. Do not make a clear on the "postprocessRecordEditor". Transfer the code into "postprocessRecordEditor" and add "expiration_date" if the patron exists.

We can't do that because, in the editor we would like to display a default expiration date. If we move the default expiration date creation in the "postprocessRecordEditor", the field should be empty for user.

Copy link
Contributor

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Commit message approved.

@zannkukai zannkukai merged commit 080c958 into rero:dev Nov 25, 2020
@zannkukai zannkukai deleted the zan-fix-patron-editor branch November 25, 2020 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something, but is not blocking. f: editor Concerns editor based on JSON schema AND custom editor f: user management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants