open-nomad/ui/app/models
Buck Doyle 09067b4eb7
UI: Fix client sorting (#6817)
There are two changes here, and some caveats/commentary:

1. The “State“ table column was actually sorting only by status. The state was not an actual property, just something calculated in each client row, as a product of status, isEligible, and isDraining. This PR adds isDraining as a component of compositeState so it can be used for sorting.

2. The Sortable mixin declares dependent keys that cause the sort to be live-updating, but only if the members of the array change, such as if a new client is added, but not if any of the sortable properties change. This PR adds a SortableFactory function that generates a mixin whose listSorted computed property includes dependent keys for the sortable properties, so the table will live-update if any of the sortable properties change, not just the array members. There’s a warning if you use SortableFactory without dependent keys and via the original Sortable interface, so we can eventually migrate away from it.
2019-12-12 13:06:54 -06:00
..
.gitkeep sync 2017-09-19 10:08:23 -05:00
agent.js ES5 getters codemod 2019-04-10 14:54:36 -07:00
allocation.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
consul-connect.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
deployment.js ES5 getters codemod 2019-04-10 14:54:36 -07:00
drain-strategy.js Display node drain strategy information on the client detail page 2018-05-30 11:27:21 -07:00
evaluation.js UI: Add creation time to evaluations table (#6050) 2019-08-22 08:11:24 -05:00
job-plan.js Data modeling for preemptions 2019-04-22 16:40:00 -07:00
job-summary.js Refactor job summary to a relationship 2018-03-02 16:21:13 -08:00
job-version.js sync 2017-09-19 10:08:23 -05:00
job.js UI: Update to Ember 3.8 LTS (#5968) 2019-10-08 13:44:19 -05:00
namespace.js Use the new ember modules imports 2018-01-17 09:02:04 -08:00
network.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
node-attributes.js UI: Update to Ember 3.8 LTS (#5968) 2019-10-08 13:44:19 -05:00
node-driver.js ES5 getters codemod 2019-04-10 14:54:36 -07:00
node-event.js Tag node events with the driver when available 2018-05-25 11:48:49 -07:00
node.js UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
placement-failure.js Models evaluation data 2017-11-29 20:12:12 -08:00
policy.js Data modeling for tokens and policies 2017-10-16 13:27:51 -07:00
reschedule-event.js Add shortId properties to reschedule events model 2018-05-04 19:36:54 -07:00
resources.js sync 2017-09-19 10:08:23 -05:00
service.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
sidecar-proxy-upstream.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
sidecar-proxy.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
sidecar-service.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
task-event.js Read the task event message from the DisplayMessage prop 2018-03-28 12:52:02 -07:00
task-group-deployment-summary.js Show the progress deadline for task groups in a running deployment 2018-06-06 17:35:18 -07:00
task-group-summary.js Use the new ember modules imports 2018-01-17 09:02:04 -08:00
task-group.js UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
task-state.js UI: Fix Connect proxy tag (#6343) 2019-09-19 08:09:49 -05:00
task.js UI: Move kind property to task (#6271) 2019-09-05 13:14:54 -05:00
token.js Use the new ember modules imports 2018-01-17 09:02:04 -08:00