We're updating the issue view to help you get more done. 

GET /entity/{id}/version/{version}/bundle?mask=522351 returns colum models for the current version

Description

While investigating PLFM-5685, noticed that UI did not display correct schema for a table version.
Looked at network activity with , we request a bundle for the entity version and the
column models returned are those of the current version.

1 2 3 4 5 Request: https://repo-prod-274-0.prod.sagebase.org/repo/v1/entity/syn20556430/version/3/bundle?mask=522351 Response: {"path":{"path":[{"name":"root","id":"syn4489","type":"org.sagebionetworks.repo.model.Folder"},{"name":"P-274-1-2","id":"syn20556429","type":"org.sagebionetworks.repo.model.Project"},{"name":"t","id":"syn20556430","type":"org.sagebionetworks.repo.model.table.TableEntity"}]},"restrictionInformation":{"restrictionLevel":"OPEN","hasUnmetAccessRequirement":false},"entityType":"org.sagebionetworks.repo.model.table.TableEntity","permissions":{"canChangePermissions":true,"canChangeSettings":true,"canAddChild":true,"canCertifiedUserAddChild":true,"canEdit":true,"canEnableInheritance":true,"canUpload":true,"canCertifiedUserEdit":true,"canView":true,"isCertifiedUser":true,"ownerPrincipalId":273990,"canModerate":true,"canDownload":true,"canDelete":true,"canPublicRead":true},"hasChildren":false,"fileHandles":[],"annotations":{"longAnnotations":{},"blobAnnotations":{},"stringAnnotations":{},"etag":"00000000-0000-0000-0000-000000000000","id":"syn20556430","dateAnnotations":{},"doubleAnnotations":{}},"threadCount":0,"entity":{"versionComment":"3cols1row","createdOn":"2019-08-01T19:01:33.038Z","parentId":"syn20556429","versionNumber":3,"modifiedOn":"2019-08-02T18:16:05.873Z","versionLabel":"3cols1row","createdBy":"273990","columnIds":["3267","630","80227"],"name":"t","concreteType":"org.sagebionetworks.repo.model.table.TableEntity","etag":"00000000-0000-0000-0000-000000000000","modifiedBy":"273990","id":"syn20556430"},"benefactorAcl":{"etag":"83691a4b-668a-4057-b296-7e975c31269a","id":"syn20556429","creationDate":"2019-08-01T19:01:20.781Z","resourceAccess":[{"accessType":["READ","DOWNLOAD"],"principalId":273948},{"accessType":["CREATE","DELETE","CHANGE_PERMISSIONS","READ","UPDATE","DOWNLOAD","CHANGE_SETTINGS","MODERATE"],"principalId":273990},{"accessType":["READ"],"principalId":273949}]},"tableBundle":{"columnModels":[{"columnType":"INTEGER","name":"c1","id":"3267"},{"columnType":"STRING","name":"c2","maximumSize":50,"id":"630"},{"columnType":"BOOLEAN","name":"c3","id":"80227"},{"columnType":"DATE","name":"c4","id":"80239"}],"maxRowsPerPage":8559}}

Environment

None

Status

Assignee

John Hill

Reporter

Xavier Schildwachter

Labels

None

Validator

Jay Hodgson

Release Version History

None

Fix versions

Priority

Major