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

RHCLOUD-35843 | refactor: Sources' REST API client #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MikelAlejoBR
Copy link
Member

The REST API functions that were being used were almost a copy paste of
one another, which made following the code difficult.

The goal of the refactor was to simplify the code and make it easier to
follow and reason about. Also, it introduces a timeout for the requests
by default, which could be the cause for which the Superkey struggles so
much and ends up restarting non-stop.

Another goal of this refactor was to leave everything in an state where
it is easier to reason about how the Superkey worker should be
refactored further, like introducing proper dependency injection and
untangling the resource making from the "ForgeApplication" struct.
However, that's for another PR.

Dependency

Jira ticket

[RHCLOUD-35843]

@MikelAlejoBR MikelAlejoBR force-pushed the RHCLOUD-35843-refactor-superkey-rest-api-client branch 2 times, most recently from 735e8c9 to 1f2bba6 Compare January 15, 2025 17:13
The REST API functions that were being used were almost a copy paste of
one another, which made following the code difficult.

The goal of the refactor was to simplify the code and make it easier to
follow and reason about. Also, it introduces a timeout for the requests
by default, which could be the cause for which the Superkey struggles so
much and ends up restarting non-stop.

Another goal of this refactor was to leave everything in an state where
it is easier to reason about how the Superkey worker should be
refactored further, like introducing proper dependency injection and
untangling the resource making from the "ForgeApplication" struct.
However, that's for another PR.

RHCLOUD-35843
@MikelAlejoBR MikelAlejoBR force-pushed the RHCLOUD-35843-refactor-superkey-rest-api-client branch from 1f2bba6 to 07cce82 Compare January 15, 2025 17:18
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