Skip to content

Implement UI support for Global Configurations #328

@bhufmann

Description

@bhufmann

Feature Description:

This tracker is for the support of global configurations in the vscode-trace-extension UI. Global configuration is explained the here.

Updates in the traceviewer-react-component that is part of the theia-trace-extension repository are expected together with the VsCode UI integration similarly to #318.

To support global configuration using the json editor the following items have to be implemented

  • Manage Global configuration
    • Add a vscode command + a button/menu into the "Opened Traces" view:
    • This will open a new web-vew. The web view will use the Configuration Endpoints as described here
  • Use Cases
    • Open global configuration web view
      • Get all configuration sources from BE
      • Fill drop-down menu with all configuration sources. Select one (alphabetical)
      • Execute Use Case: "User selects configuration source"
    • User selects configuration source
      • Get all configuration instances from selected source from BE
      • Show all configurations as a list
      • Each configuration will have an "Edit..." and "Delete" button
      • There will be a "New..." Button to create a new instance
    • User presses "New..." Button
      • Json Editor is opened with pre-filled content according the schema
      • User fills in content
      • JSON Editor supports validation, saving, loading and applying configuration (the same way it does for data provider configuration)
      • User applies configuration
      • Execute Use Case "User selects configuration source"
      • Refresh trace viewer (e.g. Available views view)
      • Close Json Editor
    • User deletes configuration
      • User presses delete button of a configuration
      • Execute Use Case "User selects configuration source"
      • Refresh trace viewer (e.g. Available views view)
    • User edits configuration
      • Get JSON for configuration instances
      • Open JSON editor for configuration instance
      • User does updates
      • User applies configuration
      • Execute Use Case "User selects configuration source"
      • Refresh trace viewer (e.g. Available views view)
      • Close Json Editor
    • Close configuration webview
      • Close open json editor
      • Make sure that content in editor is not lost (e.g. ask user to apply)
  • Notes
    • Consolidate json editor implementation for global configuration and data provider configuration to not duplicate code
    • Handle adversarial cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions