API "/api/ca/v1/objects" does not return the Table Order
search cancel

API "/api/ca/v1/objects" does not return the Table Order

book

Article ID: 231648

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

When I use the API /api/ca/v1/objects, the TableOrder field returned by the API is always blank. According to the documentation, it should contain the order in which the objects will be generated (by the TDM generator).

Tested on version 4.9.291 of the TDM portal.

 

Environment

Release : 4.9.1

Component : TDM Web Portal

 

Cause

Defect

Resolution

  • Download the latest TDM Portal patch compatible with TDM version 4.9.1 from below page: 
    • https://support.broadcom.com/external/content/release-announcements/Test-Data-Manager-TDM-Patches/16649

 

  • Use below knowledge article to apply the patch:
    • https://knowledge.broadcom.com/external/article?articleId=10931

 

 

Additional Information

Question after applying the patch:

Tested fix 4.9.380 this morning.

The API call /TDMModelService/api/ca/v1/objects?projectId=$projectId&versionId=$versionId  shows atable order value of -1 (this is what the 4.9.380 fixed)
The API call /TDMModelService/api/ca/v1/registeredTables?projectId=$projectId&versionId=$versionId shows atable order of 1
The portal screen “SELECT TABLES” (in generators part) show anorder value of 1
 
Answer:

Why the values are not the same?Why minus 1? I was expecting a value of 1

I got an explanation from Dahman on this. (-1)

Let's say you have Project v1 and register 3 tables. 

You then create v2 and those tables registered in v1 will get inherited in v2.

Now you go back to v1 and register a 4th table.

Version 1 will show 1,2,3,4

Since v2 inherits from v1 version 2 will show 1,2,3,-1.