Skip to content

Add ability to enumerate instances of types to returned JSONSchemas #518

Closed

Description

@keithralphs

At the moment on the /plans and /plans/(name} endpoints, the returned JSONSchemas that describe the plan(s) provide the types of objects with bluesky interfaces (e.g. detectors, axes etc.) that represent items bluesky talks to rather than the enumerated names of these items. This is perfectly reasonable and suitable for the command line inteface, GDA etc., but is not ideal for generating basic UIs from plan descriptions via e.g. JSONForms. For this use case, a list of the names of the devices avaliable on the beamline rather than their type is what is required so that these can be automatically presented to the user for selection to be passed back when the form is submitted.

The capablity to present the information in this form should be added to the plans endpoints either as an option (.g. ?enumerated=true) or as a separate version of the endpoints to allow both the current and desired functionality to be supported. The extra information should probably be provided as well as rather than instead of the class names. This will allow the addition of a new plan to the beamline to automatically extend the range of basic web UIs available as well providing richer information for future fully fledged UIs, whilst still supporting existing interfaces.

Activity

  1. added
    enhancement
    on Jun 24, 2024
  2. callumforrester commented on Jun 24, 2024

    @callumforrester
    Contributor

    to allow both the current and desired functionality to be supported

    Is there a use case for the current functionality? If not I say we drop it and just have the desired functionality.

  3. keithralphs commented on Jun 24, 2024

    @keithralphs
    ContributorAuthor

    to allow both the current and desired functionality to be supported

    Is there a use case for the current functionality? If not I say we drop it and just have the desired functionality.

    Dunno, I just assumed it was that way because the current CI used it, if not then maybe.

  4. callumforrester commented on Jun 24, 2024

    @callumforrester
    Contributor

    I think it is just the simplest possible implementation

  5. added
    c: ui
    on Jul 17, 2025
  6. abbiemery commented on Feb 25, 2026

    @abbiemery
    Contributor

    Close as complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: rest apic: uienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions