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-2311 fix default values being returned instead of cached data #451

Merged
merged 10 commits into from
Jun 23, 2023

Conversation

andresilveirah
Copy link
Member

This PR fixes an issue that caused the SDK to return default values for user data before onConsentReady was called.

When setting/getting SPGDPRConsent to the local storage the .applies attribute was lost because it was not part of the coding keys.
When setting/getting SPCCPAConsent to the local storage the .applies attribute was lost because it was not part of the coding keys.
@andresilveirah andresilveirah marked this pull request as ready for review June 21, 2023 12:42
import Nimble
import Quick

// swiftlint:disable force_try force_unwrapping
Copy link
Collaborator

Choose a reason for hiding this comment

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

ayy turning off a switlint is a cheating ;)

@Nevazhnovu
Copy link
Collaborator

@andresilveirah you received a like 👍 for the amount of tests introduced! Have you been able to fix that flaky one?

@andresilveirah
Copy link
Member Author

@Nevazhnovu I fixed that JSON parsing one, but it seems some UI tests fail intermittently on GH. Fortunately (or unfortunately?) they pass locally.

@andresilveirah andresilveirah merged commit 690b8d7 into develop Jun 23, 2023
5 of 6 checks passed
@andresilveirah andresilveirah deleted the DIA-2311_cached_data_default_values branch June 23, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants