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

shuinvy
APV10
rel_apv_10_7
TWSD-1434
austin, lucille

Only show valid token and remove expired filter menu

The Jira ticket:
https://arraynetworks.atlassian.net/browse/TWSD-1434

In 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 layout

To 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 added if (isInitializing) return; to prevent call it everytime loading the page.
3. The API /api/apv/prometheus/BasicSetting/_field_group?name=get will 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/_delete maybe return not json format, so I removed dataType: 'json'.
6. There is no use of getNameMapping function, so I just removed it.
7. The function initialize will call getBasicSetting, so I changed it to call initialize instead of getBasicSetting in the block $(document).ready(function() {});.


    Loading...