Commit f67ba93
committed
Add validation to reject updates to deprecated domains
UpdateDomain now returns an error when attempting to update a domain
with DEPRECATED status, preventing unintended modifications to
deprecated domains.
Changes:
- Add errDomainDeprecated error constant
- Check domain status before applying updates
- Add test case to verify deprecated domain updates are rejected
Signed-off-by: Diana Zawadzki <[email protected]>1 parent 1ec9f3b commit f67ba93
4 files changed
+45
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
429 | 433 | | |
430 | 434 | | |
431 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2851 | 2851 | | |
2852 | 2852 | | |
2853 | 2853 | | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
2854 | 2891 | | |
2855 | 2892 | | |
2856 | 2893 | | |
| |||
- go/proto/admin/v1/service.pb.yarpc.go+10-4
- go/proto/api/v1/service_domain.pb.go+145-91
- go/proto/api/v1/service_domain.pb.yarpc.go+101-94
- go/proto/api/v1/service_meta.pb.yarpc.go+10-4
- go/proto/api/v1/service_visibility.pb.yarpc.go+10-4
- go/proto/api/v1/service_worker.pb.yarpc.go+10-4
- go/proto/api/v1/service_workflow.pb.yarpc.go+10-4
- proto/uber/cadence/api/v1/service_domain.proto+1
- thrift/shared.thrift+1
0 commit comments