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

remove deprecated service #780

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ewollesen
Copy link
Contributor

@ewollesen ewollesen commented Oct 4, 2024

This service was deprecated in 2018. Let's finish the migration.

The data service is the only place that used the deprecated service. I started by expanding the data service to include both a deprecated service and the new service. Then when I had all the tests at equity, I dropped out the old deprecated service.

So all the things that were tested in the deprecated service are still tested (the only thing that wasn't already tested was part of the Authenticated service).

Before this is merged, I'd probably squash it done to a single commit. I'm leaving the separate commits in case someone wants to see the step by step of how I tried to make sure nothing was missed in the migration.

BACK-3243

toddkazakov
toddkazakov previously approved these changes Oct 5, 2024
service/service/authenticated_test.go Outdated Show resolved Hide resolved
…w service

The AuthClient test removal is the only thing I find in any way controversial
here. That test requests the auth client, then calls a method on it, to ensure
that it returns what is expected. However, since the new service doesn't
initialize that auth client itself, rather, it's just returning whatever is
passed to it via a setter, there's no point in testing this here.
The previous commit did drop one test, because it didn't apply to the new
Service. That test does apply to Authenticated however. This commit restores
that test, which checks that the configuration passed to the service via the
config reporter is able to successfully initialize an authentication client.
I believe there is no loss in test coverage through this action.

I manually compared the old tests and new tests to see that they covered the
same concepts. Most of them were duplicates to begin with. The one that wasn't
duplicated already, was moved to authenticated_test.go in a previous commit.

Since the deprecated service is no more, these tests are no longer
necessary. They had already be retro-fitted to test the replacement
service.Service anyway, where they all passed.
@ewollesen ewollesen force-pushed the eric-platform-deprecated-service branch from 31315a1 to 87e2501 Compare October 7, 2024 15:37
darinkrauss
darinkrauss previously approved these changes Nov 1, 2024
Copy link
Contributor

@darinkrauss darinkrauss left a comment

Choose a reason for hiding this comment

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

Yep, LGTM.

Hmm, I wonder why I didn't do the same thing way back then. 🤔 I guess we'll never know.

BTW, 👍 on the new tests for authenticated.

Copy link
Contributor

@toddkazakov toddkazakov left a comment

Choose a reason for hiding this comment

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

Service is failing on QA5. Please resolve issues before merging.

@ewollesen
Copy link
Contributor Author

ewollesen commented Nov 25, 2024

Service is failing on QA5. Please resolve issues before merging.

I believe this is resolved. See latest commit(s) on the PR.

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.

3 participants