Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIA-2193 generate USPString client side #448

Merged
merged 6 commits into from
Jun 6, 2023

Conversation

andresilveirah
Copy link
Member

@andresilveirah andresilveirah commented Jun 6, 2023

The SDKs use to rely on the uspstring returned by the endpoints. However, the uspstring is dependent on ccpa.applies and there are cases in which ccpa.applies changes and the SDK doesn't necessarily need to call the endpoints that return uspstring.

With this PR, the SDK is now generating the uspstring with the data it has locally. If ccpa.applies changes, even if the SDK doesn't receive a new uspstring, it'll now be able to reflect the correct uspstring by generating it on the fly.

@andresilveirah andresilveirah marked this pull request as ready for review June 6, 2023 12:22
@@ -4,6 +4,7 @@
//
// Created by Andre Herculano on 08.02.21.
//
// swiftlint:disable line_length
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you checked if it is possible to remove this ignore-linter line and fix the issue itself? Usually, line length is easy to fix.

@Nevazhnovu
Copy link
Collaborator

@andresilveirah I would expect to see a little bit more unit tests for this feature ✌️

@andresilveirah
Copy link
Member Author

@Nevazhnovu just bringing the convo from slack here:
regarding tests, we have the tests in place already, what we changed in this PR is the internals of how the CCPA string works, but the user should be affected in the end (thus, no new tests).

@Nevazhnovu Nevazhnovu self-requested a review June 6, 2023 14:40
@andresilveirah andresilveirah merged commit 257e1d9 into develop Jun 6, 2023
6 checks passed
@andresilveirah andresilveirah deleted the DIA-2193_change_CCPA_string_if_not_applies branch June 6, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants