Skip to content

Couple particular devices and plans #1139

@callumforrester

Description

@callumforrester

inject gives us a mechanism to set default devices for plan parameters. As a user I want to not just set a default, but mandate a device so the user has no other option. The use cases are:

  • Restricting the user from doing an untested operation
  • Reducing the complexity of generated GUIs by removing the device parameter from the JSON schema

However, I recognise that flexibility and future proofing are a good thing, it is very easy to write a plan thinking it is a one-off and will only ever use a specific device, only to realise that it can be generalised, and it is generally better if that generalisation can be done by sending different parameter values rather than code changes. I think this is worth further discussion.

Tagging for interest, please forward as appropriate @GDYendell @douglaswinter @DiamondJoseph @olliesilvester @DominicOram

Acceptance Criteria

  • It is possible to write plans with mandatory, rather than default devices
  • These plans use the devices but make no reference to them in their parameter schemas

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestjson formsTickets involved in producing a JSONForms UI from the plan schemasquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions