Skip to content

chore: drop unused services/oauth v1 and minor v2 tidy-ups - #6275

Merged
ItsSudip merged 3 commits into
masterfrom
chore/removeDeadOAuthCode
Sep 11, 2025
Merged

ItsSudip merged 3 commits into
masterfrom
chore/removeDeadOAuthCode

Conversation

@ItsSudip

Copy link
Copy Markdown
Member

What are the changes introduced in this PR?

  • Remove dead OAuth v1 code under services/oauth/:
    • Deleted services/oauth/oauth.go
    • Deleted services/oauth/oauth_test.go
  • Consolidate on OAuth v2:
    • Minor cleanups in services/oauth/v2/common/constants.go
    • Minor cleanups in services/oauth/v2/destination_info.go
  • No behavior change; strictly code cleanup

What is the related Linear task?

Please explain the objectives of your changes below

  • Remove obsolete OAuth v1 implementation and tests to avoid confusion and prevent accidental imports.
  • Keep services/oauth/v2/ as the single source of truth.

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

  • None. No runtime behavior changes; only deletion of unused v1 code and minor v2 tidy-ups.

Any new dependencies introduced with this change?

  • None.

Any new generic utility introduced or modified. Please explain the changes.

  • None.

Any technical or performance related pointers to consider with the change?

  • None. Pure removal and minor constant/info cleanups.

@coderabbitai review

Developer checklist

  • My code follows the style guidelines of this project
  • No breaking changes are being introduced.
  • All related docs linked with the PR?
  • All changes manually tested?
  • Is the PR limited to 10 file changes?
  • Is the PR limited to one linear task?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?
  • Verified that there are no credentials or confidential data exposed with the changes.

@ItsSudip ItsSudip changed the title cleanup: drop unused services/oauth v1; minor v2 tidy-ups (INT-3973) cleanup: drop unused services/oauth v1 and minor v2 tidy-ups Aug 26, 2025
@ItsSudip ItsSudip changed the title cleanup: drop unused services/oauth v1 and minor v2 tidy-ups chore: drop unused services/oauth v1 and minor v2 tidy-ups Aug 26, 2025

@vinayteki95 vinayteki95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did we clearly determine this is dead code?

@vinayteki95
vinayteki95 self-requested a review August 26, 2025 10:31
@ItsSudip

Copy link
Copy Markdown
Member Author

Did we clearly determine this is dead code?

Yes, the linter test is working fine, which makes sure this is dead code.

@codecov

codecov Bot commented Aug 26, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.53%. Comparing base (63af856) to head (79afa98).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6275      +/-   ##
==========================================
+ Coverage   77.32%   77.53%   +0.21%     
==========================================
  Files         524      523       -1     
  Lines       70640    70179     -461     
==========================================
- Hits        54620    54414     -206     
+ Misses      13166    12928     -238     
+ Partials     2854     2837      -17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ItsSudip

Copy link
Copy Markdown
Member Author

We will take this task later.

@ItsSudip ItsSudip closed this Aug 28, 2025
@krishna2020 krishna2020 reopened this Sep 11, 2025
@ItsSudip
ItsSudip merged commit c1b84c1 into master Sep 11, 2025
@ItsSudip
ItsSudip deleted the chore/removeDeadOAuthCode branch September 11, 2025 12:57
This was referenced Sep 15, 2025
satishrudderstack pushed a commit that referenced this pull request Sep 15, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.59.0-rc.1](v1.58.0...v1.59.0-rc.1)
(2025-09-15)


### Features

* **router:** add request latency and count metrics for router
deliveries
([#6288](#6288))
([c8dd8ef](c8dd8ef))


### Bug Fixes

* avoid running migrations for notifier from slaves
([#6303](#6303))
([761eb46](761eb46))
* **batchrouter:** support configurable column ordering in CSVs in sftp
([#6342](#6342))
([652215b](652215b))
* populate table level schemas createdAt updatedAt
([#6344](#6344))
([a76a509](a76a509))
* remove unwanted table level schemas
([#6296](#6296))
([761eb46](761eb46))
* **router:** kinesis rate exceeded errors are being aborted with http
400 ([#6329](#6329))
([f739d7f](f739d7f))
* update ID regex to include underscores in error cleanup
([#6315](#6315))
([bc1a751](bc1a751))


### Miscellaneous

* add logs for events coming with an incorrect source and sourceRunId
([#6309](#6309))
([17afa60](17afa60))
* add readme for OAuth module
([#6335](#6335))
([3c9f251](3c9f251))
* bump go-kit
([#6321](#6321))
([87499e0](87499e0))
* bump mvdan.cc/gofumpt to v0.9.1
([#6328](#6328))
([cf9f653](cf9f653))
* capture stats for failed transformer client requests
([#6300](#6300))
([e10d5c1](e10d5c1))
* clean up legacy MTU logic
([#6314](#6314))
([a2e753d](a2e753d))
* clean up logs to trace double-encoded HLL value issue
([#6310](#6310))
([c707aea](c707aea))
* drop unused services/oauth v1 and minor v2 tidy-ups
([#6275](#6275))
([c1b84c1](c1b84c1))
* improve googlesheets oauth flow and error handling
([#6340](#6340))
([738d420](738d420))
* optimize dtransform payloads and have compaction always enabled
([#6331](#6331))
([63af856](63af856))
* remove proc_error jobsdb
([#6287](#6287))
([5b92665](5b92665))
* renaming mirroring modes
([#6325](#6325))
([84687fb](84687fb))
* **router:** ignore throttling costs in pickup throttler
([#6316](#6316))
([af85b92](af85b92))
* sync release v1.58.0 to main branch
([#6294](#6294))
([565630e](565630e))
* unify adaptive and static throttling configuration
([#6327](#6327))
([077b0fb](077b0fb))
* update rudderlabs/build-scan-push-action to 1.7.0
([#6320](#6320))
([edb02d3](edb02d3))
* updating keydb client
([#6301](#6301))
([0f9e3ec](0f9e3ec))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
satishrudderstack pushed a commit that referenced this pull request Sep 16, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.59.0](v1.58.0...v1.59.0)
(2025-09-15)


### Features

* **router:** add request latency and count metrics for router
deliveries
([#6288](#6288))
([c8dd8ef](c8dd8ef))


### Bug Fixes

* avoid running migrations for notifier from slaves
([#6303](#6303))
([761eb46](761eb46))
* **batchrouter:** support configurable column ordering in CSVs in sftp
([#6342](#6342))
([652215b](652215b))
* populate table level schemas createdAt updatedAt
([#6344](#6344))
([a76a509](a76a509))
* remove unwanted table level schemas
([#6296](#6296))
([761eb46](761eb46))
* **router:** kinesis rate exceeded errors are being aborted with http
400 ([#6329](#6329))
([f739d7f](f739d7f))
* update ID regex to include underscores in error cleanup
([#6315](#6315))
([bc1a751](bc1a751))


### Miscellaneous

* add logs for events coming with an incorrect source and sourceRunId
([#6309](#6309))
([17afa60](17afa60))
* add readme for OAuth module
([#6335](#6335))
([3c9f251](3c9f251))
* bump go-kit
([#6321](#6321))
([87499e0](87499e0))
* bump mvdan.cc/gofumpt to v0.9.1
([#6328](#6328))
([cf9f653](cf9f653))
* capture stats for failed transformer client requests
([#6300](#6300))
([e10d5c1](e10d5c1))
* clean up legacy MTU logic
([#6314](#6314))
([a2e753d](a2e753d))
* clean up logs to trace double-encoded HLL value issue
([#6310](#6310))
([c707aea](c707aea))
* drop unused services/oauth v1 and minor v2 tidy-ups
([#6275](#6275))
([c1b84c1](c1b84c1))
* improve googlesheets oauth flow and error handling
([#6340](#6340))
([738d420](738d420))
* optimize dtransform payloads and have compaction always enabled
([#6331](#6331))
([63af856](63af856))
* remove proc_error jobsdb
([#6287](#6287))
([5b92665](5b92665))
* renaming mirroring modes
([#6325](#6325))
([84687fb](84687fb))
* **router:** ignore throttling costs in pickup throttler
([#6316](#6316))
([af85b92](af85b92))
* sync release v1.58.0 to main branch
([#6294](#6294))
([565630e](565630e))
* unify adaptive and static throttling configuration
([#6327](#6327))
([077b0fb](077b0fb))
* update rudderlabs/build-scan-push-action to 1.7.0
([#6320](#6320))
([edb02d3](edb02d3))
* updating keydb client
([#6301](#6301))
([0f9e3ec](0f9e3ec))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

4 participants