-
Notifications
You must be signed in to change notification settings - Fork 14
Support open archiefbeheer destruction in objects api #719
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
Support open archiefbeheer destruction in objects api #719
Conversation
f57913a to
1a8758c
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #719 +/- ##
==========================================
+ Coverage 84.59% 84.80% +0.21%
==========================================
Files 137 140 +3
Lines 2733 2837 +104
Branches 215 224 +9
==========================================
+ Hits 2312 2406 +94
- Misses 373 377 +4
- Partials 48 54 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
stevenbal
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.
@CharString could you look into the performance regressions for the list endpoint? There's probably a missing prefetch_related on references #719 (comment)
775ed20 to
9c9aad4
Compare
Rewrote the nested if-clauses to a pattern match for clarity.
aec353c to
af6908b
Compare
Weird. The previous run was within bounds. PS. Good enough to signal the missing prefetch. But bad enough to send me into the django-silk woods and postgres index docs. I did learn a lot about these fancy indices, but couldn't find a way to make the Sort in the plan any better. (The sort looks most expensive eye balling the query plan.) |
stevenbal
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.
Two minor things remaining
@CharString the benchmarking is far from ideal unfortunately, at the time of fixing performance problems I just needed to show at least something in CI, but it could definitely use some more attention
src/objects/cloud_events/tasks.py
Outdated
| In order to not slow down the object API endpoint with extra queries and | ||
| multiple cloudevent schedules, this is done in a task. | ||
| """ | ||
| if settings.NOTIFICATIONS_DISABLED: |
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.
On second thought, let's add a separate flag to enable cloud events, same as Open Zaak: https://github.com/open-zaak/open-zaak/blob/1dc9637ee24368822fb74ab3a07631372a309ff0/src/openzaak/conf/includes/base.py#L532
@stevenbal Yeah. Could well be that it's just variance in GH runners. |
feb7bf8 to
2e119cc
Compare
Fixes #708