-
Notifications
You must be signed in to change notification settings - Fork 6
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
✨ [#1838] Add zaaktypen select widget for Category admin #845
✨ [#1838] Add zaaktypen select widget for Category admin #845
Conversation
e8c97f7
to
9f58b6b
Compare
d41d4b2
to
887d74f
Compare
a60bd8c
to
7c1a642
Compare
src/open_inwoner/pdc/managers.py
Outdated
|
||
months_since_last_zaak_per_zaaktype = {} | ||
for case in cases: | ||
resolve_zaak_type(case) |
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.
@alextreme this approach does mean that we have to do a fetch to get the zaaktype for each zaak, which isn't very efficient. I'm not sure how we could avoid this without something like an include
parameter.
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.
Discussed: simplify this by storing the zaaktype URL on zaaktypeconfig and use that instead of identificatie on category, to avoid having to resolve here
Marked as draft again until performance issues have been resolved |
dfddb8f
to
ff919cb
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #845 +/- ##
===========================================
- Coverage 92.84% 92.83% -0.01%
===========================================
Files 759 765 +6
Lines 26233 26486 +253
===========================================
+ Hits 24355 24589 +234
- Misses 1878 1897 +19 ☔ View full report in Codecov by Sentry. |
task: https://taiga.maykinmedia.nl/project/open-inwoner/task/1838 also disabled the diplaying of "selected" categories in the CategoriesPlugin
f01def1
to
ae04de6
Compare
@@ -258,6 +258,10 @@ class SiteConfigurarionAdmin(OrderedInlineModelAdminMixin, SingletonModelAdmin): | |||
) | |||
}, | |||
), | |||
( | |||
_("Display options for authenticated users"), | |||
{"fields": ("enable_categories_filtering_with_zaken",)}, |
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.
Graag verplaatsen naar de OpenZaak solo config model
task: https://taiga.maykinmedia.nl/project/open-inwoner/task/1838 this is required, because otherwise the categories plugin will always apply the filter based on zaken for DigiD users, essentially overriding the other visibility flags for those users
48a7749
to
49b32d4
Compare
task: https://taiga.maykinmedia.nl/project/open-inwoner/task/1838 this is necessary to avoid performance issues when implementing personalization of categories based on zaaktypen
task: https://taiga.maykinmedia.nl/project/open-inwoner/task/1838 * move relevante_zaak_periode to ZaakTypeConfig, to have this fixed per zaaktype * use the ZaakTypeConfig.url that was added to figure out the identificaties, to avoid having to resolve a lot of zaaktypes
49b32d4
to
db38712
Compare
task: https://taiga.maykinmedia.nl/project/open-inwoner/task/1838