Skip to content

Commit b464dc7

Browse files
authored
include some project data in challenge queries (#1260)
* include some project data in challenge queries * Revert embedded project object from project listChildren insertProjectJSON replaces a challenge's numeric `parent` with the full project object, which breaks the maproulette-java-client integration tests: ProjectAPI.children deserializes Challenge.parent as a long. GET /project/:id/challenges keeps the scalar parent; exploreChallenges still embeds the project.
1 parent cf96995 commit b464dc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/org/maproulette/controllers/api/ChallengeController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ class ChallengeController @Inject() (
11711171
difficulty = difficulty
11721172
)
11731173

1174-
Ok(Json.toJson(challenges))
1174+
Ok(insertProjectJSON(challenges))
11751175
}
11761176
}
11771177

0 commit comments

Comments
 (0)