Workspace Home Preferences Loop Variable Shadowed — Bulk Create Breaks on Second Missing Key
Open
@vihar is already working on this.
Since May 30, 2026.
🐛bug
plane
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
Loop variable preference is reassigned to bulk_create() result (a list) on first iteration.
File: apps/api/plane/app/views/workspace/home.py
Steps to reproduce
- Auth as workspace member
- PATCH preferences endpoint with another member's key
- Create a new workspace or clear workspace home preferences from the DB
-
- Load the workspace home page
-
- Observe only the first missing preference is created correctly; others fail
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.