Feature/couchdb update commit
3 unresolved threads
3 unresolved threads
The update/commit functions for the adapter.couchdb
-implementation.
(As well as the updated model.base.Referable.update() function)
Edited by Michael Thies
Merge request reports
Activity
added 1 commit
- c27fe133 - adapter.couchdb: Add missing inheritance of CouchDBIdentifiable to CouchDBReferable
added 1 commit
- 17554681 - adapter.couchdb.CouchDBIdentifiable.update_identifiable: Fix function call "self.update_from()"
- Resolved by Sebastian Heppner
222 model.Identifier('https://acplt.org/Test_Submodel', model.IdentifierType.IRI)) 223 224 # Change the SubmodelElement Capability, so that the local version is not the same as the one in the CouchDB 225 assert (isinstance(submodel, couchdb.CouchDBSubmodel)) 226 capability = submodel.submodel_element.get_referable('ExampleCapability') 227 capability.semantic_id = model.Reference((model.Key(type_=model.KeyElements.GLOBAL_REFERENCE, 228 local=False, 229 value='http://acplt.org/Capabilities/AnotherCapability', 230 id_type=model.KeyType.IRDI),)) 231 232 # Update the Submodel from the CouchDB 233 submodel.update() 234 235 # Check that the update function updated the submodel correctly 236 checker = AASDataChecker(raise_immediately=True) 237 check_example_submodel(checker, submodel) 427 427 # ################################################################################################# 428 428 # Special object classes for Identifiable PyI40AAS objects retrieved from the CouchDBObjectStore 429 429 430 class CouchDBIdentifiable(model.Identifiable, metaclass=abc.ABCMeta): 430 class CouchDBReferable(model.Referable, metaclass=abc.ABCMeta): added 1 commit
- 5501f53d - adapter.couchdb.CouchDBIdentifiable: Rename update_identifiable() to update()
This MR is superseded by !50 (merged), isn't it? So IMHO we can close it unmerged.
Please register or sign in to reply