Skip to content
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

"queue with parameters" - introduce parameter types #758

Open
mchwalek opened this issue Sep 25, 2022 · 0 comments
Open

"queue with parameters" - introduce parameter types #758

mchwalek opened this issue Sep 25, 2022 · 0 comments

Comments

@mchwalek
Copy link
Contributor

Hi, I think the "queue with parameters" feature would be more convenient to use if we introduce a notion of type to the parameters. Firstly, because the currently used single-line inputs are convenient only for simple string data - passing something like a JSON is inconvenient and error-prone. Secondly, because the form passes all the parameters as strings, which in turn must be parsed by the queued job - it'd be more convenient the just receive the data without any conversion.

For my personal uses, I'd need the following types

  • string (the default if type is not specified) - has the current behavior
  • text - renders a textarea, passes value to job as string
  • json - uses some js library to render a JSON editor, passes value to job as a hash

Please let me know what do you think about this suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant