Conversation
88d50f6 to
b419741
Compare
|
Would it be possible to narrow this PR to only focus on the I'm uncertain about the stuff relating to the primary key. I'd need to understand your use case better. It might be more of a documentation issue. |
b419741 to
6b56906
Compare
|
Sorry, I accidently based it on wrong branch with my second WIP PR. Fixed. As for tests - TBH I don't even know where to begin. ExUnit seems similar to other test libraries I used but I'm completely oblivious to what should I test or how exactly current tests work. If you can give me some pointers, it would definitely help. Existing test for similar functionality would be best, hopefully I can wrap my head around it. If anyone else would volunteer to add test for this, I'll be really glad. |
|
I think you should add the tests so that you can learn to add the tests! I actually really love ExUnit and it quite frankly made me a much better TDD-er in all other stacks. To start I'd say just explore the existing test suite as it is. To test functionality, you need to create a test Ash resource where all the other test Ash resources are ( For this functionality you'd probably want the actual assertions to live under |
|
Also lmk if you'd like to start with a clean fork/PR and I can close this one out. I often find it very difficult to undo things. |
c2cab83 to
88653e8
Compare
|
No need to start clean, I'm quite fluent with Git (unlike Elixir :D). Anyway those directions was exactly what I needed. I added two test resources, one with :only and one with :except and 4 tests:
Do you want any other? Btw. I'm not really sure with naming tests but hopefully it is decent enough. |
Added missing support of :only and :except on item actions. Example:
item_actions do
action :versions,
SomeWeb.Admin.Resource,
only: [:row]
end
88653e8 to
4f5de81
Compare
|
Is there anything else I can provide or add here to have this merged? I hope this one is just small addition without any downsides? |
|
Merged! |
Added missing support of :only and :except on item actions. Example: