Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyI40AAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informations- und Automatisierungssysteme
PyI40AAS
Merge requests
!71
model: Fix Referable.id_short property: Update parent Namespace on change
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
model: Fix Referable.id_short property: Update parent Namespace on change
fix/id_short_namespace_update
into
master
Overview
0
Commits
1
Pipelines
3
Changes
2
Merged
Michael Thies
requested to merge
fix/id_short_namespace_update
into
master
4 years ago
Overview
0
Commits
1
Pipelines
3
Changes
2
Expand
... enhances tests to catch this bug, as well.
Fixes
#125 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
eb9024ff
1 commit,
4 years ago
2 files
+
10
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
aas/model/base.py
+
7
−
1
Options
@@ -474,7 +474,13 @@ class Referable(metaclass=abc.ABCMeta):
if
id_short
in
set_
:
raise
KeyError
(
"
Referable with id_short
'
{}
'
is already present in the parent Namespace
"
.
format
(
id_short
))
for
set_
in
self
.
parent
.
namespace_element_sets
:
if
self
in
set_
:
set_
.
discard
(
self
)
self
.
_id_short
=
id_short
set_
.
add
(
self
)
break
# Redundant to the line above. However this way, we make sure that we really update the _id_short
self
.
_id_short
=
id_short
def
update
(
self
,
Loading