[PR #1034] [MERGED] fix: guard invalid user lookups #1169

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

📋 Pull Request Information

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

Base: mainHead: codex/fix-user-and-owner-id-validation


📝 Commits (3)

📊 Changes

8 files changed (+38 additions, -16 deletions)

View changed files

📝 pkg/models/kanban.go (+6 -2)
📝 pkg/models/label_task.go (+3 -1)
📝 pkg/models/link_sharing.go (+3 -1)
📝 pkg/models/listeners.go (+8 -6)
📝 pkg/models/project.go (+3 -1)
📝 pkg/models/task_attachment.go (+6 -2)
📝 pkg/models/tasks.go (+6 -2)
📝 pkg/models/webhooks.go (+3 -1)

📄 Description

Might resolve https://community.vikunja.io/t/webhook-project-error/3305/26

Summary

  • avoid user lookup if doer id is invalid when reloading event data
  • handle projects with invalid owners gracefully
  • skip CreatedBy lookup for tasks when no creator is set

Testing

  • mage lint:fix

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


🔄 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/1034 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 6/26/2025 **Status:** ✅ Merged **Merged:** 6/26/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `codex/fix-user-and-owner-id-validation` --- ### 📝 Commits (3) - [`3c6a278`](https://github.com/go-vikunja/vikunja/commit/3c6a278575591370cb2a44f01fe70559671d3da0) fix: guard invalid user lookups - [`5eedafa`](https://github.com/go-vikunja/vikunja/commit/5eedafa35775f3969fb15ab3d7f7eb89012cf912) better style - [`a5ee5fd`](https://github.com/go-vikunja/vikunja/commit/a5ee5fda3e95c4c1ae239fca95ef363ed485373d) fix: check if users exist ### 📊 Changes **8 files changed** (+38 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `pkg/models/kanban.go` (+6 -2) 📝 `pkg/models/label_task.go` (+3 -1) 📝 `pkg/models/link_sharing.go` (+3 -1) 📝 `pkg/models/listeners.go` (+8 -6) 📝 `pkg/models/project.go` (+3 -1) 📝 `pkg/models/task_attachment.go` (+6 -2) 📝 `pkg/models/tasks.go` (+6 -2) 📝 `pkg/models/webhooks.go` (+3 -1) </details> ### 📄 Description Might resolve https://community.vikunja.io/t/webhook-project-error/3305/26 ## Summary - avoid user lookup if doer id is invalid when reloading event data - handle projects with invalid owners gracefully - skip CreatedBy lookup for tasks when no creator is set ## Testing - `mage lint:fix` ------ https://chatgpt.com/codex/tasks/task_e_685db7c7e45883228a48bf14522620c5 --- <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:12:27 -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#1169