open-nomad/ui/app/utils
Buck Doyle 7b42bb0e2d
ui: Fix server list leader determination for IPv6 (#10530)
This closes #10513, thanks to @bastelfreak for the report.
GET /status/leader returns an IPv6 host with square brackets
around the IP address as expected, but the rpcAddr property
on the agent model does not.

This fixes rpcAddr, updates the Mirage /status/leader mock
to properly format an IPv6 host, and changes the agent
factory to sometimes produce IPv6 addresses.

I added a formatHost utility function to centralise the
conditional square bracket-wrapping that would have
otherwise been further scattered around.
2021-05-13 12:29:51 -05:00
..
classes Correctly sort tasks in alloc stat tracker so the main task takes precedence 2021-03-24 15:10:46 -07:00
properties
styleguide
add-to-path.js
breadcrumb-utils.js
codes-for-error.js
escape-task-name.js
fetch.js
format-duration.js
format-host.js ui: Fix server list leader determination for IPv6 (#10530) 2021-05-13 12:29:51 -05:00
generate-exec-url.js
ip-parts.js
json-with-default.js
keys.js
message-from-adapter-error.js
no-leader-error.js
notify-error.js
notify-forbidden.js
open-exec-url.js
ott-exchange-error.js Add exchange of one-time token on UI load (#10066) 2021-04-01 13:21:30 -05:00
qp-serialize.js ui: Update namespaces design (#10444) 2021-04-29 15:00:59 -05:00
remove-record.js
resources-diffs.js Use common helpers and utils for formatting hertz 2021-03-31 09:29:14 -07:00
stream-frames.js
timeout.js
units.js Aggregate the BANs in the cluster details panel 2021-03-31 09:29:14 -07:00
wait.js