fix(web): show dashboard loading failures - #2136
Closed
Loyal-Young wants to merge 9 commits into
Closed
Conversation
…kill (apache#444) - Add COPY style ./style to server/Dockerfile so Maven checkstyle can find style/rmq_checkstyle.xml during docker compose build - Rewrite pr-review SKILL.md with an 8-stage pipeline checklist, Dockerfile pre-flight fix step, and [Studio] title format spec
Loyal-Young
marked this pull request as ready for review
August 13, 2026 13:57
RockteMQ-AI
reviewed
Aug 13, 2026
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Summary
The PR mixes unrelated changes (a Claude skill file, CI setup, audit service hardening, and frontend loading fixes) under a narrow title. The audit service overflow/validation fixes and Dockerfile style-copy fix are solid, but CI should run tests (not just build), the scope is too broad for one PR, and the diff shows corruption of @v4/@test annotations that must be verified in the actual committed files.
Findings
- [Warning] .claude/skills/pr-review/SKILL.md:1 — This 265-line Claude skill file for PR review automation is entirely unrelated to the PR's stated purpose ('show dashboard loading failures'). It should be removed from this PR and submitted separately if needed. Mixing unrelated tooling into a feature/fix PR makes review harder and risks introducing unrelated changes.
- [Critical] .github/workflows/ci.yml:20 — The
uses:lines appear corrupted in the diff —actions/checkout @apache_rocketmq-clients/...should beactions/checkout@v4(same for setup-java and setup-node). If this corruption is in the actual file, CI will fail immediately. Please verify the committed file has correct@v4version pins with no space before@. - [Warning] .github/workflows/ci.yml:30 — CI builds with
-DskipTests(backend) and onlynpm run build(frontend) but never runs tests. Since this PR adds significant test infrastructure (vitest, testing-library, axios-mock-adapter, AuditServiceTest cases), CI should also runmvn testandnpm testto actually validate the tests being added. - [Critical] server/src/test/java/com/rocketmq/studio/ops/audit/AuditServiceTest.java:110 — The
@Testannotations on new test methods appear corrupted in the diff (replaced with@apache_rocketmq/auth/src/test/java/.../AuthenticationEvaluatorTest.java). If the actual file is missing@Testannotations, JUnit won't execute these tests. Verify each test method has@org.junit.jupiter.api.Test. - [Info] server/src/main/java/com/rocketmq/studio/ops/audit/AuditService.java:52 — Good overflow fix: casting to
longbefore multiplication prevents integer overflow on large page/pageSize values. Input validation for page<=0 and pageSize<=0 is also correct. Consider adding an upper bound on pageSize (e.g., max 500) to prevent memory exhaustion since findAll() loads all matching records into memory for in-memory pagination. - [Info] server/src/main/java/com/rocketmq/studio/ops/audit/AuditService.java:62 — cleanupLogs validation (beforeDays <= 0) is good — prevents negative values that could delete all records. However, no upper bound is enforced; a very large beforeDays would delete nothing silently, which is acceptable but worth documenting.
- [Info] web/package.json:19 — New devDependencies (vitest, @testing-library/react, @testing-library/jest-dom, axios-mock-adapter, jsdom) are appropriate for frontend testing. Note the leading space in
@eslint/js(line 20) is pre-existing but could cause issues with some npm tooling.
🤖 Automated review by RockteMQ-AI
Author
|
Closing this draft because it was created from an outdated local base and unintentionally includes unrelated historical commits. I will reopen the focused change from the current rocketmq-studio base. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
A rejected dashboard request was only logged to the console and left users with no visible content or recovery action.
Validation
node node_modules/vitest/vitest.mjs run src/api/metrics.test.ts --pool=threads --maxWorkers=1 --reporter=dot(2 passed)node node_modules/typescript/bin/tsc --noEmit --pretty false -p tsconfig.app.json