Skip to content

fix(orchestrator): stop fetching workflow URI #1297

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

Merged
merged 3 commits into from
Mar 3, 2024

Conversation

caponetto
Copy link
Contributor

https://issues.redhat.com/browse/FLPATH-1044

We were fetching each workflow URI directly from the workflow service when loading the workflow table.
If one of the services is not responsive, the loading operation fails. Not to mention that it adds one extra request for each item in the table.

I've noticed that we were using the workflow URI only for authoring purposes so I'm removing this field in favor of the format field (json|yaml), which can be extracted from the workflow source, i.e., does not depend on fetching the workflow service directly.

I've also taken the opportunity to improve our API by simplifying some of the operations and removing others that are not being used anymore. There's still room for improvement and this PR is a proposal for a first step.

@caponetto
Copy link
Contributor Author

@gciavarrini could you please help me review this PR? Especially the API part.

Copy link
Contributor

@gciavarrini gciavarrini left a comment

Choose a reason for hiding this comment

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

Overall LGTM, I think all the changes to the API are good.
You also took care of the unit test.
I have just a couple of minor comments

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.2% Duplication on New Code

See analysis details on SonarCloud

@caponetto caponetto marked this pull request as ready for review February 29, 2024 17:43
@caponetto caponetto requested a review from a team as a code owner February 29, 2024 17:43
@openshift-ci openshift-ci bot requested review from batzionb and jkilzi February 29, 2024 17:43
@caponetto
Copy link
Contributor Author

@jkilzi PTAL

@jkilzi
Copy link
Member

jkilzi commented Mar 3, 2024

LGTM

Copy link

openshift-ci bot commented Mar 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: batzionb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Mar 3, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 2456a28 into janus-idp:main Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants