-
Notifications
You must be signed in to change notification settings - Fork 1
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
Augmenting a vector context key from a processor #25
Comments
I actually get:
Initializing the context solves: (fonda/execute
{:initial-ctx {:endpoint endpoint
:logger logger
:journeys []}}
... |
@ElChache the solution in the other issue is the same I have here...and honestly is not that pretty imho compared to: (update-in ctx [:request :policies] conj %) It would be nice to just append to something that is either already a vector (using some magic) or just allow arbitrary operations on top of the context. I think we talked about this but I will write it here too, it's either you allow operations on the context like in We took the latter I guess with Clojure provides We should probably decide which ones we want to expose if we want to keep the DSL. |
You are right, we are limited now in the sense that we only map
So we get rid of :path and replace it with one of the above |
Well the problem is that in Clojure-land We could extend It would this way work as both an Still don't know about merge...for Say a response returns: {:body {:this :foo :that :bar}} You might want to store it in the context as: {:this :foo
:that :bar
:other 1} So I have had this use case only once to be honest but putting it out there 😄 |
Dear fonda folks,
I have a use case where I need to create steps ad-hoc, programmatically, so I am doing:
where:
It feels though, I am hacking my way in so that I can save in the context an array or results. I probably should not hijack
:path
with the index in order to do that.What would be the best way to handle this?
Should
fonda
allow more freedom in adding things to the context?/cc @ElChache
The text was updated successfully, but these errors were encountered: