Skip to content

refactor(pinia): move attachmentStore to pinia#8142

Open
grnd-alt wants to merge 1 commit into
mainfrom
refactor/pinia-migration-attachment-attachmentStore
Open

refactor(pinia): move attachmentStore to pinia#8142
grnd-alt wants to merge 1 commit into
mainfrom
refactor/pinia-migration-attachment-attachmentStore

Conversation

@grnd-alt

@grnd-alt grnd-alt commented Jul 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@grnd-alt grnd-alt requested a review from luka-nextcloud as a code owner July 7, 2026 11:58
@grnd-alt grnd-alt force-pushed the refactor/pinia-migration-attachment-attachmentStore branch from e2f51d9 to 0c18fc1 Compare July 7, 2026 12:01
Signed-off-by: grnd-alt <git@belakkaf.net>
@grnd-alt grnd-alt force-pushed the refactor/pinia-migration-attachment-attachmentStore branch from 0c18fc1 to 944683c Compare July 8, 2026 09:40
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jul 9, 2026
@grnd-alt grnd-alt moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Jul 9, 2026
@grnd-alt grnd-alt self-assigned this Jul 9, 2026
@grnd-alt grnd-alt requested a review from samin-z July 9, 2026 09:10
Comment thread src/stores/attachment.js
} else {
this.attachments[cardId].push(attachment)
}
this.$vuex.commit('cardSetAttachmentCount', { cardId })

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

based on what i found, 'cardSetAttachmentCount' expects two variables but only one is passed. should'nt this not be used?

Comment thread src/stores/attachment.js
if (existingIndex !== -1) {
Vue.set(this.attachments[attachment.cardId][existingIndex], 'deletedAt', Date.now() / 1000 | 0)
}
this.$vuex.commit('cardDecreaseAttachmentCount', { cardId: attachment.cardId })

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wouldnt sending 'cardId' break it?
this is what is expected:
cardDecreaseAttachmentCount(1)
and not
cardDecreaseAttachmentCount(cardId: 1) {

@samin-z

samin-z commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Functionality check finds:

  1. file upload:
    upload a file and go back to the overview there is no attachment icon and counter on the card, i have to refresh the page to see the attachment increase.

  2. attachment delete is not working to check but that issue also exist on main so not caused by this pr.

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

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

2 participants