]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Allow update of bundle without patches
authorStephen Finucane <stephen@that.guru>
Fri, 17 Apr 2020 22:07:27 +0000 (23:07 +0100)
committerStephen Finucane <stephen@that.guru>
Fri, 17 Apr 2020 23:07:15 +0000 (00:07 +0100)
commit4fd7a739bbed62230d4166509929a35f63f6892e
treef07700b0a94a0e1211795304a83fb89bb109f92a
parentd08b6c72964898c9997a62e4ab6a721f166a56ca
REST: Allow update of bundle without patches

Presently, when updating a patch we assume that patches are provided.
This isn't necessary - you might just want to make it public - and isn't
enforced by the API itself. However, because we make this assumption, we
see a HTTP 500. Resolve the issue and add tests to prevent a regression.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Resolves: #357
patchwork/api/bundle.py
patchwork/tests/api/test_bundle.py
releasenotes/notes/issue-357-1bef23dbfda2722d.yaml [new file with mode: 0644]