-
Notifications
You must be signed in to change notification settings - Fork 10.3k
fix(gatsby): Only set auto optin flags if not in config #28627
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(gatsby): Only set auto optin flags if not in config #28627
Conversation
be7525d to
471534e
Compare
…opted in flags list
471534e to
685f8a2
Compare
| if (configFlags[flag.name] !== false && fitness === `OPT_IN`) { | ||
| // if user didn't explicitly set a flag (either true or false) | ||
| // and it qualifies for auto opt-in - add it to optedInFlags | ||
| if (typeof configFlags[flag.name] === `undefined` && fitness === `OPT_IN`) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actual fix
| and your site was automatically choosen as one of them. With your help, we'll then release them to everyone in the next minor release. | ||
| and your site was automatically chosen as one of them. With your help, we'll then release them to everyone in the next minor release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
randomly spoted typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean randomly spotted typo ![]()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahaha, oh the irony xD
d883828 to
f1ed5dc
Compare
f1ed5dc to
e79cb21
Compare
sidharthachatterjee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Thanks 🥧
(cherry picked from commit b81e6bd)
) (cherry picked from commit b81e6bd) Co-authored-by: Michal Piechowiak <[email protected]>
Description
This doesn't change behaviour - this is only to address message that is displayed.
Currently when user explicitly opt-in in config AND site get's picked for auto opt-in we do display message that site was auto opted-in - this is confusing because user already did opt-in manually and we should prefer that over auto opt-in message.