open-consul/ui/packages/consul-ui/app/serializers
John Cowen a509655d0b
ui: Adds Partitions to the HTTP layer (#10447)
This PR mainly adds partition to our HTTP adapter. Additionally and perhaps most importantly, we've also taken the opportunity to move our 'conditional namespaces' deeper into the app.

The reason for doing this was, we like that namespaces should be thought of as required instead of conditional, 'special' things and would like the same thinking to be applied to partitions.

Now, instead of using code throughout the app throughout the adapters to add/remove namespaces or partitions depending on whether they are enabled or not. As a UI engineer you just pretend that namespaces and partitions are always enabled, and we remove them for you deeper in the app, out of the way of you forgetting to treat these properties as a special case.

Notes:

Added a PartitionAbility while we were there (not used as yet)
Started to remove the CONSTANT variables we had just for property names. I prefer that our adapters are as readable and straightforwards as possible, it just looks like HTTP.
We'll probably remove our formatDatacenter method we use also at some point, it was mainly too make it look the same as our previous formatNspace, but now we don't have that, it instead now looks different!
We enable parsing of partition in the UIs URL, but this is feature flagged so still does nothing just yet.
All of the test changes were related to the fact that we were treating client.url as a function rather than a method, and now that we reference this in client.url (etc) it needs binding to client.
2021-09-15 18:09:55 +01:00
..
acl.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
application.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
auth-method.js ui: Auth Methods List view (#9617) 2021-02-17 13:56:56 -05:00
binding-rule.js ui: Auth Methods - Create Binding Rules tab (#9914) 2021-03-26 11:47:47 -04:00
coordinate.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
dc.js ui: Show local datacenter by default on first visit (#9377) 2020-12-14 15:29:40 +00:00
discovery-chain.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
http.js ui: New search/sort/filtering bar for Node > ServiceInstances (#9326) 2020-12-09 13:08:30 +00:00
intention.js ui: Adds @NullValue attr decorator (#9587) 2021-01-27 10:41:24 +00:00
kv.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
node.js ui: Move linting to the `node:test` script (#9385) 2020-12-14 15:28:35 +00:00
nspace.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
oidc-provider.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
permission.js ui: Restrict the viewing/editing of certain UI elements based on the users ACLs (#9687) 2021-02-19 16:42:16 +00:00
policy.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
proxy.js ui: Rename a model attribute to not be overwritten by ember-data (#9524) 2021-01-12 09:53:21 -05:00
role.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
service-instance.js ui: New search/sort/filtering bar for Node > ServiceInstances (#9326) 2020-12-09 13:08:30 +00:00
service.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
session.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
token.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
topology.js ui: Topology Intentions Popovers (#9137) 2020-11-12 10:40:15 -05:00