Skip to content

Conversation

krystian-panek-vmltech
Copy link
Collaborator

No description provided.

@krystian-panek-vmltech krystian-panek-vmltech marked this pull request as ready for review August 19, 2025 12:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements an event-driven architecture for distributed actions in the ACM system, replacing direct action execution with event-based communication across instances.

  • Introduces a new event system with EventDispatcher, EventManager, and EventListener interfaces
  • Refactors execution queue reset and adds execution history clearing functionality to use events
  • Adds a new "Execution History" tab with clear functionality to the maintenance interface

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ui.frontend/src/pages/MaintenancePage.tsx Renames Script Executor to Code Executor and adds Execution History tab
ui.frontend/src/components/ExecutionsResetButton.tsx Updates reset action to use event-based API endpoint
ui.frontend/src/components/ExecutionHistoryClearButton.tsx New component for clearing execution history via events
ui.frontend/src/components/ExecutionHistory.tsx New tab component providing execution history management interface
ui.frontend/src/components/CodeExecutor.tsx Renames component from ScriptExecutor to CodeExecutor
ui.apps/src/main/content/jcr_root/apps/acm/api/event/.content.xml JCR configuration for new event API endpoint
core/src/main/java/dev/vml/es/acm/core/servlet/QueueCodeServlet.java Removes direct execution queue reset logic in favor of event-based approach
core/src/main/java/dev/vml/es/acm/core/servlet/EventServlet.java New servlet handling event dispatch requests
core/src/main/java/dev/vml/es/acm/core/event/* Complete event system implementation with managers, listeners, and dispatchers
core/src/main/java/dev/vml/es/acm/core/code/ExecutionHistory.java Adds clear() method for removing execution history

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@krystian-panek-vmltech krystian-panek-vmltech merged commit 8ea5fe6 into main Aug 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant