Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • PyI40AAS PyI40AAS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Lehrstuhl für Informations- und AutomatisierungssystemeLehrstuhl für Informations- und Automatisierungssysteme
  • PyI40AASPyI40AAS
  • Merge requests
  • !80

model.base: fix object identifier change + add tests

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Leon Mauritz Möller requested to merge fix/identifier_change into improve/V30RC01 Jul 03, 2021
  • Overview 2
  • Commits 4
  • Pipelines 6
  • Changes 2

When changing the identifier (id_short, semantic_id, name or type) of and object, all namespace sets of the respective namespace are checked and updated. This may cause an error if the parent namespace has namespace sets that aren't structured by the attribute that is updated, causing an error in NamespaceSet.__contains__() or NamespaceSet.contains_id().

This is fixed by excepting such errors and returning False instead.

Edited Jul 06, 2021 by Leon Mauritz Möller
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/identifier_change