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

Clean up enterprise serialiser for shop page speed #12872

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Sep 20, 2024

What? Why?

When I was looking into this issue, New Relic revealed a particular method taking more time than it did before the product refactor. The whole class hadn't actually changed and I noticed an unnecessary join.

Maybe we can optimise more, but this was all I could do late Friday afternoon. It doesn't seem to make a difference on my local machine.

What should we test?

  • Visit a shop.
  • Check all the product properties and that they filter correctly.

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

These two methods return early if `active` is falsey. So for the rest of
the method we can assume `active` to be truthy.
Enterprises used to have products and products have variants. But now
enterprises have variants directly.
@mkllnk mkllnk added the technical changes only These pull requests do not contain user facing changes and are grouped in release notes label Sep 20, 2024
@mkllnk mkllnk self-assigned this Sep 20, 2024
@mkllnk mkllnk marked this pull request as ready for review September 20, 2024 07:10
Copy link
Member

@dacook dacook left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@rioug rioug left a comment

Choose a reason for hiding this comment

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

Nice !

@rioug rioug merged commit 099da3f into openfoodfoundation:master Sep 23, 2024
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical changes only These pull requests do not contain user facing changes and are grouped in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants