[PR #1477] [MERGED] fix: initialize task positions for saved filters #1521

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

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1477
Author: @kolaente
Created: 9/11/2025
Status: Merged
Merged: 9/11/2025
Merged by: @kolaente

Base: mainHead: codex/fix-task-position-initialization-in-saved-filters


📝 Commits (2)

📊 Changes

2 files changed (+129 additions, -17 deletions)

View changed files

pkg/models/saved_filter_positions_test.go (+93 -0)
📝 pkg/models/saved_filters.go (+36 -17)

📄 Description

Summary

  • ensure SavedFilter.Update assigns real task positions when adding tasks
  • compute positions for tasks added by cron and addTaskToFilter
  • add regression tests for saved-filter task positions
  • recalc saved-filter task positions once per view using RecalculateTaskPositions

Resolves https://github.com/go-vikunja/vikunja/issues/724


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


🔄 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/1477 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 9/11/2025 **Status:** ✅ Merged **Merged:** 9/11/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `codex/fix-task-position-initialization-in-saved-filters` --- ### 📝 Commits (2) - [`ef6154e`](https://github.com/go-vikunja/vikunja/commit/ef6154ee151d80c1096f3261d2c4eb112f97731c) fix: recalc saved filter positions - [`20b670e`](https://github.com/go-vikunja/vikunja/commit/20b670ec9a98eedc69e603a4608f5b62612b948f) fix lint ### 📊 Changes **2 files changed** (+129 additions, -17 deletions) <details> <summary>View changed files</summary> ➕ `pkg/models/saved_filter_positions_test.go` (+93 -0) 📝 `pkg/models/saved_filters.go` (+36 -17) </details> ### 📄 Description ## Summary - ensure SavedFilter.Update assigns real task positions when adding tasks - compute positions for tasks added by cron and addTaskToFilter - add regression tests for saved-filter task positions - recalc saved-filter task positions once per view using RecalculateTaskPositions Resolves https://github.com/go-vikunja/vikunja/issues/724 ------ https://chatgpt.com/codex/tasks/task_e_68c2d62fce60832291f1528ae330046b --- <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:21:58 -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#1521