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: rename incorrect keyword argument to parse_query_string
#449
Conversation
`falconparser` uses `falcon.util.uri.parse_query_string`, but uses an incorrect keyword argument name, `keep_blank_qs_values`. the correct argument name is `keep_blank` see: marshmallow-code#448
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.
Good.
I think it makes sense to maintain compatibility with Falcon 1. Flacon 2 is really recent and backward compat is cheap.
Please also add yourself to AUTHORS.
this commit mostly consists of stylistic changes, for example using `distutils.version.LooseVersion` instead of the raw Falcon version string. other than that, the major change is dealing all Falcon versions greater than 1.X as using the updated keyword arg, and Falcon 1.x versions as using the legacy keyword arg (as opposed to just Falcon 1.x and 2.x).
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.
Great. Just one typo to fix.
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.
One last change I didn't think of before.
Thanks.
If we mean to support both Flacon 1 and 2, we should ensure the tests test both version. @dodumosu if you're not comfortable with modifying CI tests config, we'll do it when we get the time. Is Flacon 1 still maintained? Shall we drop support for it in the next webargs major version ? |
As far as I know, most of the development going on with falcon is now 2.0+. This PR should likely update the setup.py as well since right now it specifies |
What about keeping webargs 5.x Falcon 1.x and dropping Falcon 1.x in webargs 6.0?
|
@sloria, we could
We could publish beta releases along the way. |
@lafrech I'm good with that plan |
Guys, I just merged #420. You may rebase this and drop Falcon 1 (or start from scratch if it is easier), and send another PR to fix Thanks. |
|
@dodumosu @Nateyo are you willing to tackle this? No pressure, just asking. I could rebase the change in this PR when I get the time, but I don't know what @Nateyo has in mind regarding Basically, change setup.py to require falcon>=2 and do all required changes (the two expressed above + others if needed). |
@lafrech Sure, I can work on it this week. I can cherry pick these commits and submit a whole new PR to the dev branch? Would that be easier since you want 5.x to keep Falcon 1 compat? |
Great. Thanks @Nateyo. Further dev on webargs 5 will take place in branch |
Superseded by #459. |
falconparser
usesfalcon.util.uri.parse_query_string
, but usesan incorrect keyword argument name,
keep_blank_qs_values
. the correctargument name is
keep_blank
see: #448