consul/ui-v2/app/utils
John Cowen b29546e578 Looking into atob functionality, consequence of Value: null
The Consul API can pass through `Value: null` which does not get cast to
a string by ember-data. This snowballs into problems with `atob` which
then tried to decode `null`.

There are 2 problems here.

1. `Value` should never be `null`
  - I've added a removeNull function to shallowly loop though props and
  remove properties that are `null`, for the moment this is only on
  single KV JSON responses - therefore `Value` will never be `null`
  which is the root of the problem

2. `atob` doesn't quite follow the `window.atob` API in that the
`window.atob` API casts everything down to a string first, therefore it
will try to decode `null` > `'null'` > `crazy unicode thing`.
  - I've commented in a fix for this, but whilst this shouldn't be
  causing anymore problems in our UI (now that `Value` is never `null`),
  I'll uncomment it in another future release. Tests are already written
  for it which more closely follow `window.atob` but skipped for now
  (next commit)
2018-07-05 13:35:06 +01:00
..
http More detailed error messages for duplicate intentions 2018-06-25 12:25:15 -07:00
model Tie up real endpoints 2018-06-25 12:25:15 -07:00
ascend.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
atob.js Looking into atob functionality, consequence of Value: null 2018-07-05 13:35:06 +01:00
btoa.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
callable-type.js More detailed error messages for duplicate intentions 2018-06-25 12:25:15 -07:00
confirm.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
createURL.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
distance.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
error.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
get-component-factory.js Make sure `didAppear` and therefore `resize` is called on change 2018-06-12 11:24:36 +01:00
hasStatus.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
injectableRequestToJQueryAjaxHash.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
isFolder.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
keyToArray.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
left-trim.js Adds filtering to the KV listing page 2018-06-12 11:24:35 +01:00
makeAttrable.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
promisedTimeout.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
qsa-factory.js Make sure `didAppear` and therefore `resize` is called on change 2018-06-12 11:24:36 +01:00
remove-null.js Looking into atob functionality, consequence of Value: null 2018-07-05 13:35:06 +01:00
right-trim.js Adds filtering to the KV listing page 2018-06-12 11:24:35 +01:00
sumOfUnhealthy.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
tomography.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
ucfirst.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00