[MODEXPW-86] Saving edited item locations Created: 31/Jan/22 Updated: 08/Apr/22 Resolved: 08/Apr/22 |
|
| Status: | Closed |
| Project: | mod-data-export-worker |
| Components: | None |
| Affects versions: | None |
| Fix versions: | 1.4.0 |
| Type: | Story | Priority: | P3 |
| Reporter: | Magda Zacharska | Assignee: | Siarhei Charniak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue links: |
|
||||||||||||||||
| Sprint: | Firebird Sprint 136, Firebird Sprint 137 | ||||||||||||||||
| Story Points: | 3 | ||||||||||||||||
| Development Team: | Firebird | ||||||||||||||||
| Description |
|
Purpose/Overview: Requirements/Scope:
Approach: Acceptance criteria:
|
| Comments |
| Comment by Siarhei Charniak [ 05/Apr/22 ] |
|
Verified on folio-snapshot-2 Check item locations before update Post job command curl --location --request POST 'https://folio-snapshot-2-okapi.dev.folio.org:443/data-export-spring/jobs' \ --header 'x-okapi-tenant: diku' \ --header "x-okapi-token: $TOKEN" \ --header 'Content-Type: application/json' \ --data-raw '{ "type": "BULK_EDIT_UPDATE", "exportTypeSpecificParameters": { }, "identifierType": "BARCODE", "entityType": "ITEM" }' Response
{
"id": "183c07a1-b4c4-44ae-a149-2a0e3080b6e6",
"name": "000003",
"source": "diku_admin",
"isSystemSource": false,
"type": "BULK_EDIT_UPDATE",
"exportTypeSpecificParameters": {},
"status": "SCHEDULED",
"metadata": {
"createdDate": "2022-04-05T14:15:16.288+00:00",
"createdByUserId": "e9f0d1f6-5df3-5bbc-bee2-a11b2359c815",
"createdByUsername": "diku_admin",
"updatedDate": "2022-04-05T14:15:16.288+00:00",
"updatedByUserId": "e9f0d1f6-5df3-5bbc-bee2-a11b2359c815",
"updatedByUsername": "diku_admin"
},
"identifierType": "BARCODE",
"entityType": "ITEM"
}
Upload attached 2022-04-05-Matched-Records-barcodes-modified.csv curl --location --request POST 'https://folio-snapshot-2-okapi.dev.folio.org:443/bulk-edit/183c07a1-b4c4-44ae-a149-2a0e3080b6e6/upload' \ --header 'x-okapi-tenant: diku' \ --header "x-okapi-token: $TOKEN" \ --header 'Content-Type: multipart/form-data' \ --form 'file=@"/Users/siarhei/Desktop/2022-04-05-Matched-Records-barcodes-modified.csv"' Response 2 Start job curl --location --request POST 'https://folio-snapshot-2-okapi.dev.folio.org:443/bulk-edit/183c07a1-b4c4-44ae-a149-2a0e3080b6e6/start' \ --header 'x-okapi-tenant: diku' \ --header "x-okapi-token: $TOKEN" \ --header 'Content-Type: application/json' Check job status - successful curl --location --request GET 'https://folio-snapshot-2-okapi.dev.folio.org:443/data-export-spring/jobs/183c07a1-b4c4-44ae-a149-2a0e3080b6e6' \ --header 'x-okapi-tenant: diku' \ --header "x-okapi-token: $TOKEN" \ --header 'Content-Type: application/json' Response
{
"id": "183c07a1-b4c4-44ae-a149-2a0e3080b6e6",
"name": "000003",
"source": "diku_admin",
"isSystemSource": false,
"type": "BULK_EDIT_UPDATE",
"exportTypeSpecificParameters": {},
"status": "SUCCESSFUL",
"startTime": "2022-04-05T14:15:30.839+00:00",
"endTime": "2022-04-05T14:15:31.448+00:00",
"metadata": {
"createdDate": "2022-04-05T14:15:16.288+00:00",
"createdByUserId": "e9f0d1f6-5df3-5bbc-bee2-a11b2359c815",
"createdByUsername": "diku_admin",
"updatedDate": "2022-04-05T14:15:31.523+00:00",
"updatedByUserId": "e9f0d1f6-5df3-5bbc-bee2-a11b2359c815",
"updatedByUsername": "diku_admin"
},
"identifierType": "BARCODE",
"entityType": "ITEM",
"progress": {
"total": 2,
"processed": 2,
"progress": 100
}
}
|