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

[Refactor♻️] Rename AclAccess to AclUserAdmin in the Tauri dashboard

Open mxsm opened this issue 2 weeks ago • 1 comments

Target Code

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

  • Rename the trait, its AdminSession implementation, and the bounds used by scope validation and user operations. src/acl/service.rs
  • Update the implementation for Fake used by the ACL service tests. src/acl/tests.rs

Problems

AclAccess provides user listing, creation, update, and deletion. The service also uses its Broker listing to validate the requested scope before a write. The current name makes this look like a general ACL policy interface.

Proposed Changes

  • [ ] Rename the module-private trait to AclUserAdmin and use that name in all its bounds and implementations.
  • [ ] Preserve the existing call order and results. A stale Broker scope rejects the write, and a failed read after a successful write still reports the write accurately.

Run from rocketmq-dashboard/rocketmq-dashboard-tauri/src-tauri.

cargo fmt --all -- --check
cargo test --lib acl_success_rejection_and_read_failure_preserve_write_truth
cargo test --lib blank_password_and_stale_scope_never_write

mxsm avatar Nov 14 '26 15:11 mxsm

I'd like to take this issue. I'll rename the private trait to AclUserAdmin, update its bounds and implementations, and run the two focused ACL tests listed above while preserving scope validation, call order, and write-result reporting.

lipeh1 avatar Nov 16 '26 05:11 lipeh1