Mapping profile - transformations - retrieve field names

Description

As a librarian working on the mapping profile I would like to see the fields names to which transformation can be applied in mapping profile

Given: the mapping profile transformation
When: field names required
Then: list all the field names that the transformation could be applied to

Approach
Create a GET API that the UI can hit which returns all the list for fields corresponding to Instances, holdings, items, that a mapping transformation can be applied to.
This story just covers creating the API and adding 1-2 fields, handling complex fields which need to be generated is handled in separate stories

Acceptance Criteria:

  1. Provide GET API that returns all the transformations

  2. Write Unit tests

  3. Write API tests

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Andrii Novytskyi August 6, 2020 at 1:05 PM

Verified on folio-snapshot-load:
Make a call to retrieve fields:
curl --location --request GET 'https://folio-snapshot-load-okapi.aws.indexdata.com:443/data-export/transformationFields' \
--header 'Content-Type: application/json' \
--header 'x-okapi-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaWt1X2FkbWluIiwidXNlcl9pZCI6ImQyMDk0ZWNlLTJmMmYtNWY1OC1hMGJiLTMzMWMxYjQ3MjNjNSIsImlhdCI6MTU5NjcxOTAzMSwidGVuYW50IjoiZGlrdSJ9.r4AmfjhBHP6N5UpuOFHFKDv59OP-LROJCtVdX2MMZnM' \
--header 'X-Okapi-Tenant: diku' \
--data-raw ''
The response status is: 200OK
Checked that response contains fields:

Magda Zacharska July 13, 2020 at 1:07 PM

I'm concerned that if the list will come from the backend, it will not be possible to localize the names - this should be discussed with FE and BE developers.

Magda Zacharska June 17, 2020 at 1:16 AM

Removing estimates as the scope for Q3 changed

Kruthi Vuppala May 13, 2020 at 2:49 PM

Note: We agreed that as there are no dynamic fields to be shown on UI, the list will be hardcoded on UI for Q2. We will revisit the approach for Q3

Magda Zacharska May 7, 2020 at 1:22 PM

Review the estimation during the planning

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 April 24, 2020 at 11:26 PM
Updated August 28, 2020 at 1:44 AM
Resolved August 7, 2020 at 1:08 AM
TestRail: Cases
TestRail: Runs