ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Display Order and Sort Order issues with TDM API call to "testDataModels"

book

Article ID: 186486

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Seeing two issues with TDM API call to "testDataModels"

1. TDM API 'PUT /api/ca/v1/testDataModels/{testDataModelId}/fields/{fieldId}' forces the value of 'displayOrder' to zero

If the 'displayOrder' parameter is not explicitly set in an API PUT on a field, the 'displayOrder' is set to zero. If multiple fields are edited in this way, all of those fields will be set to zero. What order they will display at that point is undefined.

2. TDM:  API 'GET /api/ca/v1/testDataModels/{testDataModelId}/fields' sortOrder parameter sorts numeric values as if they are text

The SortOrder option treats the numeric order numbers as alpha characters. So sorting on The API value displayOrder returns the fields in this order: 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 3, 4, 5, 6, 7, 8, 9. The displayOrder property is a numeric and should not be sorted as if it is alphabetic.

Environment

Release : 4.8

Component : CA Test Data Manager

Resolution

We have a patch that fixes these issues - TDMWeb-4.8.191.0.zip