consul/ui/packages/consul-ui/app
John Cowen 25f989753b
ui: Adds @NullValue attr decorator (#9587)
There are many places in the API where we receive a property set to
`null` which can then lead to defensive code deeper in the app in order
to guard for this type of thing when usually we are expecting an array
or for the property to be undefined using omitempty on the backend.

Previously we had two places where we would deal with this in the
serializer using our 'remove-null' util (KV and Intentions).

This new decorator lets you declaritively define this type of data using
a decorator @NullValue([]) (which would replce a null value with [].

@NullValue in turn uses a more generic @replace helper, which we
currently don't need but would let you replace any value with another,
not just a null value.

An additional benefit here is that the guard/replacement is executed
lazily when we get the property instead of serializing all the values
when they come in via the API. On super large datasets, where we only
visualize part of the dataset (say in our scroll panes), this feels like
a good improvement on the previous approach.
2021-01-27 10:41:24 +00:00
..
adapters ui: [BUGFIX] Request intention listing with ns parameter (#9432) 2021-01-04 17:22:10 +00:00
components ui: Re-organize our %h* placeholders (#9584) 2021-01-26 17:53:45 +00:00
controllers ui: Misc changes for Catalog area (#9414) 2020-12-17 16:35:01 +00:00
decorators ui: Adds @NullValue attr decorator (#9587) 2021-01-27 10:41:24 +00:00
filter/predicates ui: Search/filtering 'Filtered by:' search status (#9442) 2021-01-25 18:13:54 +00:00
forms ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
helpers ui: Improves the 'you must provide ... to `generate`' error from href-to (#9514) 2021-01-19 15:25:37 +00:00
initializers ui: Remove unnecessay reopens from sort and form services (#9146) 2020-11-10 14:36:27 +00:00
instance-initializers ui: document-attrs helper (#9336) 2020-12-09 09:22:01 +00:00
mixins ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
models ui: Adds @NullValue attr decorator (#9587) 2021-01-27 10:41:24 +00:00
modifiers ui: New overlays (#9305) 2020-12-02 09:43:34 +00:00
routes ui: Search/filtering 'Filtered by:' search status (#9442) 2021-01-25 18:13:54 +00:00
routing ui: Add 'Search Across' for finer grained searching (#9282) 2020-12-01 15:45:09 +00:00
search/predicates ui: Fuzzy and Regex searching (#9424) 2020-12-18 10:38:15 +00:00
serializers ui: Adds @NullValue attr decorator (#9587) 2021-01-27 10:41:24 +00:00
services ui: Sidebar navigation / redesign (#9553) 2021-01-26 17:40:33 +00:00
sort/comparators ui: HealthCheck Search/Sort/Filtering (#9314) 2020-12-07 09:14:30 +00:00
styles ui: Re-organize our %h* placeholders (#9584) 2021-01-26 17:53:45 +00:00
templates ui: Re-organize our %h* placeholders (#9584) 2021-01-26 17:53:45 +00:00
utils ui: Adds @NullValue attr decorator (#9587) 2021-01-27 10:41:24 +00:00
validations ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
app.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
env.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
formats.js ui: Install ember-intl (#9399) 2020-12-15 18:29:32 +00:00
index.html ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
router.js ui: Delete Proxy Info tab (#9141) 2020-11-10 11:31:47 -05:00