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

Ensure the ACL is always part of the payload when using select #4967

Merged
merged 4 commits into from
Aug 15, 2018

Conversation

flovilmart
Copy link
Contributor

@flovilmart flovilmart commented Aug 15, 2018

This fixes the issue raised here

  1. We can use ACL as a key to select, until now, using select would prevent fetching the ACL in any case
  2. the ACL is always in the responses, no matter what is provided as keys to select.

The second point is more debatable, as it marks a departure from the original implementation, where only objectId, createdAt, updatedAt would be always returned. Now also ACL's are returned.

I can very well revert it so ACL's are only returned when asked with a select.

acinader
acinader previously approved these changes Aug 15, 2018
Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

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

lgtm. I think that always including the acl makes good sense.

@codecov
Copy link

codecov bot commented Aug 15, 2018

Codecov Report

Merging #4967 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4967      +/-   ##
==========================================
+ Coverage   94.26%   94.27%   +<.01%     
==========================================
  Files         120      120              
  Lines        8743     8751       +8     
==========================================
+ Hits         8242     8250       +8     
  Misses        501      501
Impacted Files Coverage Δ
src/RestQuery.js 96.31% <100%> (ø) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 92.07% <100%> (+0.05%) ⬆️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 97.21% <100%> (+0.01%) ⬆️
src/RestWrite.js 93.32% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af45b4d...ea75d7a. Read the comment docs.

acinader
acinader previously approved these changes Aug 15, 2018
@flovilmart flovilmart merged commit bf9fdb4 into master Aug 15, 2018
@flovilmart flovilmart deleted the fix/js-sdk-issue-571 branch August 15, 2018 13:48
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
…-community#4967)

* Ensure the ACL is always part of the payload when using select

* Update changelog

* fix for PG
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