summaryrefslogtreecommitdiff
path: root/src/store
AgeCommit message (Collapse)AuthorFilesLines
2023-03-27Added route restrictions based on user privilegeDamian Celico2-3/+8
This commit allows us to add 'exclusiveToRoles' field to route config files, with the list of roles that can access this resource, if needed. In this case, only Administrator can access Virtual-Media page and SOL console, and it is blocked for other users. Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com> Change-Id: Ibcee18bd92d97c34414ecaf2caf6af28070c5538
2023-03-27Sessions page Client ID is not displayedkirankumarb071-1/+4
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>
2023-02-21Add button to clear POST code logsKonstantin Aladyshev1-0/+17
Utilize '#LogService.ClearLog' action to provide a possibility for the user to clear POST code logs. Change-Id: Iadd94b9ebc93bc81b13ee979962103587c939fc7 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2023-02-18Closed KVM new window after WEBUI logged outkirankumarb071-1/+7
Description: When KVM is opened in new window, after WEB UI is logged out, opened KVM window is not getting closed. It remains opened and accessible. Root Cause: There is not handle to close the KVM new window after the WEB UI logged out. Fix: Added the KVM window opened information in store, and checked that information to close the window. Tested: Step 1: Login to WEB UI Step 2: Navigate to Operations -> KVM Step 3: Open KVM in new window Step 4: Click Logout in WEB UI Result: After successful log out, KVM new window is closed as expected. Change-Id: Iab8e54d3088a08fb0ae9b581b2647fc0ab5460bd Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-02-15Added DHCP enable/disable featureNikhil Ashoka1-0/+27
- DHCP toggle for enablement was not present, It is now added in the Networks page. - DHCP when enabled, if there is no address, it picks up an address on its own.When it is disabled, we need to manually configure it. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I32a9e0df28e6609945f3757a6bd69dc66a86f480
2023-02-10Fix bug in Overview endless loadingKonstantin1-0/+2
Bug description: Before this commit there was an endless loading on blue bar when user entering to the Overview. Problem was missing `if` statement after what that promise wasn't be able to finish. Test: Step1. Launch webui on browser and see Overview page. Step2. Wait a while. Blue loading bar finished pulsing. Change-Id: I2ea3b6f125ca24fcefeea8020c4a903ea018f4f7 Signed-off-by: Konstantin Maskov <sulwirld@gmail.com>
2023-02-08Enhanced User Management page error messageSivaprabu Ganesan1-2/+19
Description 1: When WebUI creates the user with an already existing username the error message will display the exact failure reason. Tested: Step 1: Login to webUI and navigate to user management page Step 2: Create new user with username "testUser1" Step 3: Create another user with same username "testUser1" Step 4: WEB UI will through the error message as "Username 'testuser1' already exists." Description 2: User can able to disable and change the root user via WebUI Now restricted to disable the root user and changing the root user privilege. Tested: Step 1: Login to Web UI with root user Step 2: Navigate to User management page Step 3: Try to modify the root user's details Step 4: WebUI won't allow to disable the user, username change and privilege change Step 5: Login Web UI with non-root user Step 6: Web UI won't allow to modify or delete the root user's details Change-Id: I0e38215b51fb058984664ec38ae9613e18043ed7 Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com>
2023-02-02Fixed sensor mismatch issue with IPMI and redfishkirankumarb071-17/+18
Description: The sensor count in WebUI is mismatched when compared to IPMI and REDFISH responses. When Web UI is iterating the sensor response property, the iteration is stopped when the key value is undefined. As a result, the sensor details in the web UI are incorrect. So added the code changes to check the property value in every iteration, whether the value is present or not. Tested: Step 1: Login to WEB UI Step 2: Navigate to Hardware Status and Sensors Step 3: Check the sensor details with IPMI and redfish response Step 4: All the sensors and those details in the IPMI and redfish response are listing in Web UI Change-Id: Icf5098b3dd2413851e755d9ede17a8501cbb7411 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2022-12-19Removed the MemorySizeGlukhov Mikhail1-2/+0
Removed the MemorySize field for DIMMs, because it is missing in Redfish ``` https://www.dmtf.org/sites/default/files/standards/documents/DSP8010.zip ``` Change-Id: I12f37a601e429060765960f3c66b5249b84eabe7 Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
2022-11-10Fix In-page "Refresh" button doesn't update sensor readingswangqi021-1/+1
The reason for this problem is uniqBy always keep the first one when removing repetition Resolves: https://github.com/openbmc/webui-vue/issues/60 Change-Id: Iec87d7845e694b0f2a14de4061ae113eac492fc0 Signed-off-by: wangqi02 <wangqi02@inspur.com>
2022-05-11Revert "Filtered the IP address to IPv4 on sessions page"Jiaqing Zhao1-5/+1
In bmcweb/41d61c8 ("Convert IPv4-mapped IPv6 ClientIP back to IPv4"), bmcweb automatically converts IPv4 addresses to IPv4 format, workaround in webui-vue is no longer needed. The original patch also brings issue with displaying IPv6 addresses in Sessions tab. This reverts commit d902aa7b4f98b49d2a20ad8253bc15afd77e9349. Tested: Both IPv4 and IPv6 addresses are displayed correctly in Sessions. Change-Id: Ib56398de51526ee72168b5bf8427278bcb6f9c17 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2022-05-03Add missing Model mapping to Chassis StoreMichalX Szopinski1-0/+2
Add missing "model" mapping on "Hardware status" tab in chassis section. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I9a6bd4a7e4fbaaac72aa8d59cc065ba0bea040bd
2022-02-04Re-modeled Power restore radio buttonsKenneth Fullbright1-8/+8
When a user selects a radio button and saves, the selected setting should be patched. - Computed properties on generated bootstrap-vue radio buttons causes errors. - Re-modeled radio buttons to take Redfish api data on component render. - Mapped selected radio button value to patch the Redfish api property. - Added translations. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I22ce75d9ef840d7f0c2659bba855093e5b4559f4
2022-02-04Filtered the IP address to IPv4 on sessions pageSandeepa Singh1-1/+5
The IP address on sessions page is comming IPv6. It should be shown IPv4 address. Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I4d5d492b161c09a09f616849ad9d0e6eb32e9fd8
2022-02-04Add Key clear page under Operations sectionSandeepa Singh2-0/+27
This page will allow privileged user to clear encrypted keys. - Only admin and CE login user will be able to see the page - The UI will be different for both, admin and CE login user(service) - This page is IBM only Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ic6fe3454de815629a6b2250daa99ab21f2b316c3
2022-02-04Security Panel add additional featuresNikhil Ashoka1-0/+63
Added RTAD under Network interfaces Added VirtualTPM under Network services Removed the sub-headings in Policies page Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I6290362cecdfe7f8cd7bfde20fcaca88b6bc2c09
2022-01-28Add values to system inventory tableNikhil Ashoka1-0/+2
TotalSystemMemoryGiB and CoreCount field is not present. Added TotalSystemMemoryGiB under Memory summary Added CoreCount under Processor summary Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I598abc7c05dd5113db0071ecd71bbcc32ad696c4
2022-01-28Add ability to view all the dumpsSukanya Pandey1-7/+32
The story is integration of these two API responses for their respective dumps: 1.Resource and Hostboot dumps: redfish/v1/Systems/system/LogServices/Dump/Entries 2.BMC Dumps: /redfish/v1/Managers/bmc/LogServices/Dump/Entries Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I24ded733e682d21904e92e2e8be1951e46d33b09
2022-01-24Fixed DHCP UseNTPServers Property PatchKenneth Fullbright1-1/+1
DHCP property UseNTPServers is not working and its value is not getting reflected in backend. It always remains enabled irrespective on enable or disable on GUI. - Fixed the incorrect patch on the saveNtpState action. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: Id0b7240e38f68bea8e98694bdcbe4e36e723bbcb
2022-01-07Fixed Assembly table Identify LED switchesKenneth Fullbright1-1/+7
Identify LED should toggle on/off successfully Rewrote the patch code to work with the Redfish schema Set LocationIndicatorActive to true: curl -k -H "X-Auth-Token: $token" -X PATCH -d ' { "Assemblies":[ {"MemberId" : "0", "LocationIndicatorActive":true}, {"MemberId": "1", "LocationIndicatorActive":true} ] }' https://${bmc}/redfish/v1/Chassis/chassis/Assembly MemberId is required to reference which assembly LED to toggle Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: Id0a3cf4dc533f6a0205be9fd037b13f92647cc00
2022-01-07Fixed vuex dumps errorsKenneth1-5/+5
Refactored getters and dispatch names were not matching the getters and actions strings, which made dumps not work. Made the getters and dispatch names match the vuex getters and actions strings to the refactored codebase. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I414a7f85ef70c270785b825b3b14f9dfb27a33a7
2022-01-07Add missing properties to Dimms tableSandeepa Singh1-0/+12
- Added the following properties: Base module type, Bus width bits, Capacity MiB, Data width bits, Enabled, Operating speed Mhz - Design has been updated for Dimms table Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ifd77071abd9544120c1904065275ccc00dd8d862
2021-12-28Remove hardcoded chassis in Manage power usageMichalX Szopinski1-6/+22
Simmilar modification to https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/42988 which removes the hardcoded chassis name from url on Manage power usage tab. With this modification we are displaying only informations about first power device. This change also fixes the overwriting existing power cap value on load. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: Ia164db9f2c50d98bc767c0f4729e9572a2d01da1
2021-12-20[POC] login: Fix waiting in login page after loginLei YU1-2/+2
When the user enter the correct username/password and click the "Log in" button, sometimes the page stays at the login page. The user will have to reload the page, enter the username/password, and click the "Log in" button again to actually login the WebUI. From the browser's debug control, we could see it's waiting for the response of https://$bmc/redfish/v1/AccountService/Accounts/root and it does not get any response. From the BMC side, we could see the first login is successful. Somehow if we remove the async keyword of function checkPasswordChangeRequired(), the issue is not reproduced anymore. So this is a POC patch to fix the issue, but the root cause is unknown. Tested: Clear the browser's cookie, successful login multiple times. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I01e3ab5ca63baed18045915500fa8ca2e6b247ea
2021-12-03Network settings: Edit hostname and MAC addressDixsie Wolmers1-0/+23
Adds modals to edit hostname and mac address per interface. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I45d265c198afd1d9de9bb519a15a74e724f50f55
2021-12-03Network Settings: Add and Delete IPV4 and DNS addressDixsie Wolmers1-0/+119
Adds ability to add or delete static ipv4 and dns addesses per interface. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie143ded2f173dd48f137471a684ba0d35ab0bf69
2021-12-03Network settings redesign - interface settingsDixsie Wolmers1-59/+89
First commit of the network settings redesign: - Adds the global network settings section for DHCP settings - Adds read only hostname, FQDN and MAC address, modal to edit each will be done seperately - Removes interface specific sections to refactor in next commit - Adds tab component to display ethernet data by interface - Ability to edit, delete and add ipv4 addresses and DNS will be done in separate commit Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ibb1db6894ee697fec9e6ea1b8312d041c61faaad
2021-11-09Fix overview errorDixsie Wolmers1-0/+21
Console errors were related to the power and network card components from https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/46511 Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ib967229b74462ed8d5c28cbac24c2a2fbfc834c2
2021-10-28Add Dimms table missing propertiesSandeepa Singh1-1/+37
- Added the following properties: Model, Description, Spare part number, Location Number, Memory type, Memory size, Identify led - Design has been updated for Dimms table on inventory page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ife61396bd70c29df1b5ea55091adc8c6813b5cdc
2021-09-23Add Assemblies schema to Hardware Status - Inventory and LEDsSneha Patel2-0/+68
Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com> Change-Id: I1a4edae664d008a4f618d03d62e2319d8157ed6d
2021-09-21Change filtering virtual mediaGrzegorz Raguza1-3/+15
When Virtual Media image was configured and connected entry did not appear on the UI after opening in the new tab or after page refresh. The cause was filtering predicate. Proxy devices has transferProtocolType eq to 'OEM', legacy the onces that has no transferProtocolType. For mouting from the share the property exists and has value of 'CIFS'. I added object with all protocols (see docs), and change the filtering for legacy devices. New condition is all accept 'OEM'. Signed-off-by: Grzegorz Raguza <grzegorzx.raguza@intel.com> Change-Id: I7ba123f19f924536f131ec40d15715b7f50fc985
2021-09-15Location codes on Hardware status-Inventory and LEDsSneha Patel5-4/+8
Display location number on hardware inventory items Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com> Change-Id: Ib5555191f21ac4546d0b2e2af5b395aaa3a5357e
2021-08-30Use a 'V' symbol for voltage unitKonstantin Aladyshev1-1/+1
Currently webui-vue displays all sensor data with units written as symbols ('A', 'W', 'C', 'RPM') except for voltage which is written as 'Volts'. Use a 'V' symbol for voltage unit for unification. Change-Id: I257b6d6bf1d099f62a861430a6448368b56dace1 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2021-08-27Add system information on Appheader pageSukanya Pandey1-2/+19
- Model type and serial number are newly added system info data on Appheader. - On small screens and below system information(model type, serial number and asset tag) will be hidden. - On large screen and below model type and serial number will be visible but asset tag will be hidden. - For all other screens all the system info will be visible. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ia844a26f658083cbd5fa9c8f3f6bea8b65ddcd11
2021-08-20Resolve bug for identify LED switch in processor tableSukanya Pandey1-16/+11
Bug: While toggling identify LED for cpu0, in return other identify LEDs are also getting toggled which belongs to different CPUs. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ic48eba7b391a28f861e38f306233387819ad944c
2021-08-20Add system attention indicatorsSukanya Pandey1-17/+20
- Different LEDs and statuses will be added to hardware status page - Status for power will be shown and LED included is System identify Led Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I8689f7bf3cc02a7a90379ec50b005bf344c091e4
2021-08-20Move PowerControlStore to ResourceManagement folderDixsie Wolmers2-1/+1
Store module structure should match the view folder structure The Power page is under the Resource management section, so the store should also be in a similarly named folder. This makes it easier to find when looking for the correct store. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Iada30056eb738b91f35dc4c6b9b42b6b2be8d55c
2021-08-10IA update: Update access and control sectionSandeepa Singh6-77/+60
This is the fifth commit of the information architecture changes and has the following changes: - The icon for access and control has been updated - Access and control section has been updated to security and access section - Security settings page has been updated to policies page and moved to security and access section - Client sessions page has been updated to sessions page - Local user management page has been updated to user management page - SSL certificates page has been updated to certificates page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ie93cee9002742ecf7d33615636f4f159f4395fc4
2021-08-10IA update: Update configuration to settingsSandeepa Singh5-18/+12
This is the fourth update to information architecture changes and has the following changes: - The configuration section is updated to settings - The date and time settings page is updated to date and time - The network settings page is updated to network - The power restore policy page in operations section is moved to settings section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I6f5ab25f5227530be430bd39a4d9629b3bf09d8b
2021-08-10IA update: Update control section to operationsSandeepa Singh9-16/+13
This is the third update to the information architecture changes and has the following changes: - The control section has been updated to operations - The server led page has been removed - The firmware page is moved to operations section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I2e23da447890d7bee51892e1f782d5f2db6dded4
2021-08-10IA update: Update health sectionSandeepa Singh11-16/+16
This is the second update to information architecture changes and has the following changes: - Health section is updated to hardware status section - Hardware status page is updated to inventory and LEDs page - Route for sensors page has been updated Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ia1ba3a15a243a00f59a2ec646132436eb355a999
2021-08-10IA update: Add logs and update overview iconDerick Montague3-1/+1
This is the first patchset of the information architecture changes. These changes are the result of several months of design research with users to improve the existing information architecture (IA). More information can we found in the Github story. This patchset will add a Logs section and move event logs and dumps from the Health section to the new Logs section. It will also update the icon used for the Overview page. Github story: https://github.com/openbmc/webui-vue/issues/56 Testing: 1. IBM build: - Logs contained Event logs and dumps - Both pages rendered when clicking link 2. Intel build - Logs contained Event logs only - Logs page rendered when clicking link 3. Tested default build - Logs contained Event logs only - Logs page rendered when clicking link Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4621837202cf5ad3469d6ea460d9a5bdc79c8816
2021-07-28Add export all and delete all buttons to event logsDixsie Wolmers1-4/+7
- Uses new table action button style above table. - Adds ability to export all and delete all logs. - Disables toolbar table action buttons when table is empty. - Event logs file name is not translated to avoid potential translation issues in the future, users can rename the file - Adds toast messages for delete all - Updates resolve logs toast messages to use `tc` count Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Idda2ae309e4248db60f89f68669e6e3b9f2cb832
2021-07-28Add missing keys for en-US translationsDixsie Wolmers1-2/+2
- Updated power supplies to use identifyLed key - Updated system store identify LED toasts - Corrected DHCP key capitilization - Did not make changes to factory reset modal keys, they are being used dynamically with `${}` in the key. Same for Power restore policy `$t{powerState}` Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I19eeac4085326a2d18d90945028def88ec5ed991
2021-07-27Add hardware status power supply missing propertiesDixsie Wolmers1-3/+9
Adds efficiency percent, identify LED, manufacturer, hardware type, health and spare part number. Adds section divider in expanded row. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I74e146a233f5d3dda849db11e937cb9dea5bcbd7
2021-07-22Add download additional data functionalityDixsie Wolmers1-0/+2
Adds ability to download event log additional data data by row. The download attribute is not used to rename the file because it causes the download to fail in Chrome (Chromium bug for base64 files). Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I92164adc0a8ccf1bd6ed23cc5891a04fac47685b
2021-07-21Fix inconsistent power statusLei YU1-8/+5
The webui was using a websocket to subscribe the events from BMC for server status and logging. It uses a debouncer of 2.5 to limit the events, however, it causes the loss of the events, so the power change status event could be missed by the webui, causing the `Power` status is not really consistent. There was an issue in the property change handler as well that it assumes the `CurrentHostState` is there. However, certain event could be fired without `CurrentHostState` change, e.g. the "ForceWarmReboot" will get an host event of `RequestedHostTransition` without `CurrentHostState`'s change, the code will get an undefined `CurrentHostState` and the `Power` status becomes undetermined. Remove the 2.5 debouncer, and only set the power status when `CurrentHostState` is really received to fix the issue. Tested: Verify the `Power` status is consistent with the server status. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I732069fff954a2b8b1de4848115641903a8bc904
2021-07-21Add POST code logs pageSandeepa Singh2-0/+41
This page will be included in the Health section of the primary navigation. The user will be able to export and download POST code logs. Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I26cf1e01bfdfcf298f24f2c7dd9633ab7d31f1b5
2021-07-08Add system table missing propertiesSukanya Pandey1-1/+32
- Design is updated for system table. - Missing properties are added, added properties are: Hardware type, Location number, Memory summary data, Processor summary data and submodel. - Also adding functionality of toggling identify led switch Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I0e5143638ce2254f9b4fd2c8c520544c1db8d342
2021-07-01Add chassis table missing propertiesSandeepa Singh1-0/+34
- Added the following properties: Name, Location number, Identify led, Manufacturer, Chassis type, Asset tag, Max power watts, Min power watts - Design has been updated for chassis table Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Id2ef82573a4d17059dc9f4929155aa05cabef2aa