rocketmq-rust
rocketmq-rust copied to clipboard
[Refactor♻️] Rename AclAccess to AclUserAdmin in the Tauri dashboard
Target Code
Start in rocketmq-dashboard/rocketmq-dashboard-tauri/src-tauri/. The affected files are listed below.
- Rename the trait, its
AdminSessionimplementation, and the bounds used by scope validation and user operations.src/acl/service.rs - Update the implementation for
Fakeused 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
AclUserAdminand 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
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.