oecd-opsi / opsi

Custom theme for OPSI website
0 stars 0 forks source link

Case count on OPSI platform is off #10

Closed jlberryhill closed 5 years ago

jlberryhill commented 5 years ago

The OPSI platform case count says there are 93 cases, but 100 search results. casecount

jlberryhill commented 5 years ago

Looks like the map counts are off as well. There are 2 Portugal cases in the Open Gov platform, but map says 6. Perhaps it is counting cases from both platforms? When I click the country, it takes me to the correct 2 cases.

casecount

conlaccento commented 5 years ago

About the count the problem is with the reviewed status. This status is public, as the published status, so all posts with reviewed status are also considered when retrieving search results. We didn't work on this aspect, but if you could explain me the purpose of reviewed status maybe we can find a simple solution.

I just fixed the issue about the map.

jlberryhill commented 5 years ago

Hi @conlaccento -- the "Reviewed" status is for when we review a case but don't think its ready to be published yet. It's essentially all of the cases that we set aside because they don't meet our submission criteria, or they need more information. Reviewed cases should not count towards the count (only published cases).

conlaccento commented 5 years ago

So can I set the Reviewed status as not public?

jlberryhill commented 5 years ago

Correct -- cases that are in the "Reviewed" status should not be pubic. This status is meant purely for administrative sorting of non-published cases.

conlaccento commented 5 years ago

Perfect, fixed now