rbelavadi commented on code in PR #7043:
URL: https://github.com/apache/texera/pull/7043#discussion_r3678148560
##########
frontend/src/app/dashboard/component/user/user-dataset/user-dataset-explorer/dataset-detail.component.ts:
##########
@@ -414,13 +422,31 @@ export class DatasetDetailComponent implements OnInit {
// by default, the selected version is the 1st element in the
retrieved list
// which is guaranteed(by the backend) to be the latest created
version.
if (this.versions.length > 0) {
+ const latestVersion = this.versions[0];
+ if (typeof latestVersion.creationTime === "number") {
+ this.latestVersionCreationTime = format(new
Date(latestVersion.creationTime), "MM/dd/yyyy HH:mm:ss");
+ }
this.selectedVersion = this.versions[0];
this.onVersionSelected(this.selectedVersion);
}
});
}
}
+ // Fetches the latest version (with its file tree) independently of the
current
+ // selection, then derives a representative file name for the Data Card.
+ retrieveLatestVersionFile() {
Review Comment:
Fixed, 'Last updated' now derives from creationTime in the same
retrieveDatasetLatestVersion response used for the file name, removing the
separate versions[0] lookup.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]