ui: Change partitions to expect `[]` from the API (#11791)
This commit is contained in:
parent
374be91fa6
commit
c6c1b9f13a
|
@ -0,0 +1,3 @@
|
|||
```release-note:bugfix
|
||||
ui: Change partitions to expect [] from the listing API
|
||||
```
|
|
@ -11,7 +11,7 @@ export default class PartitionSerializer extends Serializer {
|
|||
respond((headers, body) => {
|
||||
return cb(
|
||||
headers,
|
||||
body.Partitions.map(item => {
|
||||
body.map(item => {
|
||||
item.Partition = '*';
|
||||
item.Namespace = '*';
|
||||
return item;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"Partitions": [
|
||||
[
|
||||
{
|
||||
"Name": "default",
|
||||
"Description": "Builtin Default Partition"
|
||||
|
@ -27,4 +26,3 @@ ${i === 0 ? `
|
|||
}
|
||||
`)}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ module('Integration | Serializer | partition', function(hooks) {
|
|||
url: `/v1/partitions?dc=${dc}`,
|
||||
};
|
||||
return get(request.url).then(function(payload) {
|
||||
const expected = payload.Partitions.map(item =>
|
||||
const expected = payload.map(item =>
|
||||
Object.assign({}, item, {
|
||||
Datacenter: dc,
|
||||
Namespace: '*',
|
||||
|
|
Loading…
Reference in New Issue