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
Allows to update permissions without payload #3346
Conversation
The failing test doesn't seems to be related with my changes |
Restarted the tests 👍🏻 I think it would make sense to make the |
@TorstenDittmann good catch I totally forgot about that, I'm not good at types in PHP, but reading the manual, that should be the way to make it optional let me know if that is enough 😀 |
Utopia has all those |
@TorstenDittmann I think I got it, Is everyting good now? |
Co-authored-by: Everly Precia Suresh <77877486+everly-gif@users.noreply.github.com>
Co-authored-by: Matej Bačo <matejbaco2000@gmail.com>
I need help I'm getting error I'm not sure but, is this related to utopia php? Seems like here is looking for a specific structure: https://github.com/utopia-php/database/blob/main/src/Database/Database.php#L1169-L1173 |
I have finally fixed, I have updated the test, I think not deleting the collection was causing problems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
What does this PR do?
Currently, to update the permission of a document, you also have to update some kind of data, or at least pass some kind of data.
This does not work:
So to update permissions we have to pass some data, even if the data is the same as the current one:
This change will allow to send an empty payload, but empty payload and read/write permission will keep throwing an error
Test Plan
No new test
Related PRs and Issues
#2850
Have you read the Contributing Guidelines on issues?
yes