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 preprocessRecord calls #185

Merged
merged 1 commit into from
May 26, 2020

Conversation

zannkukai
Copy link
Contributor

This PR fixes the redundant calls to 'preprocessRecord'. Before this PR
the preprocessRecord function was called each time the model was getted.
This will cause a call for each field present into the editor. This PR
fixes this problem calling preprocessRecord function only when the model
is setted or when it changes from the parent input.

Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch
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?
  • Extracted translations?

@zannkukai zannkukai self-assigned this May 26, 2020
This PR fixes the redundant calls to 'preprocessRecord'. Before this PR
the preprocessRecord function was called each time the model was getted.
This will cause a call for each field present into the editor. This PR
fixes this problem calling preprocessRecord function only when the model
is setted or when it changes from the parent input.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai force-pushed the zan-#fix-preprocess-calls branch from c32bbe8 to bf04adb Compare May 26, 2020 07:20
@zannkukai zannkukai requested a review from jma May 26, 2020 07:29
@zannkukai zannkukai marked this pull request as ready for review May 26, 2020 07:59
@zannkukai zannkukai requested a review from sebdeleze May 26, 2020 07:59
@zannkukai zannkukai merged commit 6bf65b5 into rero:dev May 26, 2020
@zannkukai zannkukai deleted the zan-#fix-preprocess-calls branch May 27, 2020 12:45
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