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

templates: prevent resolving $ref from data field #2386

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

zannkukai
Copy link
Contributor

the $ref from the template data doesn"t need to be resolved when the
record is indexed into ES. This should be cause indexing errors if the
related resource doesn"t exists anymore and we will not consider this
spacial case.

Co-Authored-by: Renaud Michotte [email protected]
Co-Authored-by: Peter Weber [email protected]

Code review check list

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

@zannkukai zannkukai self-assigned this Sep 15, 2021
@github-actions github-actions bot added the f: public ui Public interface, as opposed to the professional interface label Sep 15, 2021
@zannkukai zannkukai force-pushed the zan-fix-template-indexing branch from c43ed14 to 878086a Compare September 15, 2021 11:34
@zannkukai zannkukai removed the f: public ui Public interface, as opposed to the professional interface label Sep 15, 2021
Copy link

@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 proposition:

templates: prevent resolving $ref from data field

The `$ref` of the template data doesn"t need to be resolved when the
record is indexed by ES, as it causes indexing errors when the related
resource doesn"t exist anymore.

@iGormilhit iGormilhit changed the title templates: $ref from data field must not be resolve templates: prevent resolving $ref from data field Sep 21, 2021
@iGormilhit iGormilhit added this to the v1.5.0 milestone Sep 21, 2021
@zannkukai zannkukai force-pushed the zan-fix-template-indexing branch from 878086a to 429bdac Compare September 21, 2021 08:43
@github-actions github-actions bot added the f: public ui Public interface, as opposed to the professional interface label Sep 21, 2021
@zannkukai zannkukai force-pushed the zan-fix-template-indexing branch from 429bdac to 655790c Compare September 22, 2021 08:01
@lauren-d
Copy link
Contributor

be careful, tests failed

@iGormilhit iGormilhit changed the base branch from dev to v1.5.0 September 27, 2021 06:15
The `$ref` of the template data doesn"t need to be resolved when the
record is indexed by ES, as it causes indexing errors when the related
resource doesn"t exist anymore.

Co-Authored-by: Renaud Michotte <[email protected]>
Co-Authored-by: Peter Weber <[email protected]>
@zannkukai zannkukai force-pushed the zan-fix-template-indexing branch from 655790c to 7d6ad87 Compare September 28, 2021 10:54
@github-actions github-actions bot added f: data About data model, importation, transformation, exportation of data, specific for bibliographic data and removed f: public ui Public interface, as opposed to the professional interface labels Sep 28, 2021
@zannkukai zannkukai merged commit e705162 into rero:v1.5.0 Sep 28, 2021
@zannkukai zannkukai deleted the zan-fix-template-indexing branch September 28, 2021 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: data About data model, importation, transformation, exportation of data, specific for bibliographic data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants