Commit 398f35c
committed
fix(web,cli): use defaults.Set instead of hand-setting RunJob.Delete
Per review on #745: reuse the codebase's existing struct-tag-default
convention (creasty/defaults, already used in registerAllJobs) instead
of hand-setting Delete = "true". This also fixes the sibling gaps of
the same bug class for API-created and persisted run jobs: Pull
(default:"true", was silently false) and HistoryLimit (default:"10",
was 0, unbounded run history). Future-proof: defaults.Set only fills
zero values, so an explicit false survives if delete is ever exposed
in jobRequest/persist.Job.
Signed-off-by: Matheus Amendola <matheusamendolaa@gmail.com>1 parent 194e7dc commit 398f35c
2 files changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
609 | 610 | | |
610 | 611 | | |
611 | 612 | | |
| 613 | + | |
| 614 | + | |
612 | 615 | | |
613 | 616 | | |
614 | 617 | | |
615 | 618 | | |
616 | 619 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | 620 | | |
622 | 621 | | |
623 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| 758 | + | |
| 759 | + | |
757 | 760 | | |
758 | 761 | | |
759 | 762 | | |
760 | 763 | | |
761 | 764 | | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | 765 | | |
769 | 766 | | |
770 | 767 | | |
| |||
0 commit comments