Skip to content
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

Feature/464 permission admin view slow #508

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

danielmursa-dev
Copy link
Contributor

@danielmursa-dev danielmursa-dev commented Dec 31, 2024

Fixes #464

An internal administration endpoint admin/core/objecttype/<objecttype_id>/versions/ was created to retrieve all versions related to the objecttype.

Then the FE part was modified, so that each time an objecttype is modifie/selectedd, it call a new request to the endpoint.

Copy link
Contributor

@stevenbal stevenbal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking of the following to make it possible to fetch the fields via the frontend (such that the form doesn't have to be saved to fetch them):

  • make an endpoint on the admin (that requires admin authentication) that performs the request for a specific object_type_id to retrieve the data_fields (e.g. /admin/objecttypes/<id>). That way we don't have to expose the token to the frontend and we only need to pass the id to the frontend
  • in react, call this new endpoint for the currently selected objecttype and display the result

@annashamray what do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Objecten API: Permission admin view is slow
2 participants