Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
dgraph-io

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ratel frontend breaks on cluster page after removal of Enterprise license in v25.0.0#9542

eileenaaa started this conversation inGeneral
Discussion options

Hi Dgraph team,

After upgrading tov25.0.0, I noticed that theEnterprise license has been removed. The related PR is here:#9367, and the changes remove theLicense field from thegetState response:
state.go diff.


Issue

When a user in the guardians group clicks theCluster menu in Ratel, the page should display information about Zeros and Groups.
However, the frontend still attempts to accessclusterState.license, which no longer exists in the API response.

This leads to a console error:

ClusterPage.js:125  Uncaught TypeError: Cannot read properties of undefined (reading 'expiryTs')    at ClusterPage.js:125:46    at of (ClusterPage.js:266:10)

As a result, theCluster page fails to render.


Fix

I updated the frontend so that it:

  • Uses optional chaining and nullish coalescing to safely read license-related data.
  • Renders license/certificate information only when thelicense field exists.

This prevents runtime errors and allows the Cluster page to render correctly even when no license is present.

Code change:
eileenaaa/ratel@4fa35bc

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

@eileenaaa Thanks. Could you open a PR?

You must be logged in to vote
1 reply
@eileenaaa
Comment options

Sure! Here is the PR I opened for this fix:dgraph-io/ratel#393

Comment options

We released Ratel v25.0.4 today with this fix.docker pull dgraph/ratel:latest

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@eileenaaa@matthewmcneely

[8]ページ先頭

©2009-2025 Movatter.jp