Commit 0385b3b
committed
fix(review): support clearing chat_webhook_url via empty string
- Remove dsl.Format(dsl.FormatURI) from ChatWebhookURLAttribute so that
an empty string passes Goa validation (FormatURI rejected "")
- Change httpsURLPattern to ^$|^https://... to allow the empty-string
clear signal while still requiring HTTPS for actual URLs
- Update preserve/clear guard in UpdateSettings: nil/absent preserves
the existing URL (safe for GET→PUT round-trips); "" explicitly clears
it (sets stored value to nil); a non-empty URL replaces it
- Add comments on all three sanitization sites (create indexer, update
indexer, NATS event old/new snapshots)
- Add TestCommitteeWriterOrchestrator_UpdateSettings_ChatWebhookURLSemantics
covering omit-preserves, empty-string-clears, replace, and nil-stored cases
LFXV2-3094
Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Andres Tobon <andrest2455@gmail.com>1 parent 70ce059 commit 0385b3b
11 files changed
Lines changed: 129 additions & 49 deletions
File tree
- cmd/committee-api/design
- gen
- committee_service
- http
- committee_service
- client
- server
- internal/service
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
1033 | 1035 | | |
1034 | 1036 | | |
1035 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
1036 | 1040 | | |
1037 | | - | |
1038 | | - | |
| 1041 | + | |
1039 | 1042 | | |
1040 | 1043 | | |
1041 | 1044 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4217 | 4217 | | |
4218 | 4218 | | |
4219 | 4219 | | |
4220 | | - | |
| 4220 | + | |
4221 | 4221 | | |
4222 | | - | |
4223 | | - | |
| 4222 | + | |
4224 | 4223 | | |
4225 | 4224 | | |
4226 | 4225 | | |
| |||
4978 | 4977 | | |
4979 | 4978 | | |
4980 | 4979 | | |
4981 | | - | |
| 4980 | + | |
4982 | 4981 | | |
4983 | | - | |
4984 | | - | |
| 4982 | + | |
4985 | 4983 | | |
4986 | 4984 | | |
4987 | 4985 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6890 | 6890 | | |
6891 | 6891 | | |
6892 | 6892 | | |
6893 | | - | |
| 6893 | + | |
6894 | 6894 | | |
6895 | | - | |
6896 | | - | |
| 6895 | + | |
6897 | 6896 | | |
6898 | 6897 | | |
6899 | 6898 | | |
| |||
8255 | 8254 | | |
8256 | 8255 | | |
8257 | 8256 | | |
8258 | | - | |
| 8257 | + | |
8259 | 8258 | | |
8260 | | - | |
8261 | | - | |
| 8259 | + | |
8262 | 8260 | | |
8263 | 8261 | | |
8264 | 8262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
865 | 864 | | |
866 | 865 | | |
| 866 | + | |
| 867 | + | |
867 | 868 | | |
868 | 869 | | |
869 | 870 | | |
| |||
894 | 895 | | |
895 | 896 | | |
896 | 897 | | |
897 | | - | |
| 898 | + | |
898 | 899 | | |
899 | 900 | | |
900 | 901 | | |
| |||
927 | 928 | | |
928 | 929 | | |
929 | 930 | | |
930 | | - | |
| 931 | + | |
931 | 932 | | |
932 | | - | |
| 933 | + | |
933 | 934 | | |
934 | 935 | | |
935 | 936 | | |
| |||
0 commit comments