rocketmq-rust icon indicating copy to clipboard operation
rocketmq-rust copied to clipboard

[Refactor♻️] Rename ConsumerBackend to ConsumerAndProducerAdmin in the native dashboard

Open mxsm opened this issue 2 weeks ago • 1 comments

Target Code

Start in rocketmq-dashboard/rocketmq-dashboard-gpui/. The affected files are listed below.

Problems

The native dashboard routes producer_inventory and producer_connections through ConsumerBackend. The same trait also reads consumer group state and applies consumer group changes. A contributor looking for the producer admin interface can easily miss it.

Proposed Changes

  • [ ] Rename the crate-private trait to ConsumerAndProducerAdmin wherever it is referenced. Keep this as one trait.
  • [ ] Keep the method names, concrete backend names, and AppServices entry points. Consumer group mutations and both producer queries should still call the existing implementations.

Run from rocketmq-dashboard/rocketmq-dashboard-gpui.

cargo fmt --all -- --check
cargo test --bin rocketmq-dashboard-gpui consumer_mutations_reload_complete_group_catalog_without_hiding_partial_diagnostics
cargo test --bin rocketmq-dashboard-gpui producer_manual_fallback_validates_the_pair_and_drops_a_late_previous_query

mxsm avatar Nov 14 '26 15:11 mxsm

I'd like to take this issue. I'll rename the crate-private trait to ConsumerAndProducerAdmin, update its references, and run the two focused tests listed above while preserving the existing concrete backend names and behavior.

lipeh1 avatar Nov 16 '26 03:11 lipeh1