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

Add previousStatus filed to WorkflowModel #2816

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

jxu-nflx
Copy link
Contributor

@jxu-nflx jxu-nflx commented Mar 4, 2022

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):

Changes in this PR

Add previousStatus to WorkflowModel so it can be used to capture status change

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

Alternatives considered

Describe alternative implementation you have considered

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2022

Unit Test Results

   165 files  ±0     165 suites  ±0   9m 8s ⏱️ +17s
1 149 tests ±0  1 149 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit f6feeb61. ± Comparison against base commit 609c942.

♻️ This comment has been updated with latest results.

public Status getStatus() {
return status;
}

public void setStatus(Status status) {
setPreviousStatus(this.status);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we worry about previousStatus getting overridden if setStatus is called twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Added a check for that

@jxu-nflx jxu-nflx force-pushed the feature/workflow_previousStatus branch from f6feeb6 to 6c1eeaa Compare March 8, 2022 01:40
@jxu-nflx jxu-nflx merged commit c70a037 into main Mar 9, 2022
@jxu-nflx jxu-nflx deleted the feature/workflow_previousStatus branch March 9, 2022 00:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants