nextcloud / deck

🗂 Kanban-style project & personal management tool for Nextcloud, similar to Trello
https://apps.nextcloud.com/apps/deck
GNU Affero General Public License v3.0
1.22k stars 276 forks source link

Migrate Deck attachments to File attachments #3101

Open stefan-niedermann opened 3 years ago

stefan-niedermann commented 3 years ago

Background

Deck 1.3.0 introduced File attachments. New attachments are uploaded to the user directory as files. This brings up many advantages compared to the previous custom handling of attachments. One benefit is an appropriate thumbnail generation (for example for cover images).

Problem

However it also introduced a technical debt: The Deck server app as well as all clients need to support both types of attachments. Especially when displaying cover images, the user requires to download the whole image regardless of its size to display it. This increases the maintenance efforts for the developers and is a bad user experience due to large mobile traffic and load times.

Solution

In https://github.com/nextcloud/deck/pull/2638#issuecomment-740644439 we discussed this topic and a possible solution was to migrate existing Deck attachments to File attachments. As this can be a long running job, @juliushaertl decided to not automatically perform the migration when updating to Deck 1.3.0. This issue will be solved when

31337-4554551n commented 1 year ago

Was this occ command ever implemented?