Skip to content

[Testathon] Community/Collection item counts and author facets not updated after deletion #5522

@Kasinhou

Description

@Kasinhou

Describe the bug

During testing T081, this bug was discovered.
Counts in Community List are not updated after deleting an item or a collection (including all its items).

Image

Similarly, the Author facet in browse/search retains entries from deleted items even though clicking them returns no results.

Image

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to an existing sub-community (or create one).
  2. Create a new collection inside it.
  3. Create at least one item in that collection with an author.
Image
  1. Delete the collection (which also removes its items).
  2. Navigate to the Community List and observe the sub-community badge, it still shows the old count instead of 0.

Expected behavior

After deleting a collection and all of its items, the parent community/sub-community badge count should update to reflect the correct number of remaining items/collections.

Related

Possible relevant change: Batch deletion process introduced in 10 #4570

Metadata

Metadata

Assignees

Labels

affects: mainIssue impacts "main" (latest release).bugclaimed: 4Science4Science team is working on this issue & will contribute backcomponent: CollectionCollection display or editingcomponent: CommunityCommunity display or editingtestathonReported by a tester during Community TestathonuxUser Experience related works

Type

Projects

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions