Skip to content

"queue with parameters" - introduce parameter types #758

@mchwalek

Description

@mchwalek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions