fix: replace dead v1 curriculum REST API with GraphQL#584
Draft
raisedadead wants to merge 1 commit intofreeCodeCamp:mainfrom
Draft
fix: replace dead v1 curriculum REST API with GraphQL#584raisedadead wants to merge 1 commit intofreeCodeCamp:mainfrom
raisedadead wants to merge 1 commit intofreeCodeCamp:mainfrom
Conversation
The v1 REST API at freecodecamp.org/curriculum-data/v1/ now returns 404 HTML, crashing every page that loads curriculum data. Replace with the GraphQL API at curriculum-db.freecodecamp.org. - Add util/curriculum/fetchCurriculum.js (GraphQL client with cache) - Rewire getAllSuperblockTitlesAndDashedNames to use GraphQL - Rewire getSuperblockTitlesInClassroomByIndex to use GraphQL - Update classes page and all 3 dashboard pages
NewtonLC
requested changes
Mar 20, 2026
| blockObjects { | ||
| dashedName | ||
| name | ||
| order |
Contributor
There was a problem hiding this comment.
The field order does not currently exist in the GraphQL, and it's causing an error when queried. We should add this field to the GraphQL.
CarlyAThomas
requested changes
Mar 20, 2026
Contributor
There was a problem hiding this comment.
Hi @raisedadead —
This PR returns several things that should not be in the list that a teacher can select for a classroom:
- Legacy Certifications are included (responsive-web-design)
- Courses that are parts of other curriculum certifications (basic-html)
- Upcoming Courses (a2-professional-spanish)
To solve this we can either:
- In classroom app, hardcode a list of certifications that should be excluded.
- In the GraphQL API add flags for isLegacy, etc. fields to use for the filtering
Which solution do you prefer? Do you think it is doable to add these flags into the GraphQL API or should we have them hardcoded?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The v1 REST API at freecodecamp.org/curriculum-data/v1/ now returns 404 HTML, crashing every page that loads curriculum data. Replace with the GraphQL API at curriculum-db.freecodecamp.org.