Commit c66af69
committed
[STT-1622] feat: Add preserve_embargo_and_schedule parameter to duplicate API
Add support for preserving embargo and schedule fields when duplicating
via a request parameter. When preserve_embargo_and_schedule is set to true
in the duplicate request, the fields embargo, publish_schedule, and
schedule_settings will be preserved on the duplicated item.
Changes:
- Added preserve_embargo_and_schedule field to DuplicateResource schema
- Updated DuplicateService.create_async() to check the request parameter
- Added test scenario for the new functionality1 parent b5b5072 commit c66af69
2 files changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 359 | + | |
363 | 360 | | |
364 | 361 | | |
365 | 362 | | |
| |||
641 | 638 | | |
642 | 639 | | |
643 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
0 commit comments