Skip to content

Conversation

@alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Nov 11, 2025

This PR implements enhanced event routing capabilities for the default routings.

Notable hanges

  • Added new combined routing strategy ByProducerIdOrFirstField for more flexible event routing.
  • Re-enabled previously disabled validation tests now that TemplateString placeholders are supported.

@alexander-yevsyukov alexander-yevsyukov changed the title misc-improvements Introduce ByProducerIdOrFirstField as the default event routing Nov 11, 2025
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 implements miscellaneous improvements including test re-enablement after validation fixes, enhanced event routing capabilities, and documentation updates. The version is bumped from 348 to 349.

Key changes:

  • Re-enabled previously disabled validation tests now that TemplateString placeholders are supported
  • Added new combined routing strategy ByProducerIdOrFirstField for more flexible event routing
  • Enhanced JavaDoc documentation across several classes

Reviewed Changes

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

Show a summary per file
File Description
version.gradle.kts Version bump to 2.0.0-SNAPSHOT.349
pom.xml Version bump to 2.0.0-SNAPSHOT.349
dependencies.md Updated dependency report with new version and timestamp
ConstraintViolatedTest.java Re-enabled test and updated assertions to verify error message content
StandTest.java Re-enabled three nested test classes for query/topic/subscription validation
EventValidatorTest.java Re-enabled event validation test and updated copyright year
TransactionTest.java Re-enabled entity state validation test
MessageRouting.kt Updated comment from "passed" to "given"
EventRouting.kt Added new factory method for combined routing strategy
EventRoute.kt Added new routing method and improved documentation
ByProducerIdOrFirstField.kt New routing strategy class combining producer ID and first field routing
ByFirstField.kt Reformatted JavaDoc formatting
EventDispatchingRepository.java Changed routing to lazy initialization using Supplier
AggregateRepository.java Changed routing to lazy initialization using Supplier
TestActorRequestFactory.java Added comprehensive JavaDoc for all constructors and methods

@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review November 11, 2025 19:32
Copilot finished reviewing on behalf of alexander-yevsyukov November 11, 2025 19:37
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

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

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov please see my comment.

Copilot finished reviewing on behalf of alexander-yevsyukov November 11, 2025 19:53
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

Copilot reviewed 15 out of 15 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

server/src/main/kotlin/io/spine/server/route/EventRouting.kt:1

  • The @CanIgnoreReturnValue annotation was removed from both withDefault() and withDefaultByProducerId() methods. This is a breaking change for consumers who may be calling these methods without using the return value. While withDefault() is marked @VisibleForTesting, withDefaultByProducerId() is public API, and removing this annotation could cause ErrorProne or similar static analysis tools to flag existing usages.
/*

@alexander-yevsyukov alexander-yevsyukov merged commit 06ce745 into master Nov 11, 2025
11 of 12 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the misc-improvements branch November 11, 2025 20:05
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.

3 participants