pyl w/ burnettk
This commit is contained in:
parent
56c8c0c633
commit
93d9aa845f
|
@ -701,11 +701,11 @@ class ProcessInstanceProcessor:
|
||||||
"bpmn_file_full_path_from_bpmn_process_identifier: bpmn_process_identifier is unexpectedly None"
|
"bpmn_file_full_path_from_bpmn_process_identifier: bpmn_process_identifier is unexpectedly None"
|
||||||
)
|
)
|
||||||
|
|
||||||
spec_reference = SpecReferenceCache.query.filter_by(
|
spec_reference = (
|
||||||
identifier=bpmn_process_identifier
|
SpecReferenceCache.query.filter_by(identifier=bpmn_process_identifier)
|
||||||
).filter_by(
|
.filter_by(type="process")
|
||||||
type='process'
|
.first()
|
||||||
).first()
|
)
|
||||||
bpmn_file_full_path = None
|
bpmn_file_full_path = None
|
||||||
if spec_reference is None:
|
if spec_reference is None:
|
||||||
bpmn_file_full_path = (
|
bpmn_file_full_path = (
|
||||||
|
@ -1021,7 +1021,7 @@ class ProcessInstanceProcessor:
|
||||||
spiff_logger = logging.getLogger("spiff")
|
spiff_logger = logging.getLogger("spiff")
|
||||||
for handler in spiff_logger.handlers:
|
for handler in spiff_logger.handlers:
|
||||||
if hasattr(handler, "bulk_insert_logs"):
|
if hasattr(handler, "bulk_insert_logs"):
|
||||||
handler.bulk_insert_logs() # type: ignoreidentifier
|
handler.bulk_insert_logs() # type: ignore
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
except WorkflowTaskExecException as we:
|
except WorkflowTaskExecException as we:
|
||||||
|
|
|
@ -126,8 +126,7 @@ class TestSpecFileService(BaseTest):
|
||||||
with_db_and_bpmn_file_cleanup: None,
|
with_db_and_bpmn_file_cleanup: None,
|
||||||
with_super_admin_user: UserModel,
|
with_super_admin_user: UserModel,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""When a BPMN processes identifier is changed in a file, the old id
|
"""When a BPMN processes identifier is changed in a file, the old id is removed from the cache."""
|
||||||
is removed from the cache."""
|
|
||||||
old_identifier = "ye_old_identifier"
|
old_identifier = "ye_old_identifier"
|
||||||
process_id_lookup = SpecReferenceCache(
|
process_id_lookup = SpecReferenceCache(
|
||||||
identifier=old_identifier,
|
identifier=old_identifier,
|
||||||
|
|
Loading…
Reference in New Issue