GET post/:id is always returning empty completed_stages
for stages that are internal use only
#3674
Labels
Milestone
completed_stages
for stages that are internal use only
#3674
Describe the bug
On the API, when obtaining posts with stages that are marked for internal use only, those stages are never shown as completed.
Where was the bug observed
All current API deployments.
To Reproduce
Steps to reproduce the behavior:
As admin / post manager:
Expected behavior
Internal use stages should appear as complete to
Is there a workaround? What is it.
No
Additional context
Looking at the fixtures we use in the API integration tests, none of the survey stages defined there are marked as internal use only. This would explain why this problem is not making tests fail.
This is what I suspect to be the root of the problem:
platform/src/App/Repository/PostRepository.php
Line 134 in 27920b0
Aha! Link: https://ushahiditeam.aha.io/features/PROD-183
The text was updated successfully, but these errors were encountered: