-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: Add support and documentation for custom strategies. #154
Conversation
176e6f6
to
409648b
Compare
58cb3e7
to
f7557d2
Compare
f7557d2
to
55fb1f4
Compare
Love this. Have done a light review of the changes, will want to look into it a bit more deeply later. Very pleased with defining all the built in strategies using the same tools for custom strategies. That pattern worked well for ash/spark because it ensures that anything we build into core also adds capabilities for custom strategies. Things that stood out to me and I’ll want to look at more: the EEx.eval and the fact that transformer order is currently not configurable for strategies (may not be an issue at all). |
The |
It's only on the dev server but I assume it's what people would need to do to give their custom strategies UI components? As for entity transformers transforming the whole DSL, it adds some complexity to the problem of when things are transformed which is already pretty complex. I could support the addition of an entity adding a new transformer that runs with the other transformers though? We'd need "opts" for transformers though...lol |
Nope, it's just so that I can do manual testing in dev.
Yeah, it just felt weird to reinvent the transformer mechanism for this change. |
Agreed,the ability to have transformers get added automatically based on entities being added solve for it. Alternatively, instead of a |
What would the render look like in the real world? |
Well they'd have to make their own form or liveview or API endpoint. |
I thought we did something where we loop over each strategy to see if it has a form and render that. Or is that only for the specific built in strategies? I see what you mean now though, the render function isn't part of the behaviour just something you're using for tests |
We do that in |
Right. And custom strategies don't have a way to be included in that process currently? |
Nope, although I am working on a PR to |
Nice :) |
No description provided.