/learningpaths and /learning_resources?resource_type=learning_path return different results
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 4
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 114
Description
As a logged-in user with permission to edit learning paths:
- http://localhost:8063/api/v1/learningpaths/ returns all paths (published + unpublished)
- http://localhost:8063/api/v1/learning_resource/resource_type=learning_path returns only published paths
I would expect the results to be the same.
For context: It seems most convenient on the frontend to just use the unified API /learning_resource API, which is how I came across this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the authenticated responses from /api/v1/learningpaths/ and /api/v1/learning_resource/resource_type=learning_path, then locate the handlers for both endpoints. Trace how edit permission and published status are applied, and verify that both endpoints return the intended matching set of learning paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100