Skip to content

Rename CommandMode, cancel_command, and scenario methods#1997

Merged
iMicknl merged 5 commits intov2/mainfrom
v2/execution_renames
Apr 19, 2026
Merged

Rename CommandMode, cancel_command, and scenario methods#1997
iMicknl merged 5 commits intov2/mainfrom
v2/execution_renames

Conversation

@iMicknl
Copy link
Copy Markdown
Owner

@iMicknl iMicknl commented Apr 19, 2026

Summary

  • Rename CommandModeExecutionMode and cancel_commandcancel_execution
  • Rename execute_scenarioexecute_persisted_action_group and execute_scheduled_scenarioschedule_persisted_action_group
  • Improve documentation for command execution concepts (core-concepts, device-control)
  • Update method docstrings across client, action queue, and models

Breaking

  • CommandMode renamed to ExecutionMode, cancel_command() renamed to cancel_execution(), execute_scenario() renamed to execute_persisted_action_group(), execute_scheduled_scenario() renamed to schedule_persisted_action_group()

@iMicknl iMicknl added enhancement New feature or request breaking v2 labels Apr 19, 2026
Copilot AI review requested due to automatic review settings April 19, 2026 15:18
@iMicknl iMicknl requested a review from tetienne as a code owner April 19, 2026 15:18
@iMicknl iMicknl added enhancement New feature or request breaking v2 labels Apr 19, 2026
Copy link
Copy Markdown
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 introduces breaking API renames to clarify Overkiz “execution” concepts (modes, cancellation, and persisted action groups) and updates docs/tests accordingly.

Changes:

  • Rename CommandModeExecutionMode and update call sites (client, action queue, tests, enum generator).
  • Rename scenario APIs to persisted action-group terminology (execute_persisted_action_group, schedule_persisted_action_group) and rename cancel_commandcancel_execution.
  • Expand and refine documentation around commands/actions/action groups, executions, and execution modes.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
utils/generate_enums.py Updates enum generation logic to preserve the renamed ExecutionMode class.
tests/test_action_queue.py Updates imports/usages and test wording for ExecutionMode.
pyoverkiz/enums/command.py Renames the enum class to ExecutionMode.
pyoverkiz/enums/init.py Re-exports ExecutionMode and updates __all__.
pyoverkiz/client.py Renames public APIs (cancel_execution, persisted action group methods) and updates typing/docstrings.
pyoverkiz/action_queue.py Updates type hints/docs from command mode to execution mode.
docs/device-control.md Reworks device-control docs and updates examples to new names/modes.
docs/core-concepts.md Adds clearer conceptual documentation aligned with renamed APIs.
README.md Updates the usage snippet comment to reference ExecutionMode.

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

Comment thread README.md
Comment thread utils/generate_enums.py Outdated
Comment thread docs/device-control.md Outdated
iMicknl and others added 2 commits April 19, 2026 17:23
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@iMicknl iMicknl merged commit 825b6b7 into v2/main Apr 19, 2026
8 checks passed
@iMicknl iMicknl deleted the v2/execution_renames branch April 19, 2026 15:27
@iMicknl iMicknl mentioned this pull request Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking enhancement New feature or request v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants