openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
172 stars 65 forks source link

Filters need testing around item counts #4449

Open rhb123 opened 2 weeks ago

rhb123 commented 2 weeks ago

On Architectural Histories journal there are lots of correctly tagged reviews but the filter now appears to only recognise one when selected. This is a recent issue as this worked fine previously, if it might be possible to get a fix please? Thank you!

Spotted in JW version 1.7.0 at https://journal.eahn.org/articles/?order_by=-date_published&page=1&paginate_by=25&date_published__date__gte=&date_published__date__lte=&section__pk=300

image

mauromsl commented 2 weeks ago

closed by #4453

mauromsl commented 2 weeks ago

I have to reopen this issue, it is still bugged: image

https://journal.eahn.org/articles/?order_by=-date_published&page=1&paginate_by=25&date_published__date__gte=&date_published__date__lte=&section__pk=300

For the record: there are 73 articles returned and rendered

joemull commented 2 weeks ago

I put in another fix for this bug that I believe has taken care of the reported bug. The form now does the count of items for each facet choice differently. I tested the effects of this new count on PublishedArticlesListView.

The work is in commit https://github.com/openlibhums/janeway/commit/f80abbfddcaebeb64763ffafdaae9d9bbb11abd8, which Mauro merged right before tagging v1.7.0 because it was needed urgently for the release cycle.

However I'd like to do a bit more work on this issue to make sure the bug is gone in other views:

See also