Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content

Scan metadata widget

perl_d requested to merge feat/metadata-widget into main

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

Merge request reports

Loading