Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
134 stars 52 forks source link

[results/js2023/all_tools_experience] runQuery Issue: Float cannot represent non numeric value: range_10_12 #396

Closed makandrr closed 5 months ago

makandrr commented 5 months ago

Edition ID

js2023

Block ID

all_tools_experience

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "grid",
    "queryOnLoad": false,
    "cutoff": 0,
    "cutoffType": "percent",
    "limit": 0,
    "mergeOtherBuckets": false,
    "preventQuery": false
  },
  "filters": [
    {
      "year": 2023,
      "conditions": [
        {
          "fieldId": "years_of_experience",
          "sectionId": "user_info",
          "operator": "eq",
          "value": "range_10_12"
        }
      ]
    }
  ]
}

Query:


query {
    surveys {
    state_of_js {
        js2023 {
        libraries {

        all_tools_experience_1: _items {
            id
            entity {
    name
    nameHtml
    nameClean
    alias
    description
    descriptionHtml
    descriptionClean
    id
    entityType
    example {
      label
      language
      code
      codeHighlighted
    }
    avatar {
      url
    }
    homepage {
      url
    }
    youtube {
      url
    }
    twitter {
      url
    }
    twitch {
      url
    }
    rss {
      url
    }
    blog {
        url
    }
    mastodon {
        url
    }
    github {
        url
    }
    npm {
        url
    }
    mdn {
        url
    }
    caniuse {
        url
    }
    resources {
        url
        title
    }
}

  comments {
    currentEdition {
      count
    }
  }

            responses(facet: _sentiment, filters: {user_info__years_of_experience:{eq:range_10_12}}, parameters: {cutoffPercent:0,facetCutoffPercent:0,limit:0}) {
            currentEdition {

                completion {
                    count
                    percentageSurvey
                    total
                }
                average
                percentiles {
                    p50
                }

    ratios {
      awareness
      interest
      usage
      retention
      positivity
    }

                buckets {
                    count
                    id
                    percentageQuestion
                    percentageSurvey
                    hasInsufficientData
                    entity {
    name
    nameHtml
    nameClean
    alias
    description
    descriptionHtml
    descriptionClean
    id
    entityType
    example {
      label
      language
      code
      codeHighlighted
    }
    avatar {
      url
    }
    homepage {
      url
    }
    youtube {
      url
    }
    twitter {
      url
    }
    twitch {
      url
    }
    rss {
      url
    }
    blog {
        url
    }
    mastodon {
        url
    }
    github {
        url
    }
    npm {
        url
    }
    mdn {
        url
    }
    caniuse {
        url
    }
    resources {
        url
        title
    }
}
                    averageByFacet

    percentilesByFacet {
        p0
        p10
        p25
        p50
        p75
        p90
        p100
    }

    facetBuckets {
        id
        count
        percentageBucket
        percentageQuestion
        hasInsufficientData
        entity {
    name
    nameHtml
    nameClean
    alias
    description
    descriptionHtml
    descriptionClean
    id
    entityType
    example {
      label
      language
      code
      codeHighlighted
    }
    avatar {
      url
    }
    homepage {
      url
    }
    youtube {
      url
    }
    twitter {
      url
    }
    twitch {
      url
    }
    rss {
      url
    }
    blog {
        url
    }
    mastodon {
        url
    }
    github {
        url
    }
    npm {
        url
    }
    mdn {
        url
    }
    caniuse {
        url
    }
    resources {
        url
        title
    }
}
        token {
    id
    parentId
}
    }

                }
            }
            }
        }
        }
        }
    }
    }
}

Location

https://2023.stateofjs.com/en-US/libraries/

Timestamp

Tue Jun 25 2024 10:38:20 GMT+0300 (Moscow Standard Time)

Error:

  {
  "message": "Float cannot represent non numeric value: range_10_12",
  "locations": [
    {
      "line": 74,
      "column": 87
    }
  ],
  "extensions": {
    "code": "GRAPHQL_VALIDATION_FAILED"
  }
}
SachaG commented 5 months ago

This happened because the years_of_experience question now asks for a number, instead of letting respondents pick ranges from a list. So the filter options became invalid. Currently deploying a fix.