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

Change feature flag names to represent headers set at the CDN #1398

Merged
merged 1 commit into from
Jun 28, 2019

Conversation

karlbaker02
Copy link
Contributor

@karlbaker02 karlbaker02 commented Jun 27, 2019

This PR changes the feature flag names used in FeatureFlagNames to represent headers as we set them at the CDN. This allows us to output response headers for the feature flags and in the Vary header which are consistent with others headers that we set (see below):

Before (first and last headers)
Screen Shot 2019-06-27 at 16 56 44

After (first and last headers)
Screen Shot 2019-06-27 at 16 45 15


Visual regression results:
https://government-frontend-pr-1398.surge.sh/gallery.html

Component guide for this PR:
https://government-frontend-pr-1398.herokuapp.com/component-guide

This commit changes the feature flag names used in `FeatureFlagNames` to represent headers as we set them at the CDN. This allows us to output response headers for the feature flags and in the `Vary` header which are consistent with others headers that we set.
@bilbof
Copy link
Contributor

bilbof commented Jun 28, 2019

It looks like visual regression link is missing screenshots.

Copy link
Contributor

@bilbof bilbof left a comment

Choose a reason for hiding this comment

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

I'm not 100% on the context, but it looks good!

app/models/http_feature_flags.rb Show resolved Hide resolved
@karlbaker02 karlbaker02 merged commit 532c957 into master Jun 28, 2019
@karlbaker02 karlbaker02 deleted the change-vary-header branch June 28, 2019 10:11
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.

3 participants