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

refactor(igor): use SpinnakerRetrofitErrorHandler with IgorService #4666

Merged

Conversation

Pranav-b-7
Copy link
Contributor

This PR lays the foundational work for upgrading the retrofit version to 2.x, specifically focusing on refactoring the exception handling for IgorService.

There are no behaviour changes detected with these code changes and hence no additional tests added to demonstrate the functionalities. Few existing tests are modified to align it with the new changes.

@Pranav-b-7 Pranav-b-7 force-pushed the remove-retrofitError-igorService branch from 2ce0b9a to 1b15fcf Compare March 6, 2024 12:33
@Pranav-b-7 Pranav-b-7 force-pushed the remove-retrofitError-igorService branch from 1b15fcf to 50715dc Compare March 7, 2024 11:02
This PR lays the foundational work for upgrading the retrofit version to 2.x, specifically focusing on refactoring the exception handling for IgorService.

There are no behaviour changes detected with these code changes and hence no additional tests added to demonstrate the functionalities. Few existing tests are modified to align it with the new changes.
@Pranav-b-7 Pranav-b-7 force-pushed the remove-retrofitError-igorService branch 2 times, most recently from e1e618e to 30a788b Compare March 7, 2024 11:52
There are 2 APIs invoked inside the try block:
1. Keel Service API - keelService.publishDeliveryConfig() : With the addition of the commit - c417922, the keelService uses SpinnakerRetrofitErrorHandler.
2. Igor Service API - scmService.getDeliveryConfigManifest() : With the addition of the commit - d430b75, the igor service uses SpinnakerRetrofitErrorHandler.

and hence with the above mentioned commits the catch block with RetrofitError and the handler logics associated with it becomes irrelevant.
@Pranav-b-7 Pranav-b-7 force-pushed the remove-retrofitError-igorService branch from 30a788b to 32e6571 Compare March 7, 2024 11:55
@Pranav-b-7 Pranav-b-7 marked this pull request as ready for review March 7, 2024 17:25
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Mar 7, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label Mar 7, 2024
@mergify mergify bot merged commit 38e426e into spinnaker:master Mar 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.34
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants