Commit f3ce281
refactor: address PR review feedback on blob add_elements/add_edges
- _run_blob_process: skip the defensive list() copy when rows is already a
list/tuple (the common case), only materializing iterators/generators, to
avoid doubling memory on large bulk builds.
- add_elements / add_edges: annotate return as Optional[Response] (the blob
path returns None).
- add_elements_use_blob / add_edges_use_blob: add @require_version("11.4")
for an earlier, clearer error, matching FileService.create's gating.
- update_or_create_hierarchy_from_dataframe: gate the blob add/delete paths on
admin rights AND TM1 >= 11.4 (Contents API), falling back to REST on older
servers so the method stays backward compatible for admins on v11 < 11.4.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 71936b6 commit f3ce281
2 files changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| |||
1367 | 1370 | | |
1368 | 1371 | | |
1369 | 1372 | | |
1370 | | - | |
| 1373 | + | |
1371 | 1374 | | |
1372 | 1375 | | |
1373 | 1376 | | |
| |||
1400 | 1403 | | |
1401 | 1404 | | |
1402 | 1405 | | |
| 1406 | + | |
1403 | 1407 | | |
1404 | 1408 | | |
1405 | 1409 | | |
| |||
1459 | 1463 | | |
1460 | 1464 | | |
1461 | 1465 | | |
1462 | | - | |
| 1466 | + | |
1463 | 1467 | | |
1464 | 1468 | | |
1465 | 1469 | | |
| |||
1486 | 1490 | | |
1487 | 1491 | | |
1488 | 1492 | | |
| 1493 | + | |
1489 | 1494 | | |
1490 | 1495 | | |
1491 | 1496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
597 | 601 | | |
598 | 602 | | |
599 | 603 | | |
| |||
641 | 645 | | |
642 | 646 | | |
643 | 647 | | |
644 | | - | |
| 648 | + | |
645 | 649 | | |
646 | 650 | | |
647 | 651 | | |
| |||
737 | 741 | | |
738 | 742 | | |
739 | 743 | | |
740 | | - | |
| 744 | + | |
741 | 745 | | |
742 | 746 | | |
743 | 747 | | |
| |||
776 | 780 | | |
777 | 781 | | |
778 | 782 | | |
779 | | - | |
| 783 | + | |
780 | 784 | | |
781 | 785 | | |
782 | 786 | | |
| |||
787 | 791 | | |
788 | 792 | | |
789 | 793 | | |
790 | | - | |
| 794 | + | |
791 | 795 | | |
792 | 796 | | |
793 | 797 | | |
| |||
0 commit comments