Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 224
    • Issues 224
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

On Monday, 27th March 9 a.m., the user backend of GitLab will get a reconfiguration. A new login to the web interface may be necessary.

  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #1104
Closed
Open
Issue created Sep 30, 2022 by Andrea Albino@aalbinoDeveloper

sub_sections not showed in inherited class if no quantity is present

I already know that this case can be solved using the lines:

      m_annotations:
        eln:
          dict()

Anyway, this is not working in the following scheme and hence I had to add a test quantity (as suggested by @mnakh when testing it).

It actually works if I instantiate an Entity archive file, but not when creating a Material archive file that inherits from Entity.

definitions:
  name: 'Test'
  sections:  # Schemes consist of section definitions
    Entity:
      m_annotations:
        eln:
          dict()
      base_sections:
        - nomad.datamodel.data.EntryData
      sub_sections:
        responsible_person:
          section:
            quantities:
              user:
                type: User
                shape: ['*']
                m_annotations:
                  eln:
                    component: UserEditQuantity
    Material:
      base_section: '#/Entity'

this is the same file where I added the 'test' quantity

definitions:
  name: 'Test'
  sections:  # Schemes consist of section definitions
    Entity:
      m_annotations:
        eln:
          dict()
      base_sections:
        - nomad.datamodel.data.EntryData
      quantities:
        test:
          type: str
          m_annotations:
            eln:
              component: StringEditQuantity
      sub_sections:
        responsible_person:
          section:
            quantities:
              user:
                type: User
                shape: ['*']
                m_annotations:
                  eln:
                    component: UserEditQuantity
    Material:
      base_section: '#/Entity'
Assignee
Assign to
Time tracking