-
Notifications
You must be signed in to change notification settings - Fork 13
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
Attempting to use filters is unneccesarily inconvenient #26
Comments
Hey @mikroskeem Thanks for raising this issue and this is a valid one as filters are something that are used often. The idea was to keep the client as simple as possible and not put layers in between the user and docker, cases like this warrant some form of translation. Some of the ideas I can think of the top of my head:
I would like to know what you would think of as a nice solution to this? I am totally open to any suggestions and would really wanna make this even more approachable and useful 😄 |
Supplying helpers is not very great idea indeed, with the reason you pointed out. I'd rule that option out completely. First two are okay, perhaps 2nd one is the easiest to implement currently and would be sufficient. But I'd like to look into the first option as well. How would that look like? |
I could imagine interceptors to be something like this using a lib like sieppari: (def filter-interceptor
{:enter (fn [ctx]
(update-in ctx [:request :params :filter] json/write-value-as-string))}) then something like (sieppari/execute
[filter-interceptor ..other-interceptors http-handler]
{:op ... :params ... :as ...}) this way im thinking it would be a nice way for people to plug in their custom transformers without too much internal exposure. Having said that, I'm finding it hard to find time unfortunatey 😞 Will try to make time for this and if possible happy to swiftly merge PRs!! |
While this makes kind of sense, because...
...
filters
is string, but maybe this could be handled differently?The text was updated successfully, but these errors were encountered: