Frun1na opened a new pull request, #5299:
URL: https://github.com/apache/rocketmq-dashboard/pull/5299
### Which Issue(s) This PR Fixes
- Fixes #5298
### Brief Description
The broker config form edits whole MiB (`maxMessageSizeMB: Math.round(bytes
/ 1048576)`) and the submit multiplies back. For a persisted value that is not
MiB-aligned, opening the modal and saving without touching anything rewrote the
broker's `maxMessageSize` to the rounded value. The original bytes are now
captured on open and resent while the displayed field still equals their
rounded value; only an actual edit multiplies.
### How Did You Test This Change?
```
cd web && npx vitest run src/pages/cluster/__tests__/ClusterPage.test.tsx
Test Files 1 passed (1)
Tests 29 passed (29)
```
---
Re-submission of #4938: the original PR was closed by the stale bot after 7
days without review activity, and GitHub now rejects reopening pull requests in
this repository ("state cannot be changed"), so the same change is re-submitted
rebased onto the current `rocketmq-studio` tip (`a460673f`). The original
review thread stays available at #4938.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]