Skip to content

Refactor computed attribute update_computed_attribute_value_jinja2 #6348

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

ogenstad
Copy link
Contributor

@ogenstad ogenstad commented Apr 23, 2025

Use custom GraphQL query instead of using a query defined by the SDK

Fixes #6351.

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Apr 23, 2025
Copy link

codspeed-hq bot commented Apr 23, 2025

CodSpeed Performance Report

Merging #6348 will not alter performance

Comparing pog-refactor-computed-attribute-filter-query (658af4e) with stable (debb8a9)

Summary

✅ 10 untouched benchmarks

@ogenstad ogenstad force-pushed the pog-refactor-computed-attribute-filter-query branch from e8c56ad to 9fb0e74 Compare April 24, 2025 12:01
@ogenstad ogenstad marked this pull request as ready for review April 24, 2025 14:05
@ogenstad ogenstad requested a review from a team as a code owner April 24, 2025 14:05
@@ -0,0 +1 @@
Replace client.filter call in Jinja2 based computed attributes. Depending on schema and data this change will be yield a significant performance improvement for the computed attributes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the changelog should focus first on the user benefit more than the implementation, here it could be

Improve performance of computed attributes when updating a large number of objects at once. Replaced client.filter call in Jinja2 based computed attributes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I've updated the changelog. Will merge when the CI completes.

Use custom GraphQL query instead of using a query defined by the SDK
@ogenstad ogenstad force-pushed the pog-refactor-computed-attribute-filter-query branch from 9fb0e74 to 658af4e Compare April 25, 2025 06:48
@ogenstad ogenstad merged commit 22e5c66 into stable Apr 25, 2025
34 checks passed
@ogenstad ogenstad deleted the pog-refactor-computed-attribute-filter-query branch April 25, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

task: Replace client.filter call in Jinja2 based computed attributes
2 participants