-
Notifications
You must be signed in to change notification settings - Fork 302
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
Generic correct merging of local params #939
Conversation
Codecov Report
@@ Coverage Diff @@
## master #939 +/- ##
==========================================
+ Coverage 92.60% 92.62% +0.01%
==========================================
Files 334 334
Lines 8223 8243 +20
==========================================
+ Hits 7615 7635 +20
Misses 608 608
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch looks good to me.
@wickedOne @thomascorthals Should I merge the PR as it is or should we wait for another review? |
@mkalkbrenner I still had to remove Noticed that booleans weren't yet converted to |
I took the idea from #937 and applied it to
AbstractRequestBuilder::renderLocalParams()
instead. That should catch all cases where a user puts local params in a query and we try to add more in our code.I hit a snag with converting code that uses
LocalParameters::render()
though and I would like feedback from @wickedOne. The way parameters are stored and rendered withinLocalParameters
isn't compatible with the key => value arrayrenderLocalParams()
expects. I have included a kludge to parse them into such an array for now as a proof-of-concept. It works as expected: all tests pass and the output from the examples is identical.Would it be ok to remove
LocalParameters::render()
completely? Or does it add something that I'm missing?Also added array support to
Helper::qparser()
so it handles['excludeTags' => ['tag1', 'tag2']]
the same way asAbstractRequestBuilder::renderLocalParams()
does.