Commit a91b2b0
authored
chore: remove response rules (#6612)
🔒 Scanned for secrets using gitleaks 8.29.1
# Description
This PR removes the legacy `DestinationDefinitionT.ResponseRules` /
router destination response-rules handling. We already support a
transformer proxy, so this path is unused and adds unnecessary
configuration and code complexity.
Changes:
- Removed `ResponseRules` from backend-config destination definition
types and eliminated all references.
- Removed the router destination response handler plumbing (and deleted
the legacy handler + its tests).
- Updated affected tests and JSON/YAML fixtures/templates to drop
`responseRules`.
Related Integrations Config cleanup:
rudderlabs/rudder-integrations-config#2310
## Linear Ticket
- Resolves
https://linear.app/rudderstack/issue/INT-5687/cleanup-responserules
## Security
- [x] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Removes the unused destination response-rules path and simplifies
routing.
>
> - Drops `responseRules` from backend config: removes
`DestinationDefinitionT.ResponseRules` and all references
> - Deletes legacy router response handler
(`router/destinationReponseHandler.go` and tests) and removes related
wiring from router init/lifecycle and worker response processing
> - Updates affected tests and JSON/YAML fixtures to exclude
`responseRules`; adjusts structs and test payloads accordingly
> - Minor signature/field cleanups (e.g., `prepareRouterJobResponses`),
with corresponding callsites updated
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
71af0d8. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent a80db01 commit a91b2b0
File tree
28 files changed
+23
-330
lines changed- app/cluster
- backend-config
- testdata
- integration_test/docker_test/testdata
- processor
- internal/transformer
- destination_transformer/embedded/warehouse/benchmark
- user_transformer
- testdata
- router
- batchrouter
- testdata
- manager
- testdata
- services
- controlplane
- testdata
- oauth/v2/http
- warehouse/internal/api/testdata
28 files changed
+23
-330
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | 399 | | |
401 | 400 | | |
402 | 401 | | |
| |||
814 | 813 | | |
815 | 814 | | |
816 | 815 | | |
817 | | - | |
818 | 816 | | |
819 | 817 | | |
820 | 818 | | |
| |||
952 | 950 | | |
953 | 951 | | |
954 | 952 | | |
955 | | - | |
956 | 953 | | |
957 | 954 | | |
958 | 955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
457 | 456 | | |
458 | 457 | | |
459 | 458 | | |
460 | | - | |
461 | 459 | | |
462 | 460 | | |
463 | 461 | | |
| |||
533 | 531 | | |
534 | 532 | | |
535 | 533 | | |
536 | | - | |
537 | 534 | | |
538 | 535 | | |
539 | 536 | | |
| |||
615 | 612 | | |
616 | 613 | | |
617 | 614 | | |
618 | | - | |
619 | 615 | | |
620 | 616 | | |
621 | 617 | | |
| |||
684 | 680 | | |
685 | 681 | | |
686 | 682 | | |
687 | | - | |
688 | 683 | | |
689 | 684 | | |
690 | 685 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
789 | | - | |
790 | | - | |
| 788 | + | |
| 789 | + | |
791 | 790 | | |
792 | 791 | | |
793 | 792 | | |
| |||
828 | 827 | | |
829 | 828 | | |
830 | 829 | | |
831 | | - | |
832 | | - | |
833 | | - | |
| 830 | + | |
| 831 | + | |
834 | 832 | | |
835 | 833 | | |
836 | 834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
107 | | - | |
| 105 | + | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
169 | | - | |
170 | | - | |
| 167 | + | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments