Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to add user-defined labels to SCL files in the database #186

Closed
JakobVogelsang opened this issue Sep 1, 2022 · 0 comments · Fixed by #189
Closed

Allow to add user-defined labels to SCL files in the database #186

JakobVogelsang opened this issue Sep 1, 2022 · 0 comments · Fixed by #189
Assignees
Labels
enhancement New feature or request needs refinement

Comments

@JakobVogelsang
Copy link

JakobVogelsang commented Sep 1, 2022

As a user of CoMPAS I want to add labels to SCL files I store in the database. Those labels shall allow for better filtering of the files as described #184

Requirements

  • allow adding up to 20 labels
  • make sure that labels follow pattern: [A-Za-z][0-9A-Za-z_-]*
  • allow removing labels

Depends on

  • name space extension to save labels to the SCL see Issue

Mockup

hint: the icons in the model are from the goodle library: label and new_label
grafik

Additional information
The labels are added/removed to/from the private section in the SCL File in the front-end. The Data Service just saves the SCL File and won't change the anything to the labels. The Data Service only uses the labels when retrieve the list of SCL File stored in the database.

Example how the private section should look like. Check if the namespace needs to be added to the SCL Element.
And the type of the private section will be 'compas_scl'. See Locamation Plugin how to work with private extensions.

<SCL xmlns="http://www.iec.ch/61850/2003/SCL" xmlns:compas="https://www.lfenergy.org/compas/extension/v1" 
          release="4" revision="B" version="2007">
  <Private type="compas_scl">
    <compas:SclName>MiniGrid</compas:SclName>
    <compas:SclFileType>CID</compas:SclFileType>
    <compas:Labels>
     <compas:Label>Label1</compas:Label>
     <compas:Label>Label2</compas:Label>
    </compas:Labels>
  </Private>
  ...
</SCL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs refinement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants