Scan metadata widget
Description
Widget to display a form for scan metadata
- loads schema based on scan name from the metadata schema registry (i.e. from plugin repo)
- form for required items is generated based on the model
- additional items can be added in the table
- obeys limits
lt, le, gt, ge
,title
max_length
in pydantic fields - sets
description
in label tooltip and limits and description in form entry widget tooltip
closes #366 (closed)
TODO:
- add docs
TODO (maybe for separate MRs...)
- add support for enums?
- add it to scan widget
To test:
If you run the widget, the plugin is mocked in main and you can add "scans" and schema there to play around with, see how it handles constraints etc.
Edited by perl_d