[PR #2415] [MERGED] fix(tasks): support both expand and expand[] query parameter formats #4123

Closed
opened 2026-03-22 15:04:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2415
Author: @tink-bot
Created: 3/19/2026
Status: Merged
Merged: 3/19/2026
Merged by: @kolaente

Base: mainHead: fix/expand-query-param-format


📝 Commits (3)

  • a241cdc fix(tasks): support both expand and expand[] query parameter formats
  • fbadd7c fix(tasks): resolve appendAssign lint warnings
  • 1035c1d fix(tasks): simplify expand merge to satisfy appendAssign lint

📊 Changes

3 files changed (+15 additions, -6 deletions)

View changed files

📝 pkg/models/task_collection.go (+9 -3)
📝 pkg/models/tasks.go (+5 -3)
📝 pkg/models/tasks_permissions.go (+1 -0)

📄 Description

The expand query parameter only supported the expand[]=foo array format, but the swagger docs described it as a plain string parameter. This adds support for both formats (expand=foo and expand[]=foo), matching the existing pattern used by sort_by and order_by parameters.

Closes #2408


🔄 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/2415 **Author:** [@tink-bot](https://github.com/tink-bot) **Created:** 3/19/2026 **Status:** ✅ Merged **Merged:** 3/19/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix/expand-query-param-format` --- ### 📝 Commits (3) - [`a241cdc`](https://github.com/go-vikunja/vikunja/commit/a241cdce83c33117675b53ab88a22332663f8d02) fix(tasks): support both expand and expand[] query parameter formats - [`fbadd7c`](https://github.com/go-vikunja/vikunja/commit/fbadd7c0d6dd0e270b99584fa0a7c7c4dad11753) fix(tasks): resolve appendAssign lint warnings - [`1035c1d`](https://github.com/go-vikunja/vikunja/commit/1035c1d602ddb93c451e1e702ba18be52f2a5dd8) fix(tasks): simplify expand merge to satisfy appendAssign lint ### 📊 Changes **3 files changed** (+15 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `pkg/models/task_collection.go` (+9 -3) 📝 `pkg/models/tasks.go` (+5 -3) 📝 `pkg/models/tasks_permissions.go` (+1 -0) </details> ### 📄 Description The `expand` query parameter only supported the `expand[]=foo` array format, but the swagger docs described it as a plain string parameter. This adds support for both formats (`expand=foo` and `expand[]=foo`), matching the existing pattern used by `sort_by` and `order_by` parameters. Closes #2408 --- <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-03-22 15:04:02 -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#4123