[PR #1005] [MERGED] fix(view): add unique index for task buckets #1143

Closed
opened 2025-11-01 21:11:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1005
Author: @kolaente
Created: 6/24/2025
Status: Merged
Merged: 6/24/2025
Merged by: @kolaente

Base: mainHead: codex/add-unique-index-on-task_buckets


📝 Commits (2)

  • c6a33c2 feat: enforce unique task bucket relation
  • 7c51b08 fix: ensure unique task bucket fixtures

📊 Changes

3 files changed (+68 additions, -17 deletions)

View changed files

📝 frontend/cypress/e2e/project/project-view-kanban.spec.ts (+11 -11)
pkg/migration/20250624092830.go (+44 -0)
📝 pkg/models/kanban_task_bucket.go (+13 -6)

📄 Description

Summary

  • add unique index on task_buckets (task_id, project_view_id)
  • ensure TaskBucket struct uses the new composite unique index
  • document the constraint in TaskBucket comments

Testing

  • mage lint:fix
  • mage test:feature

https://chatgpt.com/codex/tasks/task_e_685a6edf3e588322a64e3332e1f4b091


🔄 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/1005 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 6/24/2025 **Status:** ✅ Merged **Merged:** 6/24/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `codex/add-unique-index-on-task_buckets` --- ### 📝 Commits (2) - [`c6a33c2`](https://github.com/go-vikunja/vikunja/commit/c6a33c202122b6e2b5185fbb6b952f742a42153d) feat: enforce unique task bucket relation - [`7c51b08`](https://github.com/go-vikunja/vikunja/commit/7c51b08173032d39fca576fc6a3b7a49b7066e7a) fix: ensure unique task bucket fixtures ### 📊 Changes **3 files changed** (+68 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `frontend/cypress/e2e/project/project-view-kanban.spec.ts` (+11 -11) ➕ `pkg/migration/20250624092830.go` (+44 -0) 📝 `pkg/models/kanban_task_bucket.go` (+13 -6) </details> ### 📄 Description ## Summary - add unique index on task_buckets (task_id, project_view_id) - ensure TaskBucket struct uses the new composite unique index - document the constraint in TaskBucket comments ## Testing - `mage lint:fix` - `mage test:feature` ------ https://chatgpt.com/codex/tasks/task_e_685a6edf3e588322a64e3332e1f4b091 --- <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 2025-11-01 21:11:54 -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#1143