Add project_id for image

This patch adds project_id for image into index view.

Change-Id: I3ed29aa252c839b058c2f1f4db1e213f5155f031
This commit is contained in:
Shu Muto 2017-12-27 16:57:19 +09:00
parent 9128058061
commit efa2b2c8e5
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<hz-resource-property-list
resource-type-name="OS::Zun::Image"
item="item"
property-groups="[['id', 'image_id']]">
property-groups="[['id', 'image_id', 'project_id']]">
</hz-resource-property-list>

View File

@ -83,6 +83,10 @@
.append({
id: 'image_id',
priority: 3
})
.append({
id: 'project_id',
priority: 2
});
// for magic-search
registry.getResourceType(resourceType).filterFacets
@ -105,6 +109,11 @@
'label': gettext('Image ID'),
'name': 'image_id',
'singleton': true
})
.append({
'label': gettext('Project ID'),
'name': 'project_id',
'singleton': true
});
}
@ -114,7 +123,8 @@
'repo': { label: gettext('Image'), filters: ['noValue'] },
'tag': { label: gettext('Tag'), filters: ['noValue'] },
'size': { label: gettext('Size'), filters: ['noValue', 'bytes'] },
'image_id': { label: gettext('Image ID'), filters: ['noValue'] }
'image_id': { label: gettext('Image ID'), filters: ['noValue'] },
'project_id': { label: gettext('Project ID'), filters: ['noValue'] }
};
}