Comments (8)
Locally, I just added authorize?: false
to make my test work for now. I haven't had the time yet to investigate where the actor would be coming from.
from ash.
Maybe you already know where you would get it from or if it is even necessary, @zachdaniel. Otherwise, let me know, and I can investigate further.
from ash.
So, taking a look, I can see why this would be the case for the destroy
call, but not the update
call. I will push up a fix for the update
call in a bit, and we can see if that resolves it for you.
from ash.
So, taking a look, I can see why this would be the case for the
destroy
call, but not theupdate
call. I will push up a fix for theupdate
call in a bit, and we can see if that resolves it for you.
I'm not sure I understand. Did you mean destroy
in the second sentence? I'm also not sure what the difference is. Both are calls to actions that do not get the necessary data to run policies.
from ash.
What information are they missing (as of the latest?) I believe they are fixed.
from ash.
The actor
from ash.
We get the actor from the source changeset, because we copy the private
context
from ash.
I guess that's happening in copy_source
? I didn't check in there, because the variable passed in was called constraints
.
I wasn't able to verify this yet because the newest commit kills my tests because of infinite recursion.
from ash.
Related Issues (20)
- Mix feature version mismatch
- PubSub DSL module option doesn't expand aliases. HOT 2
- Changing identities leads to generation of erroneous migrations HOT 1
- Error when using bulk_update on a manual action HOT 1
- `Identity.where` is not working HOT 1
- Ash.load/3 does not honour lazy?: true
- Error when doing a calculation on an aggregate in nested relationship HOT 1
- Missing actor in context when calling a manual update action with an ash_graphql mutation
- Change with before_action or before_tranaction hook not being enforced. HOT 2
- Ash.Resource.Calculation.load has incorrect typespec HOT 1
- Action argument defaults not always applied
- Enable accessing nested argument values from policy expressions
- In Ash.can?, check if tenant given matches the tenant in the provided record
- Allow manual actions to write to private attributes HOT 4
- Not selecting an embed makes query blow up
- Issue with many to many on update HOT 3
- In Ash.Query.build, load of relationship obliterates select on that relationship
- Modify `manage_relationship` to handle destroy first, or add an option to prioritize it HOT 1
- Make the simple data layer support offset/limit.
- Support multiple filters in aggregations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ash.