Skip to content

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

@R0hit-Sriram

Description

@R0hit-Sriram

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

Metadata

Metadata

Assignees

Labels

planesync issues to Plane🐛bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions