]> 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>
Sat, 18 Apr 2020 10:59:31 +0000 (11:59 +0100)
commitbf2aee679d185f585844d7afecc4145ff3b5b06f
tree710661790f3f4c810c0a3c1cbf8e9ab5bde9cb06
parent965dc6946c77884abe01f76309c75c6b0cbe03ae
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
(cherry picked from commit 4fd7a739bbed62230d4166509929a35f63f6892e)
patchwork/api/bundle.py
patchwork/tests/api/test_bundle.py
releasenotes/notes/issue-357-1bef23dbfda2722d.yaml [new file with mode: 0644]