You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
So under the hood each of the objecttypes is requested in this method:
We can't use LIST objecttypes endpoint, because it doesn't have version data, so we use /api/v2/objecttypes/{objecttype_uuid}/versions endpoint for each objecttype uuid.
How to improve it
Now we request all objecttypes before the page is loaded, even if only one would be eventually selected.
Perhaps we can just request a particular objecttype which is selected in the form. So there should be required some React coding, like having an internal rest endpoint which FE requests which has objecttype id as a parameter.
If field-based auth is not used it can be turned off globally (for example via env var), and this problem would be solved very easily.
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: