Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media endpoint currently returns an empty list for filtered and merged datasets #2375

Closed
FrankApiyo opened this issue Feb 16, 2023 · 0 comments · Fixed by #2367
Closed

Media endpoint currently returns an empty list for filtered and merged datasets #2375

FrankApiyo opened this issue Feb 16, 2023 · 0 comments · Fixed by #2367
Assignees
Labels

Comments

@FrankApiyo
Copy link
Member

Environmental Information

  • Onadata version: v3.8.3

Problem description

  • A request to the media endpoint (for merged datasets and filtered datasets) incorrectly yields an empty list for datasets with image attachments
  • Example:
    $ curl -H "Authorization: TempToken <your temp token ;-)>" https://stage-api.ona.io/api/v1/media.json?xform=323&type=image&page_size=10&page=1
    $ []

Expected behavior

Requests to the media endpoint for merged datasets and filtered datasets that have media file attachments should yield the attachments

Steps to reproduce the behavior

  • Create a merged dataset or filtered dataset that contains media files
  • Make a request to the media/attachments endpoint to fetch the media files it contains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant