Skip to content

The @load shouldn't json.load every argument#2294

Merged
JeffreyDevloo merged 2 commits into2.9.xfrom
2.9_json_loading_non_query
May 3, 2019
Merged

The @load shouldn't json.load every argument#2294
JeffreyDevloo merged 2 commits into2.9.xfrom
2.9_json_loading_non_query

Conversation

@JeffreyDevloo
Copy link
Contributor

@JeffreyDevloo JeffreyDevloo commented May 3, 2019

Arguments passed to django are already deserialized

@JeffreyDevloo JeffreyDevloo changed the title The load shouldn't load every argument passed as django stack deseria… The load shouldn't load every argument May 3, 2019
@JeffreyDevloo JeffreyDevloo changed the title The load shouldn't load every argument The @load shouldn't json.load every argument May 3, 2019
for mandatory_vars, optional_vars, new_kwargs in [(function_metadata['load']['mandatory'][:], function_metadata['load']['optional'][:], kwargs),
(validation_mandatory_vars[:], validation_optional_vars[:], validator_kwargs)]:
# Special reserved keywords
if 'version' in mandatory_vars:
Copy link
Contributor

Choose a reason for hiding this comment

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

as this exact functionality is done 4 times, perhaps offload to a tiny function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants