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

Support view RBAC with forms and cache view definitions #14899

Merged
merged 5 commits into from
Oct 29, 2024

Conversation

aptkingston
Copy link
Member

Description

This PR fixes an issue where forms always attempted to load the definition of their parent table when being used with a view, which is unnecessary and threw permission errors if the user did not also have access to this table.

Another improvement on this PR will massively help reduce API calls to the server - caching view definitions in client memory. We already cache table definitions, but we did not do the same for view definitions. These cannot change at runtime so it is safe to cache. On a table autoscreen with side panels, this reduces 8 duplicate API calls for the view definition into 1.

Before:
image

After:
image

Copy link

qa-wolf bot commented Oct 29, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@aptkingston aptkingston marked this pull request as ready for review October 29, 2024 11:48
Copy link
Collaborator

@adrinr adrinr left a comment

Choose a reason for hiding this comment

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

LGTM!

@aptkingston aptkingston merged commit c6855f1 into v3-ui Oct 29, 2024
11 checks passed
@aptkingston aptkingston deleted the form-schema-changes branch October 29, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants