Skip to content

Bug Fix To Delete Folder On Discard of drafts #112

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

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

yashmeet29
Copy link
Member

There was a bug where if we upload few attachments and before saving the entity, if we were discarding the draft. Folder in SDM was not getting deleted. This was because of DB query we were executing earlier to check if folder needs to be deleted or not. Fixed the DB query and now the folders are also getting cleaned up

List of scenarios tested on cloud:

Create an entity, Upload multiple attachments, Discard drafts. => Success. Entity & all it's attachments are deleted.
Create an entity, Upload multiple attachments, Go back and create another entity and upload few attachments in new entity, Discard drafts => Entity & all it's attachments are deleted along with cleanup from SDM.
Create an entity, Upload multiple attachments, Create, Edit, Upload New attachments, Discard drafts => Success. Newly added attachments are deleted along with cleanup from SDM.
Upload a valid attachment => Success.
Upload multiple valid attachment => Success.
Upload a duplicate attachment => Duplicate error message on UI.
Upload multiple attachments, Rename few of them & Click on create => Success.
Upload multiple attachments, Rename few of them to same name as existing & Click on create => Duplicate warning
Upload multiple attachments, Click on Create, Click on Edit, Rename few of the attachments to valid names => Success.
Upload multiple attachments, Click on Create, Click on Edit, Rename few of the attachments to duplicate names => Duplicate Warning.
Upload multiple attachments of different extensions, Read them => Success. Behaviour is as expected.
Upload multiple attachments of different extensions, Create, Read them => Success. Behaviour is as expected.
Upload multiple attachments, Click on Create, Click on Edit, Delete few attachments, Click on Create => Success.
Create an entity, Upload multiple attachments, Click on Create, Delete Entity. => Success. Entity & all it's attachments are deleted.

@yashmeet29 yashmeet29 merged commit 4308a39 into develop Mar 13, 2025
8 of 9 checks passed
@yashmeet29 yashmeet29 deleted the BugFixToDleeteFolderOnDiscard branch March 13, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants