Skip to content

[Fix #1773] Optionally publish on legacy CE type - #1814

Merged
fjtirado merged 2 commits into
open-workflow-specification:mainfrom
fjtirado:Fix_#1773
Oct 29, 2026
Merged

fjtirado merged 2 commits into
open-workflow-specification:mainfrom
fjtirado:Fix_#1773

Conversation

@fjtirado

Copy link
Copy Markdown
Collaborator

Fix #1773

…E type

Signed-off-by: Francisco Javier Tirado Sarti <ftirados@ibm.com>
Copilot AI balanced review requested due to automatic review settings October 29, 2026 16:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@fjtirado
fjtirado requested review from mathecruz and ricardozanini and a balanced review from Copilot October 29, 2026 16:15

@mathecruz mathecruz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Method-call initializers make all fourteen public lifecycle type fields non-constant, breaking compilation for consumers that use them as switch labels or annotation values.

1 open issue

Review effort: Balanced

Signed-off-by: Francisco Javier Tirado Sarti <ftirados@ibm.com>
Copilot AI balanced review requested due to automatic review settings October 29, 2026 18:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The event-type helper omits V7 types, preventing listeners registered through it from receiving legacy events, and the V7-only and dual-publication paths lack regression coverage.

1 open issue
2 previously missed issues

In code that hasn't changed since last review

Medium severity Lifecycle event helper omits legacy V7 event types

impl/​core/​src/​main/​java/​org/​openworkflow/​sdk/​impl/​lifecycle/​ce/​AbstractLifeCyclePublisher.java:52

EventType.toString() always uses V8, so this helper omits every legacy type even when V7 publication is enabled. Consumers registering listeners through this list, as LifeCycleEventsTest.init() does, will never receive the legacy events; with V7-only configuration they receive no lifecycle events at all. Include both supported prefixes here, or add an overload that enumerates the application's configured prefixes.

Low severity Add lifecycle test coverage for V7 and dual publication

impl/​core/​src/​main/​java/​org/​openworkflow/​sdk/​impl/​lifecycle/​ce/​AbstractLifeCyclePublisher.java:292

The existing lifecycle tests exercise only the default V8 configuration, and no test calls withLifeCycleEventTypes. The new V7 and dual-publication paths therefore have no regression coverage. Extend LifeCycleEventsTest to cover V7-only and V7+V8 configurations, asserting the exact emitted types, event counts, and matching payloads, while retaining the default V8 assertion.

Review effort: Balanced

@fjtirado
fjtirado merged commit b59fd44 into open-workflow-specification:main Oct 29, 2026
3 checks passed
@fjtirado
fjtirado deleted the Fix_#1773 branch October 29, 2026 19:13
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.

Allow publishing of life cycle events with the legacy prefix

3 participants