Commit 4ecfd35
committed
Implement batch preparation methods for digitized theses workflow
Why these changes are being introduced:
* The batch preparation methods for the digitized theses workflow
must be capable of performing the following functions:
1. Sync the batch folder from the digitized theses workflow S3 bucket
to a minted batch folder in the DSC S3 bucket
2. Download metadata from Alma via SRU
3. Get an item from DSpace
4. Determine if an item is a valid 'replacement thesis', given DSpace item metadata
5. Organize the contents of the minted batch folder into 'new-theses/' and
'replacement-theses/' subfolders
How this addresses that need:
* Implement methods on DigitizedThesesWorkflow for batch preparation functions
* Expand ItemSubmissionStatus to `CREATE_SUCCESS`, `CREATE_FAILED`, `CREATE_SKIPPED`
* Add exceptions to handle item retrieval from DSpace
Side effects of this change:
* Though we've expanded ItemSubmissionStatus to include `CREATE_*` statuses,
`BATCH_CREATED` remains to support backwards compatibility with other workflows.
Updating all workflows to use `CREATE_*` will be in the DSC backlog for future
work.
Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-16261 parent 0c852ac commit 4ecfd35
13 files changed
Lines changed: 1619 additions & 4 deletions
File tree
- dsc
- db
- workflows/digitized_theses
- tests
- fixtures/digitized-theses
- batch-aaa/replacement-theses
- workflows/digitized_theses
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
33 | 70 | | |
34 | 71 | | |
35 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
0 commit comments