Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Fix bug in context arguments merge #448

Merged

Conversation

masayag
Copy link
Collaborator

@masayag masayag commented Jun 19, 2023

What this PR does / why we need it:
The PR fixes a bug that caused only the first argument to be stored in the target work context.
In addition, the precedence of the merged arguments is defined as:

  • Target workflow arguments
  • Source workflow arguments from their context by key WORKFLOW_EXECUTION_ARGUMENTS
  • Source workflow arguments

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story (FLPATH-xxxx):
Fixes #FLPATH-458

Change type

  • New feature
  • Bug fix
  • Unit tests
  • Integration tests
  • CI
  • Documentation
  • Auto-generated SDK code

Impacted services

  • Workflow Service
  • Notification Service

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

@openshift-ci openshift-ci bot requested review from rgolangh and RichardW98 June 19, 2023 13:50
@masayag masayag requested a review from rgolangh June 19, 2023 13:50
@masayag masayag force-pushed the retain_origin_param branch 2 times, most recently from fd8d89a to 69d4ce8 Compare June 19, 2023 14:00
The PR fixes a bug that caused only the first argument to be stored in the target work context.
In addition, the precedence of the merged arguments is defined as:
* Target workflow arguments
* Source workflow arguments from their context by key WORKFLOW_EXECUTION_ARGUMENTS
* Source workflow arguments

Signed-off-by: Moti Asayag <masayag@redhat.com>
@masayag masayag force-pushed the retain_origin_param branch from 69d4ce8 to 7c33656 Compare June 19, 2023 14:03
@openshift-ci
Copy link

openshift-ci bot commented Jun 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eloycoto, RichardW98

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [RichardW98,eloycoto]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit b0ad1f3 into rhdhorchestrator:main Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants