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

Xml mdib #401

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0637915
first concept impl of xml based mdib
deichmab-draeger Aug 15, 2024
bb0aed4
implemented description modification report
deichmab-draeger Aug 20, 2024
2ff9af0
Merge branch 'master' into xml_mdib
deichmab-draeger Aug 20, 2024
cf299e4
all notifications implemented
deichmab-draeger Aug 20, 2024
c616bd7
typing stuff
deichmab-draeger Aug 20, 2024
1f3ac6a
reworked entity handling
deichmab-draeger Aug 22, 2024
6876817
use factory to create entities for flexibility
deichmab-draeger Aug 22, 2024
7a32baa
provider entity mdib works in most parts
deichmab-draeger Aug 30, 2024
bf811a5
renamings, xml_ prefix replaced with entity_ prefix; tests green
deichmab-draeger Sep 2, 2024
826b478
split AlarmProvider class into 3 separate ones for better clarity.
deichmab-draeger Sep 6, 2024
f9d5557
all tests green
deichmab-draeger Sep 6, 2024
6110f31
moved state initialization from alarm role provider to mdib.
deichmab-draeger Sep 10, 2024
05ce740
cleanup code, add more protocols for better abstraction.
deichmab-draeger Sep 11, 2024
a864b20
manage version counters in write_entity
deichmab-draeger Sep 12, 2024
411b625
Merge branch 'master' into xml_mdib
deichmab-draeger Sep 24, 2024
adbc6c4
merge master
deichmab-draeger Nov 19, 2024
c5d5d80
fixed ruff stuff.
deichmab-draeger Nov 20, 2024
64ca8c1
fixed ruff findings
deichmab-draeger Nov 20, 2024
b63c2ec
fixed ruff findings in mockstuff.py
deichmab-draeger Nov 21, 2024
0107ce3
fixed ruff findings in test_client_device.py
deichmab-draeger Nov 21, 2024
cb0686e
relaxed ruff rules for tests
deichmab-draeger Nov 21, 2024
2e637a4
fixed ruff stuff
deichmab-draeger Nov 21, 2024
e0cfc41
ruff findings, exclude protocol definitions from code coverage
deichmab-draeger Nov 21, 2024
ea66398
removed some obsolete code
deichmab-draeger Nov 21, 2024
2075091
add by_ prefix to entity getter methods; fixed locking problem in ent…
deichmab-draeger Nov 22, 2024
85d62d8
fixed ruff findings
deichmab-draeger Nov 22, 2024
ce36701
fixed ruff findings
deichmab-draeger Nov 22, 2024
cdf5002
review remarks; better copy method in entities.py
deichmab-draeger Nov 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/sdc11073/consumer/serviceclients/contextservice.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""The module contains the implementation of the BICEPS context service."""
from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -41,13 +42,13 @@ def mk_proposed_context_object(self, descriptor_handle: str,
mdib = self._mdib_wref()
if mdib is None:
raise ApiUsageError('no mdib information')
context_descriptor_container = mdib.descriptions.handle.get_one(descriptor_handle)
context_entity = mdib.entities.handle(descriptor_handle)
if handle is None:
cls = data_model.get_state_container_class(context_descriptor_container.STATE_QNAME)
obj = cls(descriptor_container=context_descriptor_container)
cls = data_model.get_state_container_class(context_entity.descriptor.STATE_QNAME)
obj = cls(descriptor_container=context_entity.descriptor)
obj.Handle = descriptor_handle # this indicates that this is a new context state
else:
_obj = mdib.context_states.handle.get_one(handle)
_obj = context_entity.states[handle]
obj = _obj.mk_copy()
return obj

Expand Down
Empty file.
Loading
Loading