Skip to content

Conversation

@mscolnick
Copy link
Contributor

This makes outgoing kernel messages (Notifications) much clearer.

@vercel
Copy link

vercel bot commented Dec 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Dec 22, 2025 11:07pm

@github-actions github-actions bot added the bash-focus Area to focus on during release bug bash label Dec 22, 2025
@github-actions
Copy link

Breaking changes detected in the Notifications Schema!

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@mscolnick mscolnick changed the title Ms/rename to notification refactor: Rename Op to Notification Dec 22, 2025
@github-actions
Copy link

Breaking changes detected in the Notifications Schema!

dmadisetti
dmadisetti previously approved these changes Dec 22, 2025
Copy link
Collaborator

@dmadisetti dmadisetti left a comment

Choose a reason for hiding this comment

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

Nice constant changes

@github-actions
Copy link

Breaking changes detected in the Notifications Schema!

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 refactors the codebase to rename "Op" (Operation) to "Notification" for outgoing kernel messages, making the terminology clearer and more semantically accurate. The changes are comprehensive, touching messaging infrastructure, runtime, server layers, tests, and API schemas.

Key Changes:

  • Renamed ops.py to notification.py and all related classes (e.g., CellOpCellNotification)
  • Updated function names from broadcast_opbroadcast_notification and add_operationadd_notification
  • Updated property names from cell_operationscell_notifications throughout the codebase
  • Updated OpenAPI schemas and generated YAML files to reflect the new naming

Reviewed changes

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

Show a summary per file
File Description
marimo/_messaging/notification.py Core rename: OpNotification base class, all operation classes renamed to end with Notification
marimo/_messaging/notification_utils.py Function rename: broadcast_opbroadcast_notification
marimo/_messaging/serde.py Updated serialization functions to reference NotificationMessage instead of MessageOperation
marimo/_server/session/session_view.py Renamed properties and methods: cell_operationscell_notifications, add_operationadd_notification
tests/* Updated all test files to use new notification naming
marimo/_runtime/runtime.py Updated runtime to use new notification classes and broadcast function
packages/openapi/* Updated API schemas to reflect new notification naming
marimo/_server/api/endpoints/editing.py Added new UpdateCellIdsRequest class to separate request from notification
Comments suppressed due to low confidence (1)

tests/_runtime/test_runtime.py:3851

  • This assignment to 'creation_request' is unnecessary as it is redefined before this value is used.

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


# Should have at least one output operation and one stale operation
assert len(md_cell_ops) >= 2
assert len(md_cell_notifications) >= 2
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

Variable stream is not used.

Copilot uses AI. Check for mistakes.
import marimo._data.models as data
import marimo._messaging.errors as errors
import marimo._messaging.ops as ops
import marimo._messaging.notification as notification
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

Module 'marimo._messaging.notification' is imported with both 'import' and 'import from'.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

Breaking changes detected in the Notifications Schema!

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@github-actions
Copy link

Breaking changes detected in the Notifications Schema!

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@github-actions
Copy link

Breaking changes detected in the Notifications Schema!

@mscolnick mscolnick merged commit 1063369 into main Dec 22, 2025
44 of 51 checks passed
@mscolnick mscolnick deleted the ms/rename-to-notification branch December 22, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bash-focus Area to focus on during release bug bash

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants