]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: patchbot: use checked buttons as reference instead of internal table
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Dec 2023 15:22:04 +0000 (16:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Dec 2023 15:22:04 +0000 (16:22 +0100)
commit896d45201565269f8b870c512e848bee77bec3ca
treeb9395724603f847c411bf1882b6a59283ce56820
parent0a203c1d3f359396e66679991f5c84460fae80e2
DEV: patchbot: use checked buttons as reference instead of internal table

The statuses[] table was pre-filled from the shell code during
initialization based on the evaluation and the buttons pre-checked
accordingly, but upon reload, the checked buttons are preserved and
the statuses reinitialized, leading to a different status and color
on lines that were changed.

In practice we don't need this table and we can directly check each
button's state. This makes sure that displayed state is consistent
with checked buttons and allows to preserve the statuses upon reloads
to benefit from updates. Only the start of the review is reset upon
reload now (this allows to consider latest backport state). Of course,
a full reload (shift-ctrl-R) continues to reset the form.
dev/patchbot/scripts/post-ai.sh