liuwei1989 opened a new issue, #7399:
URL: https://github.com/apache/rocketmq-dashboard/issues/7399

   ## Background
   
   Brokers running with `enableMixedMessageType=true` report the message type 
`MIXED` (a topic that can carry normal, FIFO, delay and transaction messages at 
the same time). The topic console currently has no notion of that type:
   
   - the topic list falls back to `NORMAL` for every type it does not know
   - the message type filter cannot select it
   - the Add/Update Topic dialog only offers `TRANSACTION`, `FIFO`, `DELAY` and 
`NORMAL`
   
   Operators therefore cannot see which topics are actually mixed, and cannot 
create one from the console.
   
   ## Proposal
   
   Gate the type behind an opt-in switch (default `false`), because clusters 
without `enableMixedMessageType` never report it:
   
   - backend: expose the switch through a features endpoint (e.g. `GET 
/topic/features.query`) and keep resolving `MIXED` to `NORMAL` while it is off
   - frontend: probe the switch once on mount and only then render the `MIXED` 
label, list filter and create/update option
   - filtering: keep the displayed type and the filter consistent, e.g. 
filtering by `NORMAL` must also match rows stored as `MIXED` while the switch 
is off
   
   ## Scope
   
   - 2.1.0 dashboard (`frontend-new` + Spring Boot backend): 
`rocketmq.config.mixedTypeEnabled` / `ROCKETMQ_CONFIG_MIXED_TYPE_ENABLED`
   - Studio (`web` + `server`): `studio.topic.mixed-type-enabled` / 
`STUDIO_TOPIC_MIXED_TYPE_ENABLED`
   
   Both are implemented with unit tests (`TopicControllerTest`, 
`TopicServiceImplTest`, `RocketMQMetadataProviderTest`, `topicType.test.js`, 
`TopicPage.test.tsx`).
   
   ## Alternatives considered
   
   - Always surfacing `MIXED`: breaks the historical behaviour of deployments 
that rely on the `NORMAL` fallback.
   - No config, infer from the broker: the dashboard cannot reliably detect the 
broker switch before listing topics.
   


-- 
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]

Reply via email to