Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed static fields initialization in WorkflowStepFactory #532

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

owaiskazi19
Copy link
Member

@owaiskazi19 owaiskazi19 commented Feb 21, 2024

Description

Fixed static fields initialization. Pulling the Supplier<WorkflowStep> inside the enum over complicates the initialization of the static fields. Reverting the stepMap initialization inside the WorkflowStepFactory constructor.
Also, removed the unused clusterService and client passed.

Issues Resolved

Fixes #531

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions github-actions bot added the backport 2.x backport PRs to 2.x branch label Feb 21, 2024
@owaiskazi19 owaiskazi19 changed the title Fixed static fields initialization Fixed static fields initialization in WorkflowStepFactory Feb 21, 2024
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (be0df19) 72.00% compared to head (fc36eb8) 72.00%.

Files Patch % Lines
...ch/flowframework/workflow/WorkflowStepFactory.java 93.54% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main     #532   +/-   ##
=========================================
  Coverage     72.00%   72.00%           
- Complexity      609      612    +3     
=========================================
  Files            78       78           
  Lines          3222     3201   -21     
  Branches        247      246    -1     
=========================================
- Hits           2320     2305   -15     
+ Misses          789      783    -6     
  Partials        113      113           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

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

Code changes LGTM. Change log may need tweaking.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@amitgalitz amitgalitz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this

@owaiskazi19 owaiskazi19 merged commit 24bf51a into opensearch-project:main Feb 21, 2024
30 of 31 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2024
Fixed static fields initialization

Signed-off-by: Owais Kazi <[email protected]>
(cherry picked from commit 24bf51a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshpalis pushed a commit that referenced this pull request Feb 21, 2024
…ory (#533)

Fixed static fields initialization in WorkflowStepFactory (#532)

Fixed static fields initialization


(cherry picked from commit 24bf51a)

Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] WorkflowStepFactory sets static fields in constructor
4 participants