Is there an existing issue for this?
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
- Trigger dummy data generation
-
- Check the created issues in the database
-
- 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
Is there an existing issue for this?
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
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev