-
Notifications
You must be signed in to change notification settings - Fork 10
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
Objecten API: Permission admin view is slow #464
Comments
W're doing an initial analysis before estimating (1-2 hours). |
Analysis: This happens because of field-based authorization option. On this page if you check "Use field-based authorization", then all fields of all versions of the selected objecttype would be displayed. objects-api/src/objects/token/admin.py Line 39 in f8c6944
We can't use LIST objecttypes endpoint, because it doesn't have version data, so we use How to improve it
|
So, only load in objecttype details when: 1) an objecttype is selected and 2) field based auth is checked. Only then load in the field based permission checkboxes. Estimated: 3 days |
@PeterVanBragt approval needed |
How can I tag Jan Verbeek in this ticket? I would like him to check the business value against the costs for resolving (and check with him if there's a sponsor for this). |
Dit kan met @VerbeekIT als het goed is |
@VerbeekIT - Checking the business value against the costs for resolving - what do you think? And do you know a sponsor for this? |
Ja dat lukt via VerbeekIT |
So, what exactly can be expected (performance wise) for this 3 day investment? Will 12 seconds become less then one? |
It will be less than 3 seconds to load the page, and most likely quicker |
Ok, approved (for max 3 day development time) |
Product versie / Product version
2.4.4
Omschrijf het probleem / Describe the bug
Taiga DH 596
Adding a new permission in the Objects API for DH currently takes ~12 seconds, this because of the retrieval of all the objecttypes on every pageload.
For further details and an APM trace please see the Taiga issue
Stappen om te reproduceren / Steps to reproduce
No response
Verwacht gedrag / Expected behavior
No response
The text was updated successfully, but these errors were encountered: