Skip to content

Conversation

krystian-panek-vmltech
Copy link
Collaborator

AEMaaCS live output fix ; due to cluster issue

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 a fix for AEMaaCS live output functionality by replacing file-based output storage with repository-based storage. The changes address cluster-related issues where file outputs weren't consistently accessible across cluster nodes.

  • Replaces file-based code output storage with repository-based storage using JCR
  • Adds quiet logging functionality to repository operations
  • Refactors user impersonation logic to work better with AEMaaCS cluster environments

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ui.frontend/src/utils/spectrum.ts Extracts magic number 0.8 into a named constant for better maintainability
core/src/main/java/dev/vml/es/acm/core/util/ResolverUtils.java Improves user impersonation handling and adds Optional import for better null handling
core/src/main/java/dev/vml/es/acm/core/repo/RepoResource.java Removes direct logger usage in favor of repo-based logging for consistency
core/src/main/java/dev/vml/es/acm/core/repo/Repo.java Adds quiet logging functionality and NOPLogger support for silent operations
core/src/main/java/dev/vml/es/acm/core/code/QueuedExecution.java Updates to use new CodeOutput interface instead of file-based output
core/src/main/java/dev/vml/es/acm/core/code/ExecutionQueue.java Integrates new repository-based output system with execution queue
core/src/main/java/dev/vml/es/acm/core/code/ExecutionContext.java Updates execution context to use repository-based output for run mode
core/src/main/java/dev/vml/es/acm/core/code/CodeOutputRepo.java New implementation of repository-based code output storage with async saving

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


public static String serviceOrImpersonatedUserId(ResourceResolver resourceResolver) {
return resourceResolver.getUserID(); // assumes preference: impersonated ID, service user ID
public static String serviceOrImpersonatedUserId(ResourceResolver resolver) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wrong "user" may start appearing in history entries; but to be confirmed

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@krystian-panek-vmltech krystian-panek-vmltech merged commit 4d416a7 into main Sep 22, 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