Skip to content

fix: handle 404 response code for proxy route - #2134

Merged
sanpj2292 merged 11 commits into
developfrom
fix.notfound-error-code
May 10, 2023
Merged

sanpj2292 merged 11 commits into
developfrom
fix.notfound-error-code

Conversation

@utsabc

@utsabc utsabc commented May 8, 2023 •

Copy link
Copy Markdown
Contributor

Handle 404 response code for proxy route

Added constants for status code and update the response code for 404 response for proxy route

@utsabc
utsabc requested a review from a team May 8, 2023 07:41
@utsabc
utsabc requested review from lvrach and sivashanmukh as code owners May 8, 2023 07:41
@codecov

codecov Bot commented May 8, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 90.00% and no project coverage change.

Comparison is base (52dee04) 87.93% compared to head (95ad8c6) 87.93%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2134   +/-   ##
========================================
  Coverage    87.93%   87.93%           
========================================
  Files          510      510           
  Lines        25802    25811    +9     
  Branches      6389     6390    +1     
========================================
+ Hits         22689    22697    +8     
- Misses        2781     2782    +1     
  Partials       332      332           
Impacted Files Coverage Δ
src/adapters/utils/networkUtils.js 73.07% <85.71%> (+1.96%) ⬆️
src/v0/util/constant.js 80.00% <100.00%> (+2.22%) ⬆️
src/versionedRouter.js 53.34% <100.00%> (+0.07%) ⬆️

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

@utsabc
utsabc requested a review from a team as a code owner May 8, 2023 09:21
@utsabc
utsabc requested review from ItsSudip and sanpj2292 May 8, 2023 09:21
sanpj2292
sanpj2292 previously approved these changes May 8, 2023

@saikumarrs saikumarrs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's handle this in the older code base, also, as we're still maintaining both versions now.
CC @krishna2020

Comment thread src/v0/util/constant.js Resolved
Comment thread src/controllers/util/index.ts Resolved
Comment thread src/controllers/util/index.ts Resolved
Sai Sankeerth added 2 commits May 8, 2023 18:07
- add test-case for 404 error in proxy endpoint
- add missing imports
@sanpj2292

Copy link
Copy Markdown

Let's handle this in the older code base, also, as we're still maintaining both versions now.

It is handled. Please check and confirm

koladilip
koladilip previously approved these changes May 9, 2023
Comment thread src/adapters/network.js Resolved
Comment thread src/adapters/network.js Resolved
Comment thread src/adapters/utils/networkUtils.js Resolved
Comment thread src/v0/util/constant.js Resolved
Comment thread src/controllers/util/index.ts Resolved
@sanpj2292

Copy link
Copy Markdown

#2134 (comment)

Done this

@sonarqubecloud

sonarqubecloud Bot commented May 9, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

38.5% 38.5% Coverage
0.0% 0.0% Duplication

@sonarqubecloud

sonarqubecloud Bot commented May 9, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

84.6% 84.6% Coverage
0.0% 0.0% Duplication

@sanpj2292
sanpj2292 merged commit 99e2cf3 into develop May 10, 2023
@sanpj2292
sanpj2292 deleted the fix.notfound-error-code branch May 10, 2023 03: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.

5 participants