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

documents: optimize serialization #2309

Merged

Conversation

Garfield-fr
Copy link
Contributor

Co-Authored-by: Bertrand Zuchuat [email protected]

How to test?

  • Check organisation/library facet on all application.

Code review check list

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

@Garfield-fr Garfield-fr self-assigned this Aug 18, 2021
@Garfield-fr Garfield-fr added the enhancement Improvement of an existing feature label Aug 18, 2021
@Garfield-fr Garfield-fr added this to the v1.5.0 milestone Aug 18, 2021
@Garfield-fr Garfield-fr force-pushed the zub-document-serializer-optimisation branch 2 times, most recently from d76761c to e3cdc2a Compare August 18, 2021 09:23
rero_ils/modules/api.py Outdated Show resolved Hide resolved
rero_ils/modules/libraries/api.py Outdated Show resolved Hide resolved
rero_ils/modules/organisations/api.py Show resolved Hide resolved
@Garfield-fr Garfield-fr force-pushed the zub-document-serializer-optimisation branch 2 times, most recently from ac77547 to 885518f Compare August 18, 2021 09:51
@Garfield-fr Garfield-fr requested a review from rerowep August 18, 2021 09:51
@Garfield-fr Garfield-fr force-pushed the zub-document-serializer-optimisation branch from 885518f to f298200 Compare August 18, 2021 10:01
@Garfield-fr Garfield-fr changed the title documents: optimize document serialization documents: optimize serialization Aug 18, 2021
rero_ils/modules/api.py Outdated Show resolved Hide resolved
@Garfield-fr Garfield-fr force-pushed the zub-document-serializer-optimisation branch from f298200 to 07d3035 Compare August 19, 2021 07:35
Co-Authored-by: Bertrand Zuchuat <[email protected]>
@Garfield-fr Garfield-fr force-pushed the zub-document-serializer-optimisation branch from 07d3035 to 325bab7 Compare August 19, 2021 07:37
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.

Could the commit message be more informative?

if fields:
query = query.source(includes=fields)
response = query.execute()
if response.hits.total.value != 1:

Choose a reason for hiding this comment

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

What if they are two or more hits? Should the message be something like " 😱 "?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A pid value is unique. Either it exists or you have an exception?

@Garfield-fr Garfield-fr changed the base branch from dev to v1.5.0 September 21, 2021 08:21
@Garfield-fr Garfield-fr merged commit d0964c5 into rero:v1.5.0 Sep 23, 2021
@Garfield-fr Garfield-fr deleted the zub-document-serializer-optimisation branch March 14, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants