Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 4.4.0rc3
current_version = 4.4.0rc4
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<build>\d+))?
Expand Down
2 changes: 1 addition & 1 deletion orchestrator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

"""This is the orchestrator workflow engine."""

__version__ = "4.4.0rc3"
__version__ = "4.4.0rc4"

from orchestrator.app import OrchestratorCore
from orchestrator.settings import app_settings
Expand Down
4 changes: 2 additions & 2 deletions orchestrator/graphql/schemas/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def customer(self) -> CustomerType:
)

@strawberry.field(description="Returns user permissions for operations on this process") # type: ignore
def user_permissions(self, info: OrchestratorInfo) -> FormUserPermissionsType:
oidc_user = info.context.get_current_user
async def user_permissions(self, info: OrchestratorInfo) -> FormUserPermissionsType:
oidc_user = await info.context.get_current_user
workflow = get_workflow(self.workflow_name)
process = load_process(db.session.get(ProcessTable, self.process_id)) # type: ignore[arg-type]
auth_resume, auth_retry = get_auth_callbacks(get_steps_to_evaluate_for_rbac(process), workflow) # type: ignore[arg-type]
Expand Down
4 changes: 2 additions & 2 deletions orchestrator/graphql/schemas/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def steps(self) -> list[Step]:
return [Step(name=step.name, assignee=step.assignee) for step in get_workflow(self.name).steps] # type: ignore

@strawberry.field(description="Return whether the currently logged-in used is allowed to start this workflow") # type: ignore
def is_allowed(self, info: OrchestratorInfo) -> bool:
oidc_user = info.context.get_current_user
async def is_allowed(self, info: OrchestratorInfo) -> bool:
oidc_user = await info.context.get_current_user
workflow_table = get_original_model(self, WorkflowTable)
workflow = get_workflow(workflow_table.name)

Expand Down