[PR #4810] fix: app_count of dataset is error when apps was deleted #24651

Closed
opened 2026-02-21 20:23:24 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/4810

State: closed
Merged: Yes


Description

When an app is deleted, the statistics of the count of apps associated with the dataset will be incorrect, and the deleted app will also be counted.

Fixes # (issue)

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  1. Create a dataset and upload documents
  2. Create an app and associate it with the dataset
  3. Check that the count of apps associated with the dataset is 1
  4. Delete the dataset and check that the count of apps associated with the dataset is still 1
  5. After repair, check that the count of applications associated with the dataset is 0

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
**Original Pull Request:** https://github.com/langgenius/dify/pull/4810 **State:** closed **Merged:** Yes --- # Description When an app is deleted, the statistics of the count of apps associated with the dataset will be incorrect, and the deleted app will also be counted. Fixes # (issue) ## Type of Change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? 1. Create a dataset and upload documents 2. Create an app and associate it with the dataset 3. Check that the count of apps associated with the dataset is 1 4. Delete the dataset and check that the count of apps associated with the dataset is still 1 5. After repair, check that the count of applications associated with the dataset is 0 # Suggested Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings
yindo added the pull-request label 2026-02-21 20:23:24 -05:00
yindo closed this issue 2026-02-21 20:23:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#24651