Repository navigation
fix: handle consent management filtering per connection - #5716
Closed
saikumarrs wants to merge 6 commits into
Closed
saikumarrs wants to merge 6 commits into
saikumarrs wants to merge 6 commits into
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5716 +/- ##
==========================================
+ Coverage 77.01% 77.02% +0.01%
==========================================
Files 487 487
Lines 66186 66189 +3
==========================================
+ Hits 50972 50985 +13
+ Misses 12451 12436 -15
- Partials 2763 2768 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
processor/consent.go:106
- [nitpick] Consider using consistent naming for the source identifier (e.g. sourceID instead of sourceId) throughout the codebase to improve readability.
func (proc *Handle) getGCMData(sourceId, destinationID, provider string) GenericConsentManagementProviderData {
processor/consent.go:41
- [nitpick] Update the function comment to document the purpose of the new sourceId parameter, clarifying its role in fetching connection-specific GCM data.
func (proc *Handle) getConsentFilteredDestinations(event types.SingularEventT, sourceId string, destinations []backendconfig.DestinationT) []backendconfig.DestinationT {
processor/consent_test.go:109
- [nitpick] Consider refactoring the repeated inline definition of connectionInfo into a named struct to improve clarity and maintainability within the test suite.
connectionInfo []struct {
saikumarrs
marked this pull request as ready for review
April 10, 2025 15:24
cisse21
approved these changes
Apr 11, 2025
cisse21
deleted the
feature/sdk-3205-fix-consent-management-based-event-filtering-for-cloud-mode
branch
April 11, 2025 11:44
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixed the consent management based event filtering logic for GCM to prepare in-memory maps based on both source and destination ID. This is because the GCM configuration can be specified per source type unlike the legacy OneTrust and Ketch configuration.
I've also updated the test suites to cover these advanced scenarios.
Ideally, we should store the data per source type and destination ID but making it more specific to the connection level shouldn't hurt. Moreover, when these kind of configurations move to the connection settings in the future, it'll be beneficial.
Without these changes, a destination that's connected to more than one source type and has distinct GCM config for each source types will result in incorrect consent based filtering as the last source type overrides all the data in the map for the destination.
Linear Ticket
https://linear.app/rudderstack/issue/SDK-3205/fix-consent-management-based-event-filtering-for-cloud-mode
Security