Skip to content

Conversation

@ruvenzx
Copy link
Contributor

@ruvenzx ruvenzx commented Dec 30, 2025

@ruvenzx ruvenzx self-assigned this Dec 30, 2025
Copilot AI review requested due to automatic review settings December 30, 2025 13:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds management flow execution functionality to the Descope Python SDK, allowing flows to be programmatically executed with optional input parameters, preview mode, and tenant specification.

Key Changes:

  • Added run_flow method to the Flow management class for executing flows with configurable options
  • Introduced FlowRunOptions class to encapsulate flow execution parameters (input, preview, tenant)
  • Added comprehensive test coverage including failure scenarios, no options, dict options, and FlowRunOptions object options

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
descope/management/flow.py Implements the run_flow method with support for both dict and FlowRunOptions parameter handling
descope/management/common.py Defines the FlowRunOptions class and adds the flow run API path constant
descope/__init__.py Exports the new FlowRunOptions class for public API usage
tests/management/test_flow.py Adds comprehensive test coverage for the new run_flow functionality with multiple test scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Coverage report

The coverage rate went from 98.32% to 98.34% ⬆️

100% of new lines are covered.

Diff Coverage details (click to unfold)

descope/management/flow.py

100% of new lines are covered (100% of the complete file).

descope/management/common.py

100% of new lines are covered (99.72% of the complete file).

@dorsha dorsha merged commit ba2a163 into main Dec 30, 2025
29 checks passed
@dorsha dorsha deleted the mgmt-flows-functions branch December 30, 2025 15:04
@ruvenzx ruvenzx mentioned this pull request Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants