Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Aug 14, 2024
1 parent 6a6bfc2 commit 3b84719
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backoffice/config/api_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
)
router.register("workflows", WorkflowViewSet, basename="workflows")
(router.register("workflow-ticket", WorkflowTicketViewSet, basename="workflow-ticket"),)
router.register("decision", DecisionViewSet, basename="decisions")
router.register("decisions", DecisionViewSet, basename="decisions")
app_name = "api"
urlpatterns = router.urls
7 changes: 7 additions & 0 deletions workflows/dags/author/author_create/shared_tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from airflow.decorators import task
from hooks.backoffice.base import BackofficeHook
from hooks.backoffice.workflow_management_hook import WorkflowManagementHook


@task()
Expand All @@ -13,4 +14,10 @@ def create_decision_on_curation_choice(**context):
"workflow_id": context["params"]["workflow_id"],
}

workflow_data = WorkflowManagementHook().get_workflow(
workflow_id=context["params"]["workflow_id"]
)

print(workflow_data)

BackofficeHook().request(method="POST", data=data, endpoint="api/decisions/")

0 comments on commit 3b84719

Please sign in to comment.