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

Multiple param patch #373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AndrewGiddings-at-BankCheck

Suggested fix for issues #360 and #339.
This preserves duplicate request params with names ending in [] (which are needed if the request has multiple free-form Redmine queries), while still removing other duplicates.
(I'm not sure why duplicates are a problem in the first place, but presumably there was some reason for their removal…)

I've added unit tests for the new dedup() function; all the existing URIConfigurator tests still pass, too. I wasn't able to run most of the other unit tests, as they connect to http://dev.taskadapter.com:8097 which isn't reachable, and I don't know of an alternative test server. But these changes are localised and shouldn't affect anything else.
Also, I've tested this in our own application, and confirmed that it fixes the multiple-queries issue, and doesn't seem to break anything else.

Suggested fix for issues taskadapter#360 and taskadapter#339.  Preserves duplicate params with names ending in `[]` (needed for free-form Redmine queries), while still removing others.
Add unit tests for URIConfigurator.dedup().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant