Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generic consent management (#4056)
* feat: add support for generic consent management * fix: types and consent management data in utilities * refactor: use types * fix: syntax issues * fix: use make * fix: all syntax issues * fix: formatting * test: use correct data type * chore: fix formatting * fix: field types * test: correct test data * fix: field extraction * test: add additional test case * test: add more scenarios for legacy consent management * chore: fix formatting * fix: conditional check Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> * fix: conditional check Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> * refactor: use slices utility method Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> * fix: handle undefined destination id Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> * refactor: move consent management code to a separate file * chore: empty commit * fix: consent config resolution * test: add test cases for generic consent management * test: fix assertion values in test cases * test: fix expected value * refactor: remove unnecessary type Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> * refactor: add inline logic Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> * refactor: remove unwanted function Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> * test: add unit tests for consentmanagementfilter * chore: format files * test: add more unit tests for consentmanagementfilter * chore: merge latest changes from master * refactor: delete consentmanagementfilter package * fix: test script * chore: empty commit * fix: test script * refactor: update gcm logic and test suite * refactor: update method names * test: shuffle tests * test: fix expected value * test: fix expected value * test: fix test suites * test: add more test cases for coverage * test: fix input and expected data * test: fix input and expected data * chore: skip a test case * test: fix issues with test script * chore: fix formatting * refactor: rename variables and add documentation * refactor: add logger statements Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: add logger statements for debugging Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: an edge case in GetKetchConsentCategories Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update processor/consent.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: syntax issue * fix: syntax issue * fix: logger statements * chore: fix lint issue * fix: do not expose methods unnecessarily * fix: idomatic capitalization * chore: add comment to clarify * Update processor/consent.go Co-authored-by: Akash Chetty <achetty.iitr@gmail.com> * fix: idomatic capitalization * refactor: return early * fix: ignore allowedConsentIds --------- Co-authored-by: Rohith BCS <rohith.bcs@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Akash Chetty <achetty.iitr@gmail.com>
- Loading branch information