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

#748 Match Route configurations for upstream paths when empty Catch-All placeholders at the end of template #1911

Merged
merged 33 commits into from
Jan 18, 2024

Conversation

AlyHKafoury
Copy link
Contributor

@AlyHKafoury AlyHKafoury commented Jan 8, 2024

@AlyHKafoury AlyHKafoury marked this pull request as ready for review January 8, 2024 16:00
@AlyHKafoury AlyHKafoury marked this pull request as draft January 9, 2024 15:38
@AlyHKafoury AlyHKafoury marked this pull request as ready for review January 9, 2024 22:30
@AlyHKafoury
Copy link
Contributor Author

@raman-m I believe the PR is ready for review please give me your thoughts about this, and if there is anything I need to improve

Copy link
Member

@raman-m raman-m left a comment

Choose a reason for hiding this comment

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

Let's make it better.

@raman-m raman-m changed the title #748 Fix Empty placeholder: Failed to match ReRoute configuration for upstream path #748 Empty placeholders: Failed to match Route configuration for upstream path Jan 10, 2024
@raman-m raman-m added bug Identified as a potential bug Jan'24 January 2024 release labels Jan 10, 2024
@raman-m raman-m added this to the January'24 milestone Jan 10, 2024
@AlyHKafoury
Copy link
Contributor Author

@raman-m I addressed most of your concerns, and Looking forward to your new comments

@raman-m
Copy link
Member

raman-m commented Jan 11, 2024

Thanks for working on code review issues!
Too busy!... Sorry... Going to ask another Ocelot team members to review..

FYI I've added this PR to Jan'24 milestone...
If you are on fire having desire to work more, please pick up open tickets from Annual'23 backlog!... But seems there are no free tickets to assign because all Annual tickets have their PRs... Well... We can find something else...

@raman-m
Copy link
Member

raman-m commented Jan 17, 2024

It's mostly ready, but not quite... See below 👇 commit 1365f50

@raman-m raman-m added Nov'23 November 2023 release and removed Jan'24 January 2024 release labels Jan 17, 2024
@raman-m raman-m modified the milestones: January'24, Nov-December'23 Jan 17, 2024
@raman-m
Copy link
Member

raman-m commented Jan 17, 2024

@AlyHKafoury I've added new these Routing tests and they failed.
Sorry, we have to fix them!... 😞
This theory should check possible breaking changes for the Catch All Query String feature. Seems this feature is broken now, or tests should be fixed.

I'm going to debug today... It will be nice if you help me too!..

@AlyHKafoury
Copy link
Contributor Author

@raman-m Please leave the debugging to me thanks for adding the failings tests and add more failing tests if they are needed and I can debug them to insure I understand all ocelot functionality

@raman-m
Copy link
Member

raman-m commented Jan 17, 2024

Thank you!
We've made aggressive refactoring in route matching logic...
So, Better to double check current Routing sub-features.

@raman-m
Copy link
Member

raman-m commented Jan 17, 2024

What's the news, Aly?

@AlyHKafoury
Copy link
Contributor Author

@raman-m fixing the test cases now will submit commit today

@AlyHKafoury
Copy link
Contributor Author

@raman-m I added fixes for the unit tests, please review the added commits

@@ -1171,7 +1171,7 @@ private void GivenThereIsAServiceRunningOn(string baseUrl, string basePath, Http
{
_serviceHandler.GivenThereIsAServiceRunningOn(baseUrl, basePath, async context =>
{
_downstreamPath = !string.IsNullOrEmpty(context.Request.PathBase.Value) ? context.Request.PathBase.Value : context.Request.Path.Value;
_downstreamPath = !string.IsNullOrEmpty(context.Request.PathBase.Value) ? context.Request.PathBase.Value + context.Request.Path.Value : context.Request.Path.Value;
Copy link
Member

Choose a reason for hiding this comment

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

Cannot get it! Was it a real issue?
Seems this change is not needed...

Copy link
Member

@raman-m raman-m left a comment

Choose a reason for hiding this comment

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

Ready for delivery! ✔️

Thanks, Aly!
Good job! 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identified as a potential bug Nov'23 November 2023 release Routing Ocelot feature: Routing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty placeholders: Failed to match Route configuration for upstream path
3 participants