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

Don't request records as part of the permissions #536

Merged
merged 2 commits into from
May 22, 2018
Merged

Don't request records as part of the permissions #536

merged 2 commits into from
May 22, 2018

Conversation

glasserc
Copy link
Contributor

It's normal for a user to have a ton of records. We only actually need
the buckets and collections here to build the sidebar, but build this
as a blacklist instead of a whitelist on the off-chance that someday
we add groups to the sidebar too.

Fixes #533.

It's normal for a user to have a ton of records. We only actually need
the buckets and collections here to build the sidebar, but build this
as a blacklist instead of a whitelist on the off-chance that someday
we add groups to the sidebar too.

Fixes #533.
@glasserc
Copy link
Contributor Author

It took me a while to make sure this wouldn't break editing permissions on records, but actually whenever we edit an object, we issue a batch request (in getBatchLoadFn) to fetch the most up-to-date information about it and all its parents.

@glasserc glasserc requested a review from magopian May 21, 2018 18:03
Copy link
Contributor

@leplatrem leplatrem left a comment

Choose a reason for hiding this comment

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

LGTM

@glasserc glasserc merged commit 01b6c71 into Kinto:master May 22, 2018
@glasserc glasserc deleted the only-buckets-and-collections branch May 22, 2018 12:29
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.

2 participants