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.
Both the /taskCluster endpoint and the /tasks/box/:left/:bottom/:right/:top endpoint should return the same tasks (the format of the data should be different, but the tasks themselves should be the same and the amount of tasks should be the same).
Issue: The two endpoints, when passed the same filtering parameters, would pass back different results.
Solution: Fixed the filtering conditions of these two endpoints:
PUT /taskCluster
PUT /tasks/box/:left/:bottom/:right/:top
More details on the solution:
related: maproulette/maproulette3#2211
/taskCluster endpoint WHERE statement in sql query with the manually added "deleted" related filters:
/tasks/box endpoint WHERE statement in sql query where filters on deleted project and challenges should be present:
/taskCluster endpoint WHERE statement in sql query after change:
/tasks/box endpoint WHERE statement in sql query after change:
The reason why p.enabled is missing from the new
PUT /tasks/box/:left/:bottom/:right/:top
endpoint is because i removed the manually added condition that added it to that specific endpoint. The filter that is supposed to be used is blocked by a condition:projectSearch value is determined by this function:
At the moment this change is necessary for the endpoints outputs to match, but further investigation of why that condition is needed.