Skip to content

Update respond_to_confirmation API to Invoke reject_pending_actions on Rejection #1376

@hieptl

Description

@hieptl

@event_router.post(
"/respond_to_confirmation", responses={404: {"description": "Item not found"}}
)
async def respond_to_confirmation(
request: ConfirmationResponseRequest,
event_service: EventService = Depends(get_event_service),
) -> Success:
"""Accept or reject a pending action in confirmation mode."""
await event_service.respond_to_confirmation(request)
return Success()

We are using the API described above. When request.accept = False, the pause function is currently being called; however, it should instead call the reject_pending_actions function.

Acceptance Criteria:

  • When the API is invoked with request.accept = False, the reject_pending_actions function must be called.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions