Skip to content

Fix: watchers not saved when creating issues/tasks/user stories via API ([Bug] #138)#227

Open
YaruG1022 wants to merge 5 commits into
taigaio:mainfrom
WSU-CptS-481-Spring-2026:issues/138/watcher-creation-bug
Open

Fix: watchers not saved when creating issues/tasks/user stories via API ([Bug] #138)#227
YaruG1022 wants to merge 5 commits into
taigaio:mainfrom
WSU-CptS-481-Spring-2026:issues/138/watcher-creation-bug

Conversation

@YaruG1022
Copy link
Copy Markdown

@YaruG1022 YaruG1022 commented Mar 8, 2026

Watchers specified at creation time via the API were silently discarded due to an early return in restore_object() when instance=None. Fixed by deferring watcher assignment to save() after the object is persisted, and changed _old_watchers default from None to [] to prevent a secondary TypeError in post-save notifications. Unit and integration regression tests were added for issues, tasks, and user stories.

This change request addresses [Bug] #138.

@YaruG1022 YaruG1022 closed this Mar 8, 2026
@YaruG1022 YaruG1022 reopened this Mar 8, 2026
@YaruG1022 YaruG1022 changed the title Fix: watchers not saved when creating issues/tasks/user stories via API Fix: watchers not saved when creating issues/tasks/user stories via API (issue #138) Mar 8, 2026
@YaruG1022 YaruG1022 changed the title Fix: watchers not saved when creating issues/tasks/user stories via API (issue #138) Fix: watchers not saved when creating issues/tasks/user stories via API (Bug #138) Mar 8, 2026
@YaruG1022 YaruG1022 changed the title Fix: watchers not saved when creating issues/tasks/user stories via API (Bug #138) Fix: watchers not saved when creating issues/tasks/user stories via API ([Bug] #138) Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant