Skip to content
Snippets Groups Projects
Commit 9e2c6b31 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'dev' into resulttable

parents 452d6f2c bfa5a598
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!6Resulttable
Pipeline #14713 failed
...@@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Fixed an issue where `caosadvancedtools.cache.UpdateCache` would * Fixed an issue where `caosadvancedtools.cache.UpdateCache` would
cause an `sqlite3.IntegrityError` if more than one change was cached cause an `sqlite3.IntegrityError` if more than one change was cached
for the same entity. for the same entity.
* #40 Insertion of identifiables with missing obligatory properties
### Security ### ### Security ###
......
...@@ -89,5 +89,6 @@ def test_crawler_with_data_model_problems(): ...@@ -89,5 +89,6 @@ def test_crawler_with_data_model_problems():
# There should be datamodel problems # There should be datamodel problems
assert len(DataModelProblems.missing) > 0 assert len(DataModelProblems.missing) > 0
# Deleted entities should have been identified: # Deleted entities should have been identified:
assert deleted_entities.issubset(DataModelProblems.missing) assert DataModelProblems.missing.issubset(deleted_entities)
...@@ -544,8 +544,8 @@ carefully and if the changes are ok, click on the following link: ...@@ -544,8 +544,8 @@ carefully and if the changes are ok, click on the following link:
try: try:
if len(cfood.to_be_updated) > 0: if len(cfood.to_be_updated) > 0:
logger.info( logger.info(
"Updating {} Records...".format( "Updating {} Records...".format(
len(cfood.to_be_updated))) len(cfood.to_be_updated)))
guard.safe_update(cfood.to_be_updated, unique=False) guard.safe_update(cfood.to_be_updated, unique=False)
except FileNotFoundError as e: except FileNotFoundError as e:
logger.info("Cannot access {}. However, it might be needed for" logger.info("Cannot access {}. However, it might be needed for"
...@@ -610,7 +610,8 @@ carefully and if the changes are ok, click on the following link: ...@@ -610,7 +610,8 @@ carefully and if the changes are ok, click on the following link:
logger.info( logger.info(
"Inserting {} Records...".format( "Inserting {} Records...".format(
len(missing_identifiables))) len(missing_identifiables)))
guard.safe_insert(missing_identifiables, unique=False) guard.safe_insert(missing_identifiables, unique=False,
flags={"force-missing-obligatory": "ignore"})
except Exception as e: except Exception as e:
DataModelProblems.evaluate_exception(e) DataModelProblems.evaluate_exception(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment