~~Introduces optional "waivers" POST parameter for "waivers/" which allows to create multiple waivers - value should be list of dicts.~~
To create multiple waivers, POST list to "waivers/" instead of single waiver ([{...}, ...] instead of {...}).
[{...}, ...]
{...}
Fixes #98
/cc @bowlofeggs - this is for you. :)
Oops, the commit message is wrong, there is no "waivers" parameter (that was my original plan). You only need to POST list of waivers ([{...}, ...] instead of {...}).
Let me fix the commit message.
rebased onto e2e83c853edde9564eee185e796b919f56624f72
:+1:, verified with Jenkins! Free to merge.
Hmm, this breaks functional tests in greenwave. Need to figure out why.
rebased onto 27ba71d97cc02bcd1cc1a6db8c24d1042e52908c
OK, the problem was session.nested_begin() which didn't work well. I replaced it with session.add_all() and session.commit().
session.nested_begin()
session.add_all()
session.commit()
:+1:
Pull-Request has been merged by lholecek
~~Introduces optional "waivers" POST parameter for "waivers/" which allows
to create multiple waivers - value should be list of dicts.~~
To create multiple waivers, POST list to "waivers/" instead of single waiver (
[{...}, ...]instead of{...}).Fixes #98