Skip to content

Conversation

@remimd
Copy link
Member

@remimd remimd commented Jan 21, 2026

No description provided.

Copy link

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 pull request adds a query_step method to ContextCommandPipeline, enabling pipelines to dispatch queries in addition to commands. This enhances the pipeline pattern by allowing mixed command and query dispatching within the same pipeline.

Changes:

  • Added query_step method to ContextCommandPipeline that delegates to the base step method with a query-specific dispatcher
  • Introduced a separate __query_dispatcher (LazyDispatcher with QueryBus) for handling query dispatching
  • Updated test to demonstrate query_step functionality with a query handler
  • Updated documentation to document the new query_step decorator
  • Updated type annotations to be more specific (using ContextCommandPipeline instead of generic ContextPipeline)
  • Updated various dependencies to their latest versions

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
cq/_core/pipetools.py Added query_step method and __query_dispatcher attribute to support query dispatching in pipelines
tests/test_context_command_pipeline.py Updated test to demonstrate mixed command and query dispatching, removed unused import
docs/guides/pipeline.md Added documentation for query_step, improved type annotations
uv.lock Updated multiple dependencies to latest versions

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

@remimd remimd merged commit a8a073b into dev Jan 21, 2026
12 checks passed
@remimd remimd deleted the query_step branch January 21, 2026 12:34
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.

2 participants