Skip to content

fix: path fetching for home paths Urls#448

Merged
sanket-mundra merged 3 commits intomainfrom
sanket/fixHomePageApiCreation
Feb 5, 2024
Merged

fix: path fetching for home paths Urls#448
sanket-mundra merged 3 commits intomainfrom
sanket/fixHomePageApiCreation

Conversation

@sanket-mundra
Copy link
Copy Markdown
Contributor

Description

fix for creation of APIs from url like: http://www.google.com/ and http://www.google.com

Testing

Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.

@sanket-mundra sanket-mundra requested a review from a team as a code owner February 2, 2024 08:25
@github-actions

This comment has been minimized.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fc4d7c0) 79.53% compared to head (0c37667) 79.53%.
Report is 2 commits behind head on main.

❗ Current head 0c37667 differs from pull request most recent head 82254e3. Consider uploading reports for the commit 82254e3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #448   +/-   ##
=========================================
  Coverage     79.53%   79.53%           
  Complexity     1427     1427           
=========================================
  Files           130      130           
  Lines          5692     5692           
  Branches        533      533           
=========================================
  Hits           4527     4527           
  Misses          912      912           
  Partials        253      253           
Flag Coverage Δ
unit 79.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

// Ends with "/" and it's not home page path
return s.endsWith(SLASH) && s.length() > 1 ? s.substring(0, s.length() - 1) : s;
private static String removeTrailingSlashes(String url) {
// if it's home page path, then return /
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.

Suggested change
// if it's home page path, then return /
// if it's root URL, then return /

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@sanket-mundra sanket-mundra merged commit ed7b189 into main Feb 5, 2024
@sanket-mundra sanket-mundra deleted the sanket/fixHomePageApiCreation branch February 5, 2024 16:24
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 5, 2024

Unit Test Results

  79 files  ±0    79 suites  ±0   1m 8s ⏱️ ±0s
420 tests ±0  420 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ed7b189. ± Comparison against base commit 475aca8.

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