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

Data hierarchy editor allows to remove default metadata group #235

Closed
HTsybenko opened this issue Mar 22, 2024 · 1 comment
Closed

Data hierarchy editor allows to remove default metadata group #235

HTsybenko opened this issue Mar 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working data_hierarchy_editor Issues connected to the data hierarchy editor

Comments

@HTsybenko
Copy link

  • Go to data hierarchy editor.
  • For any data type, delete its default metadata group and save.
  • Pasta will restart.
  • Try to edit an item of the edited data type.

Traceback (most recent call last):
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/gui.py", line 132, in formDoc
formWindow = Form(self.comm, doc)
File "/home/htsybenko/Temp/envir/lib/python3.10/site-packages/pasta_eln/GUI/form.py", line 78, in init
dataHierarchyNode['default'].append({'name':keyInDocNotHierarchy})
KeyError: 'default'

The default metadata group should not be removable.

@SteffenBrinckmann
Copy link
Contributor

Redesign will take care of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data_hierarchy_editor Issues connected to the data hierarchy editor
Projects
None yet
Development

No branches or pull requests

3 participants