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

Warn Publishers when removing sharing with DSP during recommendations flow #223

Conversation

alex-yau-ttd
Copy link
Contributor

@alex-yau-ttd alex-yau-ttd commented Nov 17, 2023

We had previously implemented this banner once the participant had already completed the recommendations flow, but this PR implements it during the recommendations flow.

I also fixed two bugs which I noticed during development:

Banner shows at the wrong time

Before
Note the participant type changes to "DSP" after completing the recommendations. Hence why the warning does not show when unchecking DSP after completing recommendations, because the participant does not appear to be a Publisher.

image

After
image

I've also added unit tests for publisherHasUncheckedDSP

Completing the recommendations changes the participant types

Before

chrome_2QjTOtExdk.mp4

After

chrome_LzwBN46xDJ.mp4

Completing recommendations used to re-populate the local participant context with the types from the portal, rather than the source of truth types from admin. This fix just refetches the participant with the source of truth types, instead of just relying on the portal db.
@alex-yau-ttd alex-yau-ttd merged commit 1f50c0f into main Nov 20, 2023
2 checks passed
@alex-yau-ttd alex-yau-ttd deleted the ajy-UID2-1936-Warn-pubs-against-bulk-removing-dsps-during-recommendations branch November 20, 2023 00:14
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