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-2061] childPmId is saved to UserDefaults when it comes in /meta-data response #444

Merged
merged 10 commits into from
Jun 1, 2023

Conversation

Nevazhnovu
Copy link
Collaborator

@Nevazhnovu Nevazhnovu commented May 24, 2023

  • childPmId no longer comes from messages
  • save childPmId which comes from /meta-data to UserDefaults
  • resend childPmId
  • ...
  • Profit!

@Nevazhnovu Nevazhnovu requested a review from andresilveirah May 24, 2023 12:40
@Nevazhnovu Nevazhnovu marked this pull request as ready for review May 29, 2023 10:23
@Nevazhnovu
Copy link
Collaborator Author

@andresilveirah this PR is ready for review!

@andresilveirah
Copy link
Member

@Nevazhnovu I believe this PR doesn't contain enough tests to cover this feature. Here you're only testing that /meta-data echoes groupPmId into its response. In the end, we're interesting in knowing the feature works as a whole, not only on that particular request.

@@ -196,6 +196,28 @@ class UnmockedSourcepointClientSpec: QuickSpec {
}
}

describe("meta-data_groupPmId") {
it("Check if groupPmId echo") {
Copy link
Member

Choose a reason for hiding this comment

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

Same goes here, since we already have a describe("meta-data") you don't need to duplicate it, you can simply add the new it("... to the existing describe a few lines above.

@@ -42,8 +42,45 @@ class SPClientCoordinatorSpec: QuickSpec {
)
}

describe("selectPrivacyManagerId") {
Copy link
Member

Choose a reason for hiding this comment

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

@Nevazhnovu I believe this test doesn't belong to SPClientCoordinatorSpec, but rather SPConsentManagerSpec (feel free to create the file if that doesn't exist yet).

@Nevazhnovu Nevazhnovu merged commit 9fc5b7a into develop Jun 1, 2023
@Nevazhnovu Nevazhnovu deleted the DIA-2061_add_support_to_group_pm branch June 1, 2023 14:17
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