-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Bug/66552 Fix the activities tab’s :only_changes filtration for lazy loading
#20896
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
Conversation
Correctly exclude journals with snapshots but no changes
:only_changes filter
:only_changes filter:only_changes filtration for lazy loading
Given the entire `UNION` query is inside of an `EXISTS (...)` clause, deduplication is not necessary as `EXISTS` short-circuits on the first match. Hence, no need to have the db engine waste cycles checking for duplicates.
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
cbliard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one 👏
I reviewed the code and sql queries. It looks solid, even if I'm sure I don't get all the subtleties of it 😅
I'm amazed that it's possible to create such nested and complicated SQL queries and it's still fast to process it.
That is the kind of subtleties that I missed. Nice! I was actually wondering why it was not using |
brunopagno
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go!! 🚢🚢🚢
Thanks! I reckon that using subqueries and the |
Follows #20733
https://community.openproject.org/wp/66552
Correct the
:only_changesfilter added in #20733 such that it checks for at least one journal change and NOT presence as it did before. The latter would evaluate to false positives that further materialized the original bug.Test WP:
The red borders demarcate page nodes. (Click to see highlight code change)
Before:
After:
Sample resulting query
Performance Analysis Report ✨ (AI Assisted)
Benchmark Results Summary (Work Package
#10423, 684 journals)Benchmark script