Skip to content

Commit

Permalink
fix(gatsby): correct opt-in percentage for QUERY_ON_DEMAND and LAZY_I…
Browse files Browse the repository at this point in the history
…MAGES (#28579) (#28622)

(cherry picked from commit c21dac9)

Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
  • Loading branch information
LekoArts and pieh authored Dec 15, 2020
1 parent 6297917 commit 15cf4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby/src/utils/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const activeFlags: Array<IFlag> = [
noCI: true,
testFitness: (): fitnessEnum => {
// Take a 10% of slice of users.
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 100)) {
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 10)) {
let isPluginSharpNewEnoughOrNotInstalled = false
try {
// Try requiring plugin-sharp so we know if it's installed or not.
Expand Down Expand Up @@ -141,7 +141,7 @@ const activeFlags: Array<IFlag> = [
noCI: true,
testFitness: (): fitnessEnum => {
// Take a 10% of slice of users.
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 100)) {
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 10)) {
const semverConstraints = {
// Because of this, this flag will never show up
"gatsby-plugin-sharp": `>=2.10.0`,
Expand Down

0 comments on commit 15cf4a2

Please sign in to comment.