-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
findById does not include "options", but find does? #3209
Comments
Ok, I have narrowed this down a bit now. The problem is not actually with |
Some more information. When I run with On the other hand, in the test case that fails, I get this output, which differs in the following two lines which don't appear in the passing test:
This does look like a bug to me, but I'm not sure where it's coming from. |
So, simply removing the last part of the access control list makes the tests pass: {
"accessType": "*",
"principalType": "ROLE",
"principalId": "$owner",
"permission": "ALLOW"
} It seems that there's really some very peculiar bug that only strikes when the dynamic |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Description/Steps to reproduce
According to the new remoting context injection #3023 I expect to always get an
options
property in the current context of an operation hook. I have a mixin that will restrict the requested object to the current owner (and in the future other team members, so I can't use$owner
):This works just fine when I do a request like this:
/api/projects?filter[where][id]=1
, but when I do a request like this:/api/projects/1
, theoptions
parameter is empty.Expected result
I expect invocation of
find
andfindById
to both propagate the options to operation hooks.Additional information
Here is the model definition file:
Versions
The text was updated successfully, but these errors were encountered: