open-nomad/ui/mirage
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
..
data Move resource generation helper to a common place 2018-04-20 18:10:41 -07:00
factories ui: Fix server list leader determination for IPv6 (#10530) 2021-05-13 12:29:51 -05:00
models csi/api: populate ReadAllocs/WriteAllocs fields (#9377) 2020-11-25 16:44:06 -05:00
scenarios ui: Update namespaces design (#10444) 2021-04-29 15:00:59 -05:00
serializers Fix allocation count in CSI volumes table (#9515) 2020-12-07 08:51:41 -06:00
common.js ui: Add optional memory max to task details ribbon (#10459) 2021-04-28 15:38:14 -05:00
config.js ui: Fix server list leader determination for IPv6 (#10530) 2021-05-13 12:29:51 -05:00
faker.js Add DAS UI code from enterprise (#9192) 2020-10-29 07:46:42 -05:00
utils.js UI: Change Mirage data to be stable in development (#6389) 2019-10-03 09:13:08 -05:00