diff options
author | kirankumarb07 <kirankumarb@ami.com> | 2023-02-14 16:12:43 +0300 |
---|---|---|
committer | Sandeepa Singh <sandeepa.singh@ibm.com> | 2023-03-27 12:42:41 +0300 |
commit | 568b8a93af49d35891f042f73add850cfa651308 (patch) | |
tree | ee737f914b4a3f4db318247806117ac86831d395 | |
parent | e78d10b70ddb009393f038e8602c470b4c1655ca (diff) | |
download | webui-vue-568b8a93af49d35891f042f73add850cfa651308.tar.xz |
Sessions page Client ID is not displayed
Redfish added support for the Context parameter on the session resource
This parameter has the same function that the "OemSession.ClientId"
field served. And BMC Web moves all the existing ClientId code to
produce Context. This patch set contains the code changes for adding a
new column "Context" in the sessions page and modifying the existing
column "Client ID" to "Session ID" and mapping the redfish property
"Id" to it.
The property "Context" is optional in redfish. If the Context holds any
value it will display in WebUI as it is. If it is not having any value,
"-" will be displayed in the WebUI.
Change-Id: Ibc99416fc37a91029bf430ccc7b387832eef729c
Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
-rw-r--r-- | src/locales/en-US.json | 3 | ||||
-rw-r--r-- | src/locales/ru-RU.json | 3 | ||||
-rw-r--r-- | src/store/modules/SecurityAndAccess/SessionsStore.js | 5 | ||||
-rw-r--r-- | src/views/SecurityAndAccess/Sessions/Sessions.vue | 16 |
4 files changed, 21 insertions, 6 deletions
diff --git a/src/locales/en-US.json b/src/locales/en-US.json index d3ea2ee6..4e9b5f58 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -180,7 +180,8 @@ "disconnectMessage": "Are you sure you want to disconnect %{count} session? This action cannot be undone. | Are you sure you want to disconnect %{count} sessions? This action cannot be undone." }, "table": { - "clientID": "Client ID", + "sessionID": "Session ID", + "context": "Context", "username": "Username", "ipAddress": "IP address", "searchSessions": "Search sessions" diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json index 9e0debec..9a817ab1 100644 --- a/src/locales/ru-RU.json +++ b/src/locales/ru-RU.json @@ -180,7 +180,8 @@ "disconnectMessage": "Вы уверены что хотите отключить %{count} сессию? Действие не может быть отменено. | Вы уверены что хотите отключить все %{count} сессии? Действие не может быть отменено." }, "table": { - "clientID": "Идентификатор клиента", + "sessionID": "идентификатор сессии", + "context": "контекст", "username": "Имя пользователя", "ipAddress": "IP адрес", "searchSessions": "Поиск сессий" diff --git a/src/store/modules/SecurityAndAccess/SessionsStore.js b/src/store/modules/SecurityAndAccess/SessionsStore.js index 54607ab6..0349c8b7 100644 --- a/src/store/modules/SecurityAndAccess/SessionsStore.js +++ b/src/store/modules/SecurityAndAccess/SessionsStore.js @@ -26,7 +26,10 @@ const SessionsStore = { .then((sessionUris) => { const allConnectionsData = sessionUris.map((sessionUri) => { return { - clientID: sessionUri.data?.Oem?.OpenBMC.ClientID, + sessionID: sessionUri.data?.Id, + context: sessionUri.data?.Context + ? sessionUri.data?.Context + : '-', username: sessionUri.data?.UserName, ipAddress: sessionUri.data?.ClientOriginIPAddress, uri: sessionUri.data['@odata.id'], diff --git a/src/views/SecurityAndAccess/Sessions/Sessions.vue b/src/views/SecurityAndAccess/Sessions/Sessions.vue index 07ee725d..d875284f 100644 --- a/src/views/SecurityAndAccess/Sessions/Sessions.vue +++ b/src/views/SecurityAndAccess/Sessions/Sessions.vue @@ -35,7 +35,7 @@ no-select-on-click hover show-empty - sort-by="clientID" + sort-by="sessionID" :busy="isBusy" :fields="fields" :items="allConnections" @@ -163,22 +163,32 @@ export default { fields: [ { key: 'checkbox', + class: 'text-center', }, { - key: 'clientID', - label: this.$t('pageSessions.table.clientID'), + key: 'sessionID', + label: this.$t('pageSessions.table.sessionID'), + class: 'text-center', + }, + { + key: 'context', + label: this.$t('pageSessions.table.context'), + class: 'text-center', }, { key: 'username', label: this.$t('pageSessions.table.username'), + class: 'text-center', }, { key: 'ipAddress', label: this.$t('pageSessions.table.ipAddress'), + class: 'text-center', }, { key: 'actions', label: '', + class: 'text-center', }, ], batchActions: [ |