Skip to content

Conversation

@alexiswl
Copy link
Member

Need to use legacy syntax for WFM to read rules, small partial rollback for legacy services.

Need to use legacy syntax for WFM to read rules
@alexiswl alexiswl requested review from Copilot and victorskl October 30, 2025 22:00
@alexiswl alexiswl self-assigned this Oct 30, 2025
@alexiswl alexiswl changed the title Reimplement WRSCs as legacy Reimplement WRSCs as legacy object syntax Oct 30, 2025
Copy link
Contributor

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 refactors the WorkflowRunStateChange event structure by flattening nested workflow properties and standardizing field naming. The changes convert from a nested structure with workflow.name, workflow.version, and libraries to flat fields workflowName, workflowVersion, and linkedLibraries to align with schema definitions.

Key changes:

  • Flattened workflow properties from nested to top-level fields
  • Renamed libraries to linkedLibraries for consistency
  • Updated event emission in both state change and ready event handlers

Reviewed Changes

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

File Description
lib/workload/components/sfn-icav2-state-change-event-handler/step_functions_templates/icav2_get_workflow_status_and_raise_internal_event.asl.json Refactored event detail structure to use flat workflowName, workflowVersion, and linkedLibraries fields
lib/workload/components/sfn-generate-workflowrunstatechange-ready-event/step_functions_templates/workflowrunstatechange_generate_ready_step_function_template.asl.json Updated ready event structure to match the flattened schema

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@victorskl victorskl left a comment

Choose a reason for hiding this comment

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

LGTM

@victorskl victorskl added the fix label Oct 30, 2025
@alexiswl alexiswl added this pull request to the merge queue Oct 30, 2025
Merged via the queue into main with commit f6eb7ca Oct 30, 2025
12 checks passed
@alexiswl alexiswl deleted the bugfix/re-implement-wrsc-legacy-as-is branch October 30, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants