Allow extra_data__field_name params in update and create
Review Request #7669 — Created Oct. 1, 2015 and submitted — Latest diff uploaded
The resource
create
andupdate
methods now accept keyword arguments
of the formextra_data__field_name
which are rewritten to
extra_data.field_name
so that Review Board can understand them. This
occurs becauseextra_data.field_name
cannot be used as a keyword
argument, so all extra data field updates have to built into a dict,
which must then be splatted into the appropriate method.Unit tests have been updated that cover both methods.
Ran unit tests.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
rbtools/api/resource.py |
---|
rbtools/api/tests.py |
---|