Skip to content

Commit

Permalink
Designate time in notifications as wall clock time (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
davetsay authored Feb 22, 2024
1 parent f672219 commit 7c18eed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openmct-mcws",
"version": "5.2.0",
"version": "5.2.0-1",
"description": "Open MCT for MCWS",
"devDependencies": {
"@braintree/sanitize-url": "6.0.2",
Expand Down
11 changes: 6 additions & 5 deletions src/services/session/SessionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ class SessionService {

if (model) {
this.notificationService.info('Connected to realtime from ' + model.topic);
console.log(`Connected to realtime from ${model.topic}. ${currentTime}`);
console.log(`Connected to realtime from ${model.topic}. ${currentTime} wall clock time.`);
} else {
this.notificationService.info('Disconnected from realtime');
console.log(`Disconnected from realtime. ${currentTime}`);
console.log(`Disconnected from realtime. ${currentTime} wall clock time.`);
}
}
};
Expand Down Expand Up @@ -178,13 +178,14 @@ class SessionService {
this.camErrorDialogActive = true;

const currentTime = new Date().toISOString();
const noActiveSessionMessage = `Poll for active session failed at ${currentTime} wall clock time. This may indicate a CAM timeout or session connection issue, which could result in data loss. Refresh if data does not appear to be flowing.`;

console.warn(`CAM login session timeout. ${currentTime}`);
console.warn(noActiveSessionMessage);
console.warn(error);

const dialog = this.openmct.overlays.dialog({
iconClass: 'alert',
message: `Your CAM login session has timed out - please login again. ${currentTime}`,
message: noActiveSessionMessage,
buttons: [
{
label: 'Cancel',
Expand All @@ -194,7 +195,7 @@ class SessionService {
}
},
{
label: 'Login',
label: 'Refresh',
emphasis: true,
callback() {
dialog.dismiss();
Expand Down

0 comments on commit 7c18eed

Please sign in to comment.