TWSD-1434 - APV: Unable to delete the Prometheus Metrix token from both Cli/Webui
Review Request #1330 — Created Jan. 22, 2026 and submitted — Latest diff uploaded
| Information | |
|---|---|
| shuinvy | |
| APV10 | |
| rel_apv_10_7 | |
| TWSD-1434 | |
| Reviewers | |
| austin, lucille | |
Only show valid token and remove expired filter menu
The Jira ticket:
https://arraynetworks.atlassian.net/browse/TWSD-1434In this ticket, I do 2 things:
1. Fix issue to match the requirement (Only show valid token and remove expired filter menu and Is Expired column)
2. Optimize the layoutTo sum up my changes:
1. There is still issue for theme: Blue/Dark, so I change the DOM for adding some class(for css),
and also modified the CSS for the margin or padding.
2. It will always trigger Switch Button change event, so I addedif (isInitializing) return;to prevent call it everytime loading the page.
3. The API/api/apv/prometheus/BasicSetting/_field_group?name=getwill call twice. I use localStoarage instead, and update it after updating the data.
4. The original dataTable usage will call API twice, first is get the total length, second is get the data. I changed it to server side render. And unbind event of checkboxes before bind event.
5. The delete API/api/apv/prometheus/Token/_deletemaybe return notjsonformat, so I removeddataType: 'json'.
6. There is no use ofgetNameMappingfunction, so I just removed it.
7. The functioninitializewill callgetBasicSetting, so I changed it to callinitializeinstead ofgetBasicSettingin the block$(document).ready(function() {});.
