Skip to content

feat: add BATCH_COMMIT_COMMANDS effect#1551

Open
beaugunderson wants to merge 3 commits intomainfrom
bg-cac
Open

feat: add BATCH_COMMIT_COMMANDS effect#1551
beaugunderson wants to merge 3 commits intomainfrom
bg-cac

Conversation

@beaugunderson
Copy link
Member

@beaugunderson beaugunderson commented Mar 5, 2026

https://canvasmedical.atlassian.net/browse/KOALA-4385
home-app: https://github.com/canvas-medical/canvas/pull/18775

Add BatchCommitCommandEffect and _commit_payload_for_batch() to enable committing multiple commands in a single batch operation, mirroring the existing BATCH_ORIGINATE_COMMANDS pattern.

@beaugunderson beaugunderson requested a review from a team as a code owner March 5, 2026 03:49
@github-actions github-actions bot added the Jira: Not Linked PR body does not contain a Jira link label Mar 5, 2026
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.57%. Comparing base (47c3598) to head (b63438e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1551   +/-   ##
=======================================
  Coverage   93.57%   93.57%           
=======================================
  Files         487      488    +1     
  Lines       21855    21869   +14     
  Branches     1014     1014           
=======================================
+ Hits        20450    20464   +14     
  Misses       1252     1252           
  Partials      153      153           
Flag Coverage Δ
plugin-abnormal_lab_task_notification 100.00% <ø> (ø)
plugin-api_samples 33.33% <ø> (ø)
plugin-appointment_coverage_label 100.00% <ø> (ø)
plugin-coverage_metadata_sync 100.00% <ø> (ø)
plugin-my_first_plugin 100.00% <ø> (ø)
plugin-patient_summary_chart_groups 100.00% <ø> (ø)
plugin-preact_hello_world 100.00% <ø> (ø)
plugin-send_all_prescriptions 100.00% <ø> (ø)
plugin-simple_note_button_plugin 100.00% <ø> (ø)
plugin-supervising_provider_prescribe 100.00% <ø> (ø)
plugin-supervising_provider_prescribe_protocol 100.00% <ø> (ø)
plugin-upsert_patient_metadata 100.00% <ø> (ø)
plugin-vitals_visualizer_plugin 98.43% <ø> (ø)
py3.11 93.60% <100.00%> (+<0.01%) ⬆️
py3.12 93.60% <100.00%> (+<0.01%) ⬆️
sdk-core 93.60% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot added Jira: Linked PR body contains a Jira link PR: Conflicts and removed Jira: Not Linked PR body does not contain a Jira link labels Mar 5, 2026
Add BatchCommitCommandEffect and _commit_payload_for_batch() to enable
committing multiple commands in a single batch operation, mirroring the
existing BATCH_ORIGINATE_COMMANDS pattern.
Verifies that a plugin can import BatchCommitCommandEffect, construct
command instances with command_uuid, and produce the correct effect
payload through the RestrictedPython sandbox.
Address PR feedback: use "handler" terminology instead of "protocol"
(which is reserved for clinical protocols).
@beaugunderson beaugunderson requested a review from aduane March 10, 2026 06:54
Copy link
Collaborator

@aduane aduane left a comment

Choose a reason for hiding this comment

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

This looks good, but the home-app PR has some comments Rui left that need attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Jira: Linked PR body contains a Jira link PR: Conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants