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

Filters need testing around item counts #4449

Open
rhb123 opened this issue Oct 8, 2024 · 3 comments · Fixed by #4453
Open

Filters need testing around item counts #4449

rhb123 opened this issue Oct 8, 2024 · 3 comments · Fixed by #4453
Labels
bug Something's not working

Comments

@rhb123
Copy link
Collaborator

rhb123 commented Oct 8, 2024

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
Copy link
Member

closed by #4453

@mauromsl mauromsl reopened this Oct 10, 2024
@mauromsl
Copy link
Member

mauromsl commented Oct 10, 2024

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
Copy link
Member

joemull commented Oct 14, 2024

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 f80abbf, 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:

  • add view tests to the other places that inherit GenericFacetedListView to make sure the foreign_key facets they create are treated the same by the CBVFacetForm as the PublishedArticlesListView
  • add view tests to check the counts created by CBVFacetForm for charfield_with_choices facets, and fix if needed

See also

@joemull joemull removed their assignment Oct 14, 2024
@joemull joemull removed this from the v1.7.0 milestone Oct 14, 2024
@joemull joemull changed the title Filters not reflecting the true number of article types Filters need testing around item counts Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants