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

fix(orchestrator): pass businessKey for assessments #80

Conversation

mareklibra
Copy link
Contributor

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Nov 26, 2024

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-orchestrator-backend workspaces/orchestrator/plugins/orchestrator-backend patch v4.1.1
@red-hat-developer-hub/backstage-plugin-orchestrator-common workspaces/orchestrator/plugins/orchestrator-common patch v1.24.1
@red-hat-developer-hub/backstage-plugin-orchestrator workspaces/orchestrator/plugins/orchestrator patch v2.4.1

@mareklibra mareklibra changed the title Flpath 1881.backport.pass businness key.assigned by fix(orchestrator): pass businessKey for assessments Nov 26, 2024
@batzionb
Copy link
Contributor

@mareklibra
to fix prettier run:
cd workspaces/orchestrator
yarn prettier --write .
then commit the changed files

@mareklibra mareklibra force-pushed the FLPATH-1881.backport.passBusinnessKey.AssignedBy branch from b7ae5f7 to dabd13f Compare November 27, 2024 09:11
@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Nov 27, 2024

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-orchestrator-backend workspaces/orchestrator/plugins/orchestrator-backend patch v4.1.1
@red-hat-developer-hub/backstage-plugin-orchestrator-common workspaces/orchestrator/plugins/orchestrator-common patch v1.24.1
@red-hat-developer-hub/backstage-plugin-orchestrator workspaces/orchestrator/plugins/orchestrator patch v2.4.1

@mareklibra
Copy link
Contributor Author

The prettier is passing when executed in the plugin's folder but not on the workspace level.
We have discrepancy in the dependencies for prettier.

I will try to fix that in a separate PR.

@batzionb
Copy link
Contributor

meanwhile can you fix it so we can get this merged?
I need to backport janus-idp/backstage-plugins#2573 and it would be difficult without this PR merged

@@ -89,7 +90,7 @@ export const ExecuteWorkflowPage = () => {
const response = await orchestratorApi.executeWorkflow({
workflowId,
parameters,
businessKey: assessmentInstanceId,
businessKey: effectiveInstanceId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
businessKey: effectiveInstanceId,
businessKey: assessmentInstanceId,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -98,7 +99,7 @@ export const ExecuteWorkflowPage = () => {
setIsExecuting(false);
}
},
[orchestratorApi, workflowId, navigate, instanceLink, assessmentInstanceId],
[orchestratorApi, workflowId, navigate, instanceLink, effectiveInstanceId],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
[orchestratorApi, workflowId, navigate, instanceLink, effectiveInstanceId],
[orchestratorApi, workflowId, navigate, instanceLink, assessmentInstanceId],

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Fixes: FLPATH-1881

With this change, the "Assessed by" link is shown.

Signed-off-by: Marek Libra <mlibra@redhat.com>
@mareklibra mareklibra force-pushed the FLPATH-1881.backport.passBusinnessKey.AssignedBy branch from dabd13f to 4c4fd8e Compare November 29, 2024 10:11
@mareklibra mareklibra force-pushed the FLPATH-1881.backport.passBusinnessKey.AssignedBy branch from 2347cf2 to 6471a68 Compare November 29, 2024 12:05
@batzionb batzionb merged commit 8c112f4 into redhat-developer:main Dec 1, 2024
7 checks passed
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.

2 participants