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

[Backport 2.x] Modifies use case template format and adds graph validation when provisioning #134

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport ac76a44 from #119.

…isioning (#119)

* Simplifying Template format, removing operations, resources created, user outputs

Signed-off-by: Joshua Palis <[email protected]>

* Initial commit, modifies use case template to seperate workflow inputs into previous_node_inputs and user_inputs, adds graph validation after topologically sorting a workflow into a list of ProcessNode

Signed-off-by: Joshua Palis <[email protected]>

* Adding tests

Signed-off-by: Joshua Palis <[email protected]>

* Adding validate graph test

Signed-off-by: Joshua Palis <[email protected]>

* Addressing PR comments, moving sorting/validating prior to executing async, adding success test case for graph validation

Signed-off-by: Joshua Palis <[email protected]>

* Adding javadocs

Signed-off-by: Joshua Palis <[email protected]>

* Moving validation prior to updating workflow state to provisioning

Signed-off-by: Joshua Palis <[email protected]>

* Addressing PR comments Part 1

Signed-off-by: Joshua Palis <[email protected]>

* Addressing PR comments Part 2 : Moving field names to common value class and using constants

Signed-off-by: Joshua Palis <[email protected]>

* Adding definition for noop workflow step

Signed-off-by: Joshua Palis <[email protected]>

* Addressing PR comments Part 3

Signed-off-by: Joshua Palis <[email protected]>

---------

Signed-off-by: Joshua Palis <[email protected]>
(cherry picked from commit ac76a44)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #134 (04f9e69) into 2.x (0b7efc9) will increase coverage by 1.96%.
The diff coverage is 93.45%.

@@             Coverage Diff              @@
##                2.x     #134      +/-   ##
============================================
+ Coverage     67.09%   69.05%   +1.96%     
- Complexity      276      302      +26     
============================================
  Files            35       37       +2     
  Lines          1319     1393      +74     
  Branches        125      132       +7     
============================================
+ Hits            885      962      +77     
+ Misses          390      386       -4     
- Partials         44       45       +1     
Files Coverage Δ
...g/opensearch/flowframework/common/CommonValue.java 100.00% <ø> (ø)
...arch/flowframework/indices/FlowFrameworkIndex.java 100.00% <ø> (ø)
...arch/flowframework/model/ProvisioningProgress.java 100.00% <ø> (ø)
...java/org/opensearch/flowframework/model/State.java 100.00% <ø> (ø)
...g/opensearch/flowframework/model/WorkflowNode.java 91.35% <100.00%> (+0.81%) ⬆️
...rch/flowframework/model/WorkflowStepValidator.java 100.00% <100.00%> (ø)
...nsearch/flowframework/model/WorkflowValidator.java 100.00% <100.00%> (ø)
...search/flowframework/workflow/CreateIndexStep.java 85.29% <100.00%> (ø)
...owframework/workflow/CreateIngestPipelineStep.java 90.62% <100.00%> (ø)
.../flowframework/workflow/WorkflowProcessSorter.java 97.80% <100.00%> (+0.70%) ⬆️
... and 3 more

... and 4 files with indirect coverage changes

@owaiskazi19 owaiskazi19 merged commit 1e3c399 into 2.x Oct 31, 2023
15 checks passed
@github-actions github-actions bot deleted the backport/backport-119-to-2.x branch October 31, 2023 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant