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

fix(TDP-1777): Make analytics article_flag data lower case #2916

Merged
merged 3 commits into from
Apr 19, 2022

Conversation

bibicollins1
Copy link
Contributor

@bibicollins1 bibicollins1 commented Apr 19, 2022

The value for article_flag if a live or breaking article was coming through as uppercase. This PR changes it to lower case.
TDP-1777

@bibicollins1 bibicollins1 merged commit 5c4f49a into master Apr 19, 2022
@bibicollins1 bibicollins1 deleted the fix/tdp-1777-article_flag-to-lower-case branch April 19, 2022 10:31
article_flag: getIsLiveOrBreakingFlag(flags) || "no flag",
article_flag: getIsLiveOrBreakingFlag(flags)
? getIsLiveOrBreakingFlag(flags).toLowerCase()
: "no flag",
article_template_name: getIsLiveOrBreakingFlag(flags)
Copy link
Contributor

Choose a reason for hiding this comment

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

We are now calling getIsLiveOrBreakingFlag three time in this file. We should put this into a const before the return statement.

const isLiveOrBreaking = getIsLiveOrBreakingFlag(flags);

This was referenced Apr 15, 2024
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.

None yet

3 participants