Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Refactor bulk updateWorkflowDefs API. Please note that previously the API fails on the first error, but now it continues to process every item in the list and return a list of success and failures #3242

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

jxu-nflx
Copy link
Contributor

@jxu-nflx jxu-nflx commented Sep 16, 2022

…e results

Pull Request type

  • Bugfix
  • Feature
  • [] Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Code refactor of the bulk updateWorkflowDefs API

Describe the new behavior from this PR, and why it's needed
Issue #

Alternatives considered

Describe alternative implementation you have considered

Sorry, something went wrong.

@@ -119,11 +122,22 @@ public void updateWorkflowDef(WorkflowDef workflowDef) {
/**
* @param workflowDefList Workflow definitions to be updated.
*/
public void updateWorkflowDef(List<WorkflowDef> workflowDefList) {
public BulkResponse updateWorkflowDef(List<WorkflowDef> workflowDefList) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesnt this change the behavior of the API? Previously, the API fails on the first error, but now it continues to process every item in the list. I suggest, we call this out in the release notes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it does change the API behavior. I'll make sure we have that documented in the release note

@apanicker-nflx apanicker-nflx added the type: important Important changes label Sep 19, 2022
@jxu-nflx jxu-nflx merged commit 8105af3 into main Sep 26, 2022
@jxu-nflx jxu-nflx deleted the chore/refactor branch September 26, 2022 23:55
@jxu-nflx jxu-nflx changed the title Refactor bulk updateWorkflowDefs API to return list of success/failur… Refactor bulk updateWorkflowDefs API. Please note that previously the API fails on the first error, but now it continues to process every item in the list and return a list of success and failures Oct 3, 2022
pmchung pushed a commit to routific/conductor that referenced this pull request Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: important Important changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants