You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/07/31 12:54:02 UTC
[PR] fix: show UNSPECIFIED topics on the topic list page [rocketmq-dashboard]
yyqdbngt opened a new pull request, #709:
URL: https://github.com/apache/rocketmq-dashboard/pull/709
Fixes #669
### Problem
On 4.x clusters (or 5.x clusters where topics were created without a message type attribute), every topic reports `messageType = UNSPECIFIED`. The topic page's default filter only selects `NORMAL`, and the `UNSPECIFIED` fallback branch was guarded by `rmqVersion` which is hardcoded to `true` and never updated, so all these topics were filtered out and the topic table appeared empty even though the backend returned full data.
### Fix
In `frontend-new/src/pages/Topic/topic.jsx`, treat `UNSPECIFIED` as a normal topic in `filterByType`:
```diff
- if (filterNormal && type.includes("NORMAL")) return true;
- if (!rmqVersion && filterNormal && type.includes("UNSPECIFIED")) return true;
+ if (filterNormal && (type.includes("NORMAL") || type.includes("UNSPECIFIED"))) return true;
```
### Verification
`npm run build` passes on the fixed source (react-scripts build, which also runs ESLint), and the built bundle contains the updated filter logic.
### Diff
1 file changed, +3 / -2.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ISSUE #669] Show UNSPECIFIED topics in topic list [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #709: [ISSUE #669] Show UNSPECIFIED topics in topic list
URL: https://github.com/apache/rocketmq-dashboard/pull/709
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ISSUE #669] Show UNSPECIFIED topics in topic list [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #709:
URL: https://github.com/apache/rocketmq-dashboard/pull/709#issuecomment-5252651925
Closing: based on the legacy src/ layout, and the functionality is covered by the rewritten studio implementation. frontend-new was removed from this branch; the new web/topic.tsx filters by DB topic type and parseTopicType already falls back to NORMAL.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org