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

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 5 times, most recently from 184abd4 to ea298c5 Compare January 16, 2025 10:28
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 ea298c5 to acfcb28 Compare January 16, 2025 10:29
@MikelAlejoBR MikelAlejoBR merged commit 82edaa0 into RedHatInsights:master Jan 16, 2025
11 of 13 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.

1 participant