Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NvdLaan committed Nov 18, 2024
1 parent 4fd28d9 commit 91158cc
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 115 deletions.
19 changes: 0 additions & 19 deletions app/apps/cases/tests/tests_signals.py

This file was deleted.

21 changes: 0 additions & 21 deletions app/apps/debriefings/signals.py

This file was deleted.

1 change: 0 additions & 1 deletion app/apps/decisions/task_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def update_decision_with_summon(serializer):
"type_besluit": {"value": decision.decision_type.workflow_option},
}
if summon:
print("summon", summon)
decision.summon = summon
decision.save()
names = ", ".join([person.__str__() for person in summon.persons.all()])
Expand Down
8 changes: 0 additions & 8 deletions app/apps/schedules/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,3 @@ def pre_save_schedule(sender, instance, **kwargs):
instance.housing_corporation_combiteam = (
is_corpo_combiteam_completed_tasks | is_combiteam_project
)


# @receiver(post_save, sender=Schedule, dispatch_uid="schedule_create_complete_task")
# def complete_task_create_schedule(sender, instance, created, **kwargs):
# if kwargs.get("raw"):
# return
# if created:
# CaseWorkflow.complete_user_task(instance.case_user_task_id, {}, wait=True)
18 changes: 0 additions & 18 deletions app/apps/schedules/tests/tests_signals.py

This file was deleted.

27 changes: 0 additions & 27 deletions app/apps/visits/signals.py

This file was deleted.

20 changes: 0 additions & 20 deletions app/apps/workflow/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,23 +166,3 @@ def start_workflow(sender, instance, created, **kwargs):
return
if created:
task_start_worflow(instance.id)


# # @receiver(
# # post_save,
# # sender=GenericCompletedTask,
# # dispatch_uid="complete_generic_user_task_and_create_new_user_tasks",
# # )
# def complete_generic_user_task_and_create_new_user_tasks(
# sender, instance, created, **kwargs
# ):
# if kwargs.get("raw"):
# return
# task = CaseUserTask.objects.filter(id=instance.case_user_task_id).first()
# if created and task:
# data = copy.deepcopy(instance.variables)
# data.pop("mapped_form_data")
# user_task_type = get_task_by_name(task.task_name)
# user_task_instance = user_task_type(task)
# data.update(user_task_instance.get_data())
# CaseWorkflow.complete_user_task(task.id, data, wait=True)
2 changes: 1 addition & 1 deletion app/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def get_redis_url():
},
"close_case": {
"initial_data": {
# "decision_count": {"value": 0},
"decision_count": {"value": 0},
"reason": {"value": "default"},
"theme": {"value": "default"},
},
Expand Down

0 comments on commit 91158cc

Please sign in to comment.