Devographics / Devographics/Monorepo

[results/js2023/yearly_salary] runQuery Issue: Float cannot represent non numeric value: range_7_9

Open
#397 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
178
Forks
55
Avg merge
1m
Merged PRs (30d)
2

Description

### Edition ID

```
js2023
```

### Block ID

```
yearly_salary
```

### Filters:

```
{
"options": {
"showDefaultSeries": false,
"enableYearSelect": false,
"mode": "grid",
"queryOnLoad": false,
"cutoff": 1,
"cutoffType": "percent",
"limit": 20,
"mergeOtherBuckets": false,
"preventQuery": false
},
"filters": [
{
"year": 2023,
"conditions": [
{
"fieldId": "country",
"sectionId": "user_info",
"operator": "eq",
"value": "GBR"
},
{
"fieldId": "years_of_experience",
"sectionId": "user_info",
"operator": "eq",
"value": "range_7_9"
}
]
}
]
}
```

### Query:

```

query {
surveys {
state_of_js {
js2023 {
user_info {

yearly_salary_1: yearly_salary {
id


responses(filters: {user_info__country:{eq:GBR},user_info__years_of_experience:{eq:range_7_9}}, parameters: {showNoAnswer:true,mergeOtherBuckets:false,cutoffPercent:1,facetCutoffPercent:1,limit:20}) {
currentEdition {

completion {
count
percentageSurvey
total
}
average
percentiles {
p50
}

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
}
}




}
}
}
}
}
}
}
}
}

```

### Location

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

### Timestamp

Tue Jun 25 2024 18:21:24 GMT+0100 (British Summer Time)

### Error:

```
{
"message": "Float cannot represent non numeric value: range_7_9",
"locations": [
{
"line": 12,
"column": 96
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the runQuery request shown in the issue for the js2023 yearly_salary block, using the country and years_of_experience filters. Trace the GraphQL validation of the range_7_9 value and determine the intended filter type; done means the reported query completes without the Float validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.