chore: 🤖 Update session recording API (#243)

* chore: 🤖 Update session recording API

* chore: 🤖 Update usage of scope id for targets

* chore: 🤖 Update scope id usage for user in session recordings
This commit is contained in:
Zhihe Li authored and GitHub committed 2023-05-08 18:05:01 +00:00
1 parent 308a393202
commit 0dee7b5a02
11 files changed
+89 -51

No files matched your search

+7 -2
View File
@@ -38,7 +38,10 @@ export default class SessionRecordingModel extends GeneratedSessionRecordingMode
* @type {string}
*/
get targetScopeDisplayName() {
return this.target?.scope?.name || this.target?.scope?.id;
return (
this.create_time_values?.target?.scope?.name ||
this.create_time_values?.target?.scope?.id
);
}
/**
@@ -46,6 +49,8 @@ export default class SessionRecordingModel extends GeneratedSessionRecordingMode
* @type {string}
*/
get userDisplayName() {
return this.user?.name || this.user?.id;
return (
this.create_time_values?.user?.name || this.create_time_values?.user?.id
);
}
}