Skip to content

chore: add depreciation for old routes - #2166

Merged
utsabc merged 3 commits into
developfrom
chore.depriciate-unused-code
May 11, 2023
Merged

utsabc merged 3 commits into
developfrom
chore.depriciate-unused-code

Conversation

@utsabc

@utsabc utsabc commented May 11, 2023

Copy link
Copy Markdown
Contributor

Adding depreciation notice for old route and for the versionRouter.js

@utsabc
utsabc requested a review from a team May 11, 2023 03:06
@codecov

codecov Bot commented May 11, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 97.22% and project coverage change: +0.01 🎉

Comparison is base (cfe84ad) 87.91% compared to head (62c4ff8) 87.93%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2166      +/-   ##
===========================================
+ Coverage    87.91%   87.93%   +0.01%     
===========================================
  Files          510      510              
  Lines        25819    25819              
  Branches      6394     6394              
===========================================
+ Hits         22700    22705       +5     
+ Misses        2786     2782       -4     
+ Partials       333      332       -1     
Impacted Files Coverage Δ
src/legacy/profiling.js 100.00% <ø> (ø)
src/legacy/router.js 53.34% <97.05%> (ø)
src/legacy/delivery.js 84.61% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

koladilip
koladilip previously approved these changes May 11, 2023
@saikumarrs

saikumarrs commented May 11, 2023 •

Copy link
Copy Markdown
Member

A deprecation notice is usually added for the APIs and classes exposed to the users consuming them. It's a good candidate for HTTP APIs, utility methods, etc. The modified file is not used anywhere apart from the entry script.

You probably want to rename the current file(s) and move it under the legacy directory so that users unaware of the latest changes cannot find it easily. Add comments in the entry script to further explain the situation.

Comment thread src/versionedRouter.js Resolved
@utsabc
utsabc requested a review from a team as a code owner May 11, 2023 09:21
@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 48 Code Smells

49.7% 49.7% Coverage
0.0% 0.0% Duplication

@utsabc
utsabc merged commit 2764bb2 into develop May 11, 2023
@utsabc
utsabc deleted the chore.depriciate-unused-code branch May 11, 2023 11:14
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