Job profile - create a default job profile

Description

Purpose:
In order to have a consistent behavior for all exports we should create a default job profile that will be associated with the default mapping profile. If the user does not provide a specific job profile, the default one will be used. The execution of the default job profile will produce the entire MARC record (from SRS or generated on the fly) and will not contain any other fields.
This can be loaded using the tenant API, when the tenant is being enabled, as we need to have this profile by default

Given: the job profile
When: default job profile is saved
Then:

  1. Name: Default job profile

  2. Mapping profile: Default job profile

  3. TCP/IP: blank

  4. Description: "Default job profile"

Environment

None

Potential Workaround

None

defines

has to be done after

has to be done before

Checklist

hide

TestRail: Results

Activity

Show:

Andrii Novytskyi May 22, 2020 at 7:54 AM

Verified on folio-testing, trying to get default mapping profile by id = 25d81cbe-9686-11ea-bb37-0242ac130002
REQUEST:
curl --location --request GET 'https://folio-testing-okapi.aws.indexdata.com:443/data-export/jobProfiles/19c33d10-99d2-11ea-bb37-0242ac130002' \
--header 'Content-Type: application/json' \
--header 'x-okapi-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaWt1X2FkbWluIiwidXNlcl9pZCI6IjYyNTI0MjIwLTAyZjktNTQwNC05YzJiLTk2ZThiOTM0YWNkNiIsImlhdCI6MTU5MDEzMzk5NiwidGVuYW50IjoiZGlrdSJ9.Vq2tZg2A5G_b6hwcGaNnENfTGEwC2l3k0KOdOrDpHng' \
--header 'X-Okapi-Tenant: diku'
RESPONSE: Status 200 OK
{
"id": "19c33d10-99d2-11ea-bb37-0242ac130002",
"name": "Default job profile",
"destination": "fileSystem",
"description": "Default job profile",
"userInfo": {
"firstName": "System",
"lastName": "Process",
"userName": "system_process"
},
"mappingProfileId": "25d81cbe-9686-11ea-bb37-0242ac130002",
"metadata": {
"createdDate": "2020-05-22T01:29:10.938+0000",
"updatedDate": "2020-05-22T01:29:10.938+0000"
}
}

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Concorde

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 12, 2020 at 2:22 PM
Updated May 29, 2020 at 2:37 AM
Resolved May 27, 2020 at 7:40 PM
TestRail: Cases
TestRail: Runs

Flag notifications