Devographics / Devographics/Monorepo

[results/css2024/css_frameworks] Invalid Enum Value in "StateOfCssYearsOfExperienceID": "range_1_3" Not Recognized

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

Description

### Edition ID

```
css2024
```

### Block ID

```
css_frameworks
```

### Filters:

```
{
"options": {
"showDefaultSeries": false,
"enableYearSelect": false,
"mode": "grid",
"queryOnLoad": false,
"cutoff": 10,
"cutoffType": "count",
"limit": 20,
"mergeOtherBuckets": false,
"preventQuery": false
},
"filters": [
{
"year": 2024,
"conditions": [
{
"fieldId": "years_of_experience",
"sectionId": "user_info",
"operator": "nin",
"value": [
"range_1_3",
"range_4_6"
]
}
]
}
]
}
```

### Query:

```

query {
surveys {
state_of_css {
css2024 {
other_tools {

css_frameworks_1: css_frameworks {
id


combined(filters: {user_info__years_of_experience:{nin:[range_1_3,range_4_6]}}, parameters: {showNoAnswer:true,cutoff:10,limit:20,mergeOtherBuckets:true,facetCutoff:10}) {
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
}
}



groupedBuckets {
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://2024.stateofcss.com/en-US/other-tools/#css_frameworks

### Timestamp

Thu Nov 07 2024 12:23:10 GMT-0300 (Uruguay Standard Time)

### Error:

```
{
"message": "Value \"range_1_3\" does not exist in \"StateOfCssYearsOfExperienceID\" enum. Did you mean the enum value \"range_0_4\", \"range_5_9\", \"range_10_14\", \"range_15_19\", or \"range_20_24\"?",
"locations": [
{
"line": 12,
"column": 69
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the reported State of CSS URL and inspect how the css_frameworks query builds the years_of_experience filter. Compare the filter values with the StateOfCssYearsOfExperienceID enum exposed by GraphQL. Done means the reported query no longer fails validation and the intended experience filter works.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.