Skip to content

[Dashboard] Implement Frontend UI for Platform Events#63332

Merged
edoakes merged 1 commit into
ray-project:masterfrom
richabanker:platform-events-ui
Jun 11, 2026
Merged

[Dashboard] Implement Frontend UI for Platform Events#63332
edoakes merged 1 commit into
ray-project:masterfrom
richabanker:platform-events-ui

Conversation

@richabanker

@richabanker richabanker commented May 14, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds the frontend components, types, and navigation topology to render cluster-wide platform events in the Ray Dashboard

Tested on a GKE cluster.

  1. See the following for RayJob events
image
  1. See the following for RayCluster events
image
@richabanker richabanker requested a review from a team as a code owner May 14, 2026 00:40
@richabanker richabanker force-pushed the platform-events-ui branch from 4d785e1 to 3667728 Compare May 14, 2026 00:40
@richabanker richabanker changed the title [Dashboard] Implement Frontend UI for Platform Events May 14, 2026
@richabanker richabanker force-pushed the platform-events-ui branch from 6df9da6 to 4f448ea Compare May 14, 2026 00:41

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new "Platform Events" page to the Ray dashboard, allowing users to view cluster-level events. The changes include the addition of a new API service, TypeScript type definitions, routing configurations, and UI components such as a dedicated events table and severity-based status chips. Feedback focuses on optimizing the use of React state for static values and improving the table's layout and data handling for long event messages.

Comment thread python/ray/dashboard/client/src/pages/events/PlatformEventsPage.tsx Outdated
Comment thread python/ray/dashboard/client/src/pages/node/PlatformEvents.tsx Outdated
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEventsPage.tsx Outdated
@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling community-contribution Contributed by the community labels May 14, 2026
@richabanker richabanker changed the title [WIP][Dashboard] Implement Frontend UI for Platform Events May 22, 2026
@richabanker richabanker force-pushed the platform-events-ui branch 3 times, most recently from 5eaee7c to 900edbe Compare May 22, 2026 02:40
@richabanker

Copy link
Copy Markdown
Contributor Author
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEvents.tsx
@richabanker richabanker force-pushed the platform-events-ui branch from 900edbe to 16fa8f3 Compare June 4, 2026 18:51
@richabanker

Copy link
Copy Markdown
Contributor Author
@richabanker richabanker force-pushed the platform-events-ui branch from 16fa8f3 to c84153d Compare June 4, 2026 19:56
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEvents.tsx Outdated
@sampan-s-nayak sampan-s-nayak self-assigned this Jun 4, 2026
Comment thread python/ray/dashboard/client/src/App.tsx
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEvents.tsx Outdated
@richabanker richabanker force-pushed the platform-events-ui branch from c84153d to 287bd29 Compare June 6, 2026 03:19
Comment thread python/ray/dashboard/client/src/pages/layout/MainNavLayout.tsx
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEvents.tsx
@richabanker richabanker force-pushed the platform-events-ui branch 2 times, most recently from 758304e to eb54757 Compare June 6, 2026 03:22
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEventsPage.tsx Outdated
@richabanker richabanker force-pushed the platform-events-ui branch 2 times, most recently from 02c842d to a35d6b9 Compare June 8, 2026 18:46
return true;
} catch (e: any) {
return e?.response?.status !== 404;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HEAD errors mark feature enabled

Medium Severity

getPlatformEventsEnabled treats any failed head except HTTP 404 as enabled. Network failures and 5xx responses set platformEventsEnabled to true, so the Platform Events nav item can appear when the endpoint is unreachable or failing.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a35d6b9. Configure here.

@richabanker richabanker force-pushed the platform-events-ui branch from e437252 to 61c9707 Compare June 8, 2026 19:08
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEvents.tsx
@richabanker richabanker force-pushed the platform-events-ui branch from 61c9707 to d047510 Compare June 8, 2026 20:00
export const getPlatformEventsEnabled = async (): Promise<boolean> => {
try {
await head("api/v0/platform_events");
return true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HEAD runs full events handler

Medium Severity

Each dashboard load calls head on api/v0/platform_events to gate the nav. On aiohttp, HEAD on a GET route still runs the same handler, which sorts up to 1000 events and builds the full JSON body. That work runs on every visit even when the user never opens Platform Events.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d047510. Configure here.

@richabanker richabanker force-pushed the platform-events-ui branch from d047510 to 4c76502 Compare June 8, 2026 20:11
@edoakes

edoakes commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator
Comment thread python/ray/dashboard/client/src/App.tsx Outdated
Comment thread python/ray/dashboard/client/src/App.tsx Outdated
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEventsPage.tsx Outdated
@richabanker richabanker force-pushed the platform-events-ui branch from 73fada0 to c615ac7 Compare June 9, 2026 20:03
Comment thread python/ray/dashboard/client/src/pages/events/PlatformEventsPage.tsx Outdated
@richabanker richabanker force-pushed the platform-events-ui branch 2 times, most recently from e76339e to d302a20 Compare June 9, 2026 20:13

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 3 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

Reviewed by Cursor Bugbot for commit d302a20. Configure here.

Comment thread python/ray/dashboard/client/src/pages/events/PlatformEventsPage.tsx
@richabanker richabanker force-pushed the platform-events-ui branch from d302a20 to d549a65 Compare June 9, 2026 20:23

@sampan-s-nayak sampan-s-nayak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks LGTM, there seem to be some lint issues though could you please fix them

@richabanker richabanker force-pushed the platform-events-ui branch 3 times, most recently from 7941fac to b14512b Compare June 10, 2026 20:19
Signed-off-by: Richa Banker <richabanker@google.com>
@richabanker

Copy link
Copy Markdown
Contributor Author

there seem to be some lint issues though could you please fix them

Looks like they are fixed now

@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jun 11, 2026
@edoakes edoakes enabled auto-merge (squash) June 11, 2026 01:57
@edoakes edoakes merged commit 68eef7d into ray-project:master Jun 11, 2026
9 checks passed
@richabanker richabanker deleted the platform-events-ui branch June 11, 2026 16:27
edoakes added a commit that referenced this pull request Jun 11, 2026
Cherry-pick: #63332

Signed-off-by: Richa Banker <richabanker@google.com>
Co-authored-by: Richa Banker <richabanker@google.com>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
)

## Description
This PR adds the frontend components, types, and navigation topology to
render cluster-wide platform events in the Ray Dashboard

Tested on a GKE cluster. 
1. See the following for RayJob events
<img width="3340" height="1996" alt="image"
src="https://github.com/user-attachments/assets/5b2a0308-456b-46c8-bbf8-2333c4bdd509"
/>


2. See the following for RayCluster events
<img width="3420" height="1694" alt="image"
src="https://github.com/user-attachments/assets/f8b04b1f-fee0-4d3c-85af-943431aa25f2"
/>

Signed-off-by: Richa Banker <richabanker@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling

4 participants