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

fix: trailing slash issue #819

Merged
merged 15 commits into from
May 19, 2024
Merged

fix: trailing slash issue #819

merged 15 commits into from
May 19, 2024

Conversation

VishnuSanal
Copy link
Contributor

Description

This PR fixes #818

@sansyrox PTAL :)

Copy link

vercel bot commented May 14, 2024

@VishnuSanal is attempting to deploy a commit to the sparckles Team on Vercel.

A member of the Team first needs to authorize it.

@VishnuSanal VishnuSanal changed the title fixes trailing slash issue fix: trailing slash issue May 14, 2024
@sansyrox
Copy link
Member

sansyrox commented May 15, 2024

Hey @VishnuSanal 👋

Thanks for the PR, but I see no changes in the PR. Could you have a look again?

@VishnuSanal
Copy link
Contributor Author

Hey @VishnuSanal 👋

Thanks for the PR, but I see no changes in the PR. Could you have a look again?

ouch!! that lost somewhere whilst fixing the CI. :D PTAL now :)

src/server.rs Outdated Show resolved Hide resolved
src/server.rs Outdated Show resolved Hide resolved
src/server.rs Outdated Show resolved Hide resolved
src/server.rs Outdated Show resolved Hide resolved
@sansyrox
Copy link
Member

Hey @VishnuSanal

I have made some changes and have added a few suggestions. Do let me know what you think 😄

@sansyrox
Copy link
Member

Also, @VishnuSanal , please add an integration test. Add a route in integration_tests/base_routes.py and then make a curl request on both the routes like this - https://github.com/sparckles/Robyn/blob/main/integration_tests/test_get_requests.py

@VishnuSanal
Copy link
Contributor Author

please add an integration test. Add a route in integration_tests/base_routes.py and then make a curl request on both the routes like this - https://github.com/sparckles/Robyn/blob/main/integration_tests/test_get_requests.py

@sansyrox why add a new route? also, why integration_tests/test_get_requests.py? wouldn't modifying integration_tests/test_basic_routes.py like this suffice? 🤔

@sansyrox
Copy link
Member

@VishnuSanal , we tend to add one route for its function. If you explore the file, you will find out that we have one dedicated route for get requests, one for posts, etc.

why add a new route? also, why integration_tests/test_get_requests.py? wouldn't modifying integration_tests/test_basic_routes.py like

@VishnuSanal VishnuSanal requested a review from sansyrox May 18, 2024 05:54
@VishnuSanal VishnuSanal requested a review from sansyrox May 18, 2024 20:49
Copy link
Member

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

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

LGTM! Great work @VishnuSanal

Copy link

vercel bot commented May 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robyn ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2024 5:44pm

Copy link

codspeed-hq bot commented May 19, 2024

CodSpeed Performance Report

Merging #819 will not alter performance

Comparing VishnuSanal:main (a773240) with main (00ca522)

Summary

✅ 108 untouched benchmarks

🆕 1 new benchmarks

Benchmarks breakdown

Benchmark main VishnuSanal:main Change
🆕 test_trailing_slash N/A 46.6 ms N/A

@sansyrox
Copy link
Member

@VishnuSanal , the ci is failing on formatting. Can you please fix that?

@sansyrox
Copy link
Member

All looks good to merge otherwise 😄

@VishnuSanal VishnuSanal requested a review from sansyrox May 19, 2024 06:28
@sansyrox sansyrox merged commit b6d3281 into sparckles:main May 19, 2024
60 checks passed
@sansyrox
Copy link
Member

Great work @VishnuSanal 😄

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.

Trailing slashes leads to 404
2 participants