Skip to content

Commit

Permalink
addressing additional conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Galitzky <[email protected]>
  • Loading branch information
amitgalitz committed Nov 15, 2023
1 parent 569f481 commit 5583855
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 26 deletions.
24 changes: 12 additions & 12 deletions src/main/java/org/opensearch/flowframework/model/WorkflowState.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,17 +469,17 @@ public List<ResourcesCreated> resourcesCreated() {
@Override
public String toString() {
return "WorkflowState [workflowId="

Check warning on line 471 in src/main/java/org/opensearch/flowframework/model/WorkflowState.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/opensearch/flowframework/model/WorkflowState.java#L471

Added line #L471 was not covered by tests
+ workflowId
+ ", error="
+ error
+ ", state="
+ state
+ ", provisioningProgress="
+ provisioningProgress
+ ", userOutputs="
+ userOutputs
+ ", resourcesCreated="
+ resourcesCreated
+ "]";
+ workflowId
+ ", error="
+ error
+ ", state="
+ state
+ ", provisioningProgress="
+ provisioningProgress
+ ", userOutputs="
+ userOutputs
+ ", resourcesCreated="
+ resourcesCreated
+ "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import static org.opensearch.flowframework.common.CommonValue.WORKFLOW_ID;
import static org.opensearch.flowframework.common.CommonValue.WORKFLOW_URI;
import static org.opensearch.flowframework.common.FlowFrameworkFeatureEnabledSetting.FLOW_FRAMEWORK_ENABLED;
import static org.opensearch.flowframework.common.FlowFrameworkSettings.FLOW_FRAMEWORK_ENABLED;

/**
* Rest Action to facilitate requests to get a workflow status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ private void executeWorkflowAsync(String workflowId, List<ProcessNode> workflowS
ActionListener<String> provisionWorkflowListener = ActionListener.wrap(response -> {
logger.info("Provisioning completed successfully for workflow {}", workflowId);
flowFrameworkIndicesHandler.updateFlowFrameworkSystemIndexDoc(

Check warning on line 165 in src/main/java/org/opensearch/flowframework/transport/ProvisionWorkflowTransportAction.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/opensearch/flowframework/transport/ProvisionWorkflowTransportAction.java#L164-L165

Added lines #L164 - L165 were not covered by tests
WORKFLOW_STATE_INDEX,
workflowId,
ImmutableMap.of(

Check warning on line 167 in src/main/java/org/opensearch/flowframework/transport/ProvisionWorkflowTransportAction.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/opensearch/flowframework/transport/ProvisionWorkflowTransportAction.java#L167

Added line #L167 was not covered by tests
STATE_FIELD,
Expand All @@ -181,7 +180,6 @@ private void executeWorkflowAsync(String workflowId, List<ProcessNode> workflowS
}, exception -> {
logger.error("Provisioning failed for workflow {} : {}", workflowId, exception);
flowFrameworkIndicesHandler.updateFlowFrameworkSystemIndexDoc(
WORKFLOW_STATE_INDEX,
workflowId,
ImmutableMap.of(
STATE_FIELD,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public WorkflowRequest(@Nullable String workflowId, @Nullable Template template)
* @param maxWorkflows max number of workflows
*/
public WorkflowRequest(
@Nullable String workflowId,
@Nullable Template template,
@Nullable TimeValue requestTimeout,
@Nullable Integer maxWorkflows
@Nullable String workflowId,
@Nullable Template template,
@Nullable TimeValue requestTimeout,
@Nullable Integer maxWorkflows
) {
this(workflowId, template, false, requestTimeout, maxWorkflows);
}
Expand All @@ -82,11 +82,11 @@ public WorkflowRequest(
* @param maxWorkflows max number of workflows
*/
public WorkflowRequest(
@Nullable String workflowId,
@Nullable Template template,
boolean dryRun,
@Nullable TimeValue requestTimeout,
@Nullable Integer maxWorkflows
@Nullable String workflowId,
@Nullable Template template,
boolean dryRun,
@Nullable TimeValue requestTimeout,
@Nullable Integer maxWorkflows
) {
this.workflowId = workflowId;
this.template = template;
Expand Down Expand Up @@ -167,4 +167,4 @@ public ActionRequestValidationException validate() {
return null;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void testPlugin() throws IOException {
3,
ffp.createComponents(client, clusterService, threadPool, null, null, null, environment, null, null, null, null).size()
);
assertEquals(4, ffp.getRestHandlers(null, null, null, null, null, null, null).size());
assertEquals(4, ffp.getRestHandlers(settings, null, null, null, null, null, null).size());
assertEquals(4, ffp.getActions().size());
assertEquals(1, ffp.getExecutorBuilders(settings).size());
assertEquals(3, ffp.getSettings().size());
Expand Down

0 comments on commit 5583855

Please sign in to comment.