Skip to content

Adding feature flag for the CPA compliance project - #51195

Merged
daynew merged 2 commits into
stagingfrom
p20-99-create-cpa-feature-flag
Apr 7, 2023
Merged

Adding feature flag for the CPA compliance project#51195
daynew merged 2 commits into
stagingfrom
p20-99-create-cpa-feature-flag

Conversation

@daynew

@daynew daynew commented Apr 7, 2023

Copy link
Copy Markdown
Member

Adds a helper method cpa_experience which returns the current phase of our Colorado Privacy Act (CPA) compliance. It also adds support for query string and cookie overrides so we can manually test the different phases before going live.

Links

Testing story

  • Unit tests

@daynew
daynew requested a review from wilkie April 7, 2023 04:45
Comment thread lib/cdo/cpa.rb
# @param schedule [Map] A map of the CPA phases to dates. Example:
# {
# “new_user_lockout”: “2023-07-01T00:00:00Z”,
# “all_user_lockout”: “2024-07-01T00:00:00Z”

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

something ate the whitespace here I think, if that bothers you at all

@wilkie wilkie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm! I appreciate how thorough the documentation here is. I didn't consider that an experiment value could be a dictionary.

Thanks for doing this. I'll build off of it as needed.

@daynew
daynew merged commit 70df7a1 into staging Apr 7, 2023
@daynew
daynew deleted the p20-99-create-cpa-feature-flag branch April 7, 2023 20:37
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