Skip to content

Conversation

@elpete
Copy link
Collaborator

@elpete elpete commented Oct 23, 2025

No description provided.

@elpete elpete requested a review from Copilot October 23, 2025 21:02
Copy link

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 updates the BaseEntity component to use the announce method as the official interception point mechanism when available, falling back to processState for backward compatibility. The changes also expand CI test coverage across multiple ColdBox versions.

  • Adds detection and usage of the announce method for interceptor service calls
  • Fixes method reference to use this.tableName() instead of bare tableName()
  • Expands CI matrix to test against both ColdBox 7 and 8 versions

Reviewed Changes

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

File Description
models/BaseEntity.cfc Implements announce method detection and usage for interceptor service, fixes tableName() method reference
.github/workflows/release.yml Adds ColdBox version matrix to test against both v7 and v8
.github/workflows/pr.yml Adds ColdBox version matrix to test against both v7 and v8
.github/workflows/cron.yml Expands test matrix with additional ColdBox version combinations including bleeding edge builds

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

Comment on lines +3305 to +3308
param variables.useAnnounceMethodForInterceptorService = structKeyExists(
variables._interceptorService,
"announce"
);
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

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

The param statement is executed on every interception call, repeatedly checking for the existence of the announce method. This check should be performed once during initialization (e.g., in onDIComplete()) and cached for the lifetime of the entity to avoid unnecessary overhead on each interception.

Copilot uses AI. Check for mistakes.
@elpete elpete merged commit f9ee762 into main Oct 23, 2025
27 checks passed
@elpete elpete deleted the add_coldbox_8_support branch October 23, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants