Closes #18645: Add support for bulk importing multi-termination cables#22641
Conversation
|
@claude /review Only report on issues of potential concern; we don't need commentary on anything that doesn't require further consideration. |
|
Claude finished @pheus's task in 4m 35s —— View job PR Review: #22641 — Bulk import multi-termination cables
The implementation is well-structured with solid test coverage. A few concerns worth considering: 1.
|
Enable comma-separated Device, Power Panel, and Termination name lists in Cable CSV/JSON/YAML imports. Each side accepts either one parent for all terminations or one parent per name, preserving submission order for connector assignment. Add validation for duplicate terminations, empty names, parent count mismatches, and MultipleObjectsReturned cases. Change side_a/b_device and side_a/b_power_panel fields from CSVModelChoiceField to CSVModelMultipleChoiceField with updated help text. Fixes #18645
5adcf52 to
87a822d
Compare
|
@claude /review I agree with the For The whitespace behavior in I’ll also add a test covering multi-parent import with |
|
Claude finished @pheus's task in 2m 7s —— View job Follow-up Review: #22641 — Bulk import multi-termination cables
|
Closes: #18645
This adds support for importing cables with multiple terminations on either side via CSV, JSON, and YAML bulk import.
Cable import now accepts comma-separated values for device, power panel, and termination name fields. Each side can specify either one parent for all terminations or one parent per termination name. Submitted order is preserved so breakout cable profiles can assign connector positions correctly.
This also updates the relevant cable parent fields from
CSVModelChoiceFieldtoCSVModelMultipleChoiceField, refreshes their help text, and adds validation for duplicate terminations, empty termination names, parent/name count mismatches, already-connected terminations, and ambiguous parent lookups.