maproulette / maproulette/maproulette-backend
[Bug] /tasks/find endpoint returning 500 error
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 53
- Forks
- 39
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 12
Description
The /tasks/find endpoint returns a 500 "Internal Server Error" when the onlyEnabled param is explicitly set to true, or not set at all (the default is true)
https://maproulette.org/api/v2/tasks/find?parentId=13527&limit=10&page=0&onlyEnabled=true
{"status":"KO","message":"ERROR: column \"enabled\" does not exist\n Position: 265"}
Related question: Does the parentId param accept multiple ids? I'm looking if theres a way to fetch all the tasks for multiple challenges in a single request?
Contributor guide
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 /tasks/find request with onlyEnabled=true and without the parameter, then trace the endpoint implementation that produces the reported missing enabled column error. Done means the endpoint no longer returns 500 for the documented request; the parentId multiple-value question is separate and not defined by this report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100