makeplane / makeplane/plane

Parent Issue Assignments Never Saved in Dummy Data — Missing append in Loop

Open
#9,176 1 comment 0 reactions 2 assignees View on GitHub

@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

When I generate dummy data, no parent-child issue relationships are created despite the function appearing to assign them. The loop sets sub_issue.parent_id on objects in memory but never appends them to bulk_sub_issues, so Issue.objects.bulk_update(bulk_sub_issues, ...) is always called with an empty list.

Code pattern:
bulk_sub_issues = []
for sub_issue in sub_issues:
sub_issue.parent_id = parent_issues[...] # modifies object but never appends it
Issue.objects.bulk_update(bulk_sub_issues, ["parent"], batch_size=1000) # always empty

What I expect is that generated dummy issues have parent-child relationships correctly saved to the database.

File: apps/api/plane/bgtasks/dummy_data_task.py, lines 384–388 — bulk_sub_issues.append(sub_issue) is missing inside the loop

Steps to reproduce
  1. Trigger dummy data generation
    1. Check the created issues in the database
    1. Observe no issue has a parent_id set despite the function intending to create a hierarchy
Environment

Production

Browser

Google Chrome

Variant

Cloud

Version

v0.17.0-dev

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.