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

fix: empty and restore over 1,000 items #12751

Merged
merged 1 commit into from
Sep 18, 2024
Merged

fix: empty and restore over 1,000 items #12751

merged 1 commit into from
Sep 18, 2024

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Sep 17, 2024

Fixes #11057

Also correctly reports the trash restore/empty count, which was previously only the number of assets loaded in the UI.

Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jrasm91 jrasm91 force-pushed the fix/trash branch 2 times, most recently from e6870d0 to 69473dc Compare September 17, 2024 19:36
@jrasm91 jrasm91 marked this pull request as ready for review September 17, 2024 19:39
@zackpollard
Copy link
Contributor

LGTM

@jrasm91 jrasm91 merged commit 6740c67 into main Sep 18, 2024
35 checks passed
@jrasm91 jrasm91 deleted the fix/trash branch September 18, 2024 13:57
Comment on lines +185 to +190
export enum AssetStatus {
ACTIVE = 'active',
TRASHED = 'trashed',
DELETED = 'deleted',
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. Why do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To immediately remove assets from the trash can while they are being deleted in the background.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, I wouldn't have added a status column just for that. You could have had a websocket event for "deletion in progress" with a spinner or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty Recycle Bin strange behavior
4 participants