[PR #2617] [MERGED] feat(migration/wekan): import attachments from board export #8407

Closed
opened 2026-04-20 18:11:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2617
Author: @tink-bot
Created: 4/13/2026
Status: Merged
Merged: 4/13/2026
Merged by: @kolaente

Base: mainHead: feat-wekan-attachment-import


📝 Commits (1)

  • de23ffb feat(migration/wekan): import attachments from board export

📊 Changes

3 files changed (+104 additions, -2 deletions)

View changed files

📝 pkg/modules/migration/wekan/testdata_wekan_export.json (+10 -1)
📝 pkg/modules/migration/wekan/wekan.go (+37 -1)
📝 pkg/modules/migration/wekan/wekan_test.go (+57 -0)

📄 Description

The WeKan importer ignored the attachments array in board JSON exports, so users lost all card attachments when migrating. This PR decodes each base64-encoded attachment and attaches it to the corresponding task.

Orphaned attachments (cardId with no matching card) and decode errors are logged and skipped rather than failing the import.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2617 **Author:** [@tink-bot](https://github.com/tink-bot) **Created:** 4/13/2026 **Status:** ✅ Merged **Merged:** 4/13/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `feat-wekan-attachment-import` --- ### 📝 Commits (1) - [`de23ffb`](https://github.com/go-vikunja/vikunja/commit/de23ffb3e9937ade97ddf5e613ddfb650121a9c7) feat(migration/wekan): import attachments from board export ### 📊 Changes **3 files changed** (+104 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `pkg/modules/migration/wekan/testdata_wekan_export.json` (+10 -1) 📝 `pkg/modules/migration/wekan/wekan.go` (+37 -1) 📝 `pkg/modules/migration/wekan/wekan_test.go` (+57 -0) </details> ### 📄 Description The WeKan importer ignored the `attachments` array in board JSON exports, so users lost all card attachments when migrating. This PR decodes each base64-encoded attachment and attaches it to the corresponding task. Orphaned attachments (cardId with no matching card) and decode errors are logged and skipped rather than failing the import. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 18:11:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#8407