Servers table switch to ag-grid#4769
Conversation
|
"Clear Server Updates" is meant to be disabled when the server isn't a cache server and/or doesn't have pending updates. "Queue Server Updates" is meant to be disabled when the server isn't a cache server and/or does have pending updates. Just to be clear about the intended behavior, because the old context menu would hide those options instead of disabling them. Clearly, though, that's a cache server, and it looks like it has updates pending. So something's probably wrong. |
There was a problem hiding this comment.
A couple suggestions:
- add a global search if it's not too hard. i think there is value in the ability to do a quick search across all columns. and the less functionality lost, the easier the transition to the new grid. plus, i think it might help getting the TP tests to pass.
- i've found that some people don't like pagination or they like to adjust the number of rows in a page. maybe infinite scroll would be cool or at least a way to adjust pagination counts.
- cdn column is empty but i think you know that.
otherwise, very cool!
yeah, something is weird there. it's a cache server and updPending=true so "clear updates" should be an option. i looked at the logic and it seemed right so not sure: |
|
"cdn column is empty" is already fixed. Might not have pushed it. |
fb95edd to
7cf8e98
Compare
|
nit: the context menu doesn't close when you select 'open in new tab" or "navigate to fqdn" or "show charts". basically anything that opens a new window/tab |
|
That should be fixed now |
* Added ag-grid tables to TP * Fixed build issues * Replaced servers table with agGrid * Switch to tabs * Started setting up context menu support * Added some context menu functionality, fixed some styling * Put styling in the stylesheet; added server delete to context menu * Moved menu outside of panel * Added server status update to context menu * Added queue updates to context menu * Added clear updates to context menu; added disabled menuitem styling * Fixed a type error, finished context menu * Removed unused things, general clean-up and re-organization * added CSV export * Rolled back changes to source of AngularJS * Fixed menuitem button styling * table now saves sort, filter, and column state * table now saves column sizes * Rolled back inneffectual browserify changes * fixes server TP tests to work with ag-grid * fixes broken TP ds test * adds a new super controller for the *servers tables * Fixed blank CDNs column * Fixed incorrect update pending label icon * Removed unused coldef properties, removed unused gridOptions property * Fixed broken 'show charts' button in servers table context menu * Fixed context menu not closing when certain actions were selected Co-authored-by: Jeremy Mitchell <mitchell852@gmail.com> (cherry picked from commit e5d7dc8)



What does this PR (Pull Request) do?
Switches the "/servers" table from jQuery datatables to agGrid, increasing load speed by a factor of about 14.
The new tables have a superset of the functionality of the old tables.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Run Traffic Portal - preferably with a whole ton of servers so you can be impressed by the lightning fast load speed (at least compared to the jQuery data tables).
If #4747 isn't merged yet then you'll need to be using a version of TO that doesn't include the changes from #4700 .
The following criteria are ALL met by this PR