tju-yxq opened a new pull request, #3296:
URL: https://github.com/apache/rocketmq-dashboard/pull/3296

   ## What changed
   
   The dashboard stores server-side message and trace query history, but 
operators previously had no way to remove a record before the scheduled 
retention job ran. This change adds scoped deletion while preserving the 
existing retention cleanup.
   
   - add authenticated, operator-scoped deletion for one message-query or 
trace-query record;
   - add a clear-history endpoint for the current operator, optionally limited 
to the selected cluster;
   - return deletion counts for the message and trace streams;
   - add delete actions to both history tables;
   - add a confirmation dialog for clearing the selected scope;
   - reload rows and summary after deletion, including page correction when the 
last row is removed;
   - keep deletion failures visible without losing the current table state.
   
   Every delete predicate includes `queried_by`; a user cannot delete another 
operator's history, and missing/foreign records return the same not-found 
response.
   
   Closes #3295
   
   ## Validation
   
   - `mvn -q '-Dtest=QueryHistoryControllerTest,QueryHistoryServiceTest' test` 
— passed (18 tests)
   - `npm test -- MessageQueryHistoryDrawer.test.tsx --run` — 3 tests passed
   - `npm run lint -- --quiet` — 0 errors; 10 existing warnings remain 
elsewhere in the tree
   - `npm run build` — passed
   - `git diff --check` — passed
   
   The repository's GitHub Actions status is not being described as green here; 
the checks above are local validation on this branch.


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