Skip to content

Commit

Permalink
TP: Add Reval/Config Status to Servers Table (#7812)
Browse files Browse the repository at this point in the history
* Add status to Servers Table

* Remove pnpm file

* Changelog

---------

Co-authored-by: Steve Hamrick <shamrick@apache.org>
  • Loading branch information
shamrickus and shamrickus committed Sep 21, 2023
1 parent 805668f commit 7ebf460
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1,643 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [unreleased]
### Added
- [#7812](https://github.com/apache/trafficcontrol/pull/7812) *Traffic Portal*: Expose the `configUpdateFailed` and `revalUpdateFailed` fields on the server table.

## [8.0.0] - 2023-09-20
### Added
- [#7672](https://github.com/apache/trafficcontrol/pull/7672) *Traffic Control Health Client*: Added peer monitor flag while using `strategies.yaml`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,30 @@ var TableServersController = function(servers, $scope, $state, $uibModal, locati
filter: true,
cellRenderer: "updateCellRenderer"
},
{
headerName: "Reval Status",
hide: true,
filter: true,
cellRenderer: "checkCellRenderer",
valueGetter: function(params) {
return !params.data.revalUpdateFailed;
},
tooltipValueGetter: function(params) {
return "The last server reval " + (params.data.revalUpdateFailed ? "failed" : "was successful");
},
},
{
headerName: "Config Status",
hide: true,
filter: true,
cellRenderer: "checkCellRenderer",
valueGetter: function(params) {
return !params.data.configUpdateFailed;
},
tooltipValueGetter: function(params) {
return "The last server config update " + (params.data.configUpdateFailed ? "failed" : "was successful");
},
},
{
headerName: "Router Hostname",
field: "routerHostName",
Expand Down Expand Up @@ -241,7 +265,7 @@ var TableServersController = function(servers, $scope, $state, $uibModal, locati
hide: true,
filter: "agDateColumnFilter",
relative: true
}
},
];

/** All of the statuses (populated on init). */
Expand Down

0 comments on commit 7ebf460

Please sign in to comment.