mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #6368] [MERGED] delete previous image on cover change #7335
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#7335
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6368
Author: @Ahad-patel
Created: 9/20/2024
Status: ✅ Merged
Merged: 12/31/2024
Merged by: @LucasXu0
Base:
main← Head:delete-unecessary-images📝 Commits (9)
bd9be43remove unecessary images from localstorage5ca7cbcMerge branch 'main' into delete-unecessary-images86ba1eeMerge branch 'main' into delete-unecessary-images5c6b18bfeat: Add handler for deleting previous cover image on cover image changebf6b3effix: add local image case for versions after 0.5.5e668352fix: add try catch block and delete action to bottom of function093ec2aMerge branch 'main' into delete-unecessary-images86ffa67chore: add test case for uploading and deleting image in localmode64d5718Merge branch 'main' into delete-unecessary-images📊 Changes
4 files changed (+99 additions, -3 deletions)
View changed files
📝
frontend/appflowy_flutter/integration_test/desktop/document/document_with_cover_image_test.dart(+61 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dart(+17 -3)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_util.dart(+13 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/migration/editor_migration.dart(+8 -0)📄 Description
Feature Preview
Closes: https://github.com/AppFlowy-IO/AppFlowy/issues/5145
I have created two methods for deletePreviousImageFromCloudStorage and deleteFile in DocumentSevce Class
when ever the user changes cover image the this method will check if there the previous image was file, If so then it will delete the previous image.
I have a question ther is a an method DocumentEventDeleteFile which takes DownloadFilePB payload which has two params localFilePath and url, the url can be obtained from coverDetails but localFilepath is not stored any where how do i delete it from the local storage? @Xazin
PR Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.