validationResults endpoint issue

Hello everyone,

I have noticed an issue on the api/validationResults endpoint. Even if I change the page number I still get the same result.

dhis-dev-url/api/validationResults.json?page=1&pageSize=50&order=id:asc

and

dhis-dev-url/api/validationResults.json?page=2&pageSize=50&order=id:asc

produce the same result.

I have the same behavior with dhis2 play.

Steps to reproduce the issue :

  1. Open data quality app in dhis2 play (2.40)
  2. Use the Validation Rule Analysis
  3. Select Sierra Leone
  4. Leave the default period
  5. Check “Persist new results”
  6. Click on “Validate”
  7. Check the first element returned by the two following requests :

https://play.im.dhis2.org/dev-2-40/api/validationResults.json?pageSize=20&page=1

https://play.im.dhis2.org/dev-2-40/api/validationResults.json?pageSize=20&page=2

Best Regards.

1 Like

Hi @didate

Thank you for the detailed post with the clear steps to reproduce the issue.

Since the objects are almost identical at first glance, the easiest way to find out that we’re getting the same result is to decrease the pageSize to 1 and then navigate using page.

You’ll see that the OU is the same no matter what page number you use. Would you like to create a Jira bug issue in (jira.dhis2.org)? I’ll make sure to triage this to the team.

Thanks!

Hello @Gassim

Thank you for your message.

I’ve opened the ticket Jira.

Regards.

1 Like

Hi @didate

Just an update on this issue, it has been fixed (backported). Please see the update in the Jira ticket you created: Jira

If you update and still face this issue, please reply here.

Thanks!

Hello @Gassim

I’ve tested it and it works as expected.

I Just want to say thanks to you all. You guys are doing a really good job.

Keep it up.