-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Upstream header routing #964
Conversation
…). Tests are WIP.
* Fixed issue with request headers not getting converted to lowercase prior to matching * Made request value matching case-insensitive * Removed overriden Equals() from UpstreamRoutingHeaders * Made proper use of Shouldly in tests
please open PR again against master branch |
@mrclayman Update 1I have found nothing! 😢 |
As a compromise we can retarget current PR still to develop, because develop branch is protected now and it is default branch of the repo! And, master branch was default one in 2020, I suppose. But the feature branch is too old! 😞 I expect a lot of merge conflicts. |
Just tried rebasing my branch on the current state in develop and yeah, I might as well scrap the current branch and start a new one since some of the basic components I used in the past are gone now. It makes perfect sense anyway since so much must have changed in the meantime. |
Ok, so I have picked out my changes from the ancient branch and applied them to a new one. It's been straightforward for the most part, but I am wondering -- there are two implementations of |
|
@mrclayman commented on July 19:
Are you saying about this commit: mrclayman@022e817 ? Anyway you cannot use diff of this PR because the feature branch is very old! Don't even try to cherry pick because you will get multiple merge conflicts! Just apply ideas and changes manually in Visual Studio. I see you've already updated develop branch by merging PR 1. But I forgot to ask to use Rebase option button. Sorry! It is always better to use fast-forwarding instead of merge commits. After fixing and updating your develop branch, you will be able to create new feature branch. |
No, I have created a new branch based on the current state of |
And you will wonder more because you've created feature branch from develop branch which is in invalid state! Develop should be synced to head repo develop always, and it should have zero diff! It is important! |
I guess that is my exit cue, Raman. I don't see the reason to continue working on this since, as you have stated, there is already another PR in the pipeline ready to be merged soon. I haven't seen @jlukawska 's changes but if they are otherwise okay, trying to keep my version alive is a waste of effort as far as I can tell. |
🆗 As you wish... P.S. Could you at least to use these instructions please to recover your develop? |
Fair enough, I guess. Do you want me to drop the topmost merge commit on my develop branch and the rebase the latest from origin on top of that? I am not entirely sure I understand the goal of those instructions. |
@mrclayman commented on July 24:
With pleasure! The problem is that I have to push changes forcibly to develop to remove redundant merge commit. If you don't want to give me Collaborator role then you can just remove develop branch from GitHub and Sync fork please? So, new develop branch will occur with all top commits! |
Just did that. 👍 |
Congrats! 🥳 Your develop branch is canonic now (has zero diff with upstream)! |
Will do the rebasing tomorrow! Too late today! Do you ask to rebase https://github.com/mrclayman/Ocelot/tree/upstream-header-routing branch? |
Thanks for the assist. 👍 I've put all of my changes into the |
Comparing ThreeMammals:develop...mrclayman:upstream-header-routing-2023 · ThreeMammals/Ocelot Have you done rebasing or just copied the files into this branch? |
What I did was create a new branch based on the current state of |
I think the issue is the line endings. I mostly work in Linux and use system-dependent line ending setting in Rider. I'll see if switching to Windows-style LE solves this problem. EDIT: Didn't help much. What kind of editor settings do you guys usually use? |
Absolutely right! In develop branch line endings settings are: In feature branch the settings are: So, it seems you've overridden Line Endings settings somehow, probably manually... Don't do that now and in future! I have a lack of management rights to provide complete git setup for this problem. Other approaches like |
Well, actually your .editorconfig enforces LF endings, which is what Rider respects and then enforces on save. Seems like |
Okay, I have created a brand new PR #1684 . Take a look at it and let me know. The diffs are now much more workable. I am wondering about the support for placeholders that some people voiced their interest in us supporting. I might look into it if it's still worth the hassle. The unit tests pass but I will try to find the time to thoroughly test the changes once more over the upcoming weekend so please hold off on merging if you otherwise find the changes acceptable. |
@mrclayman commented on July 28:
A-ha! |
@mrclayman commented on July 28: Congrats! 🎉
No worries! I have no right to merge. 🤣 Tom has the right, only. Please write to PR discussion. I don't want to update this thread anymore... |
Duplicate of #1684 |
Closes #360
Addition of support for request re-routing based also on upstream header configuration as per issues #360 and #624
Proposed Changes
Downstream URL placeholder replacement mentioned in issue #360 is not yet supported although I do have plans to add support for that as well.