Show fill factor, toast tuple target and parallel workers in the table Properties panel. #9212 (#10594)
This commit is contained in:
@@ -894,17 +894,17 @@ export default class TableSchema extends BaseUISchema {
|
||||
},
|
||||
{
|
||||
id: 'fillfactor', label: gettext('Fill factor'), type: 'int',
|
||||
mode: ['create', 'edit'], min: 10, max: 100,
|
||||
mode: ['properties', 'create', 'edit'], min: 10, max: 100,
|
||||
group: 'advanced',
|
||||
disabled: obj.isPartitioned,
|
||||
},{
|
||||
id: 'toast_tuple_target', label: gettext('Toast tuple target'), type: 'int',
|
||||
mode: ['create', 'edit'], min: 128, min_version: 110000,
|
||||
mode: ['properties', 'create', 'edit'], min: 128, min_version: 110000,
|
||||
group: 'advanced',
|
||||
disabled: obj.isPartitioned,
|
||||
},{
|
||||
id: 'parallel_workers', label: gettext('Parallel workers'), type: 'int',
|
||||
mode: ['create', 'edit'], group: 'advanced', min_version: 90600,
|
||||
mode: ['properties', 'create', 'edit'], group: 'advanced', min_version: 90600,
|
||||
disabled: obj.isPartitioned,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -62,6 +62,17 @@ describe('TableSchema', () => {
|
||||
await getPropertiesView(createTableSchemaObject(), getInitData);
|
||||
});
|
||||
|
||||
it('storage parameters are shown in properties', () => {
|
||||
// Fill factor, toast tuple target and parallel workers are shown in
|
||||
// the dialog's Advanced tab, so the Properties panel should show
|
||||
// them too (issue #9212).
|
||||
['fillfactor', 'toast_tuple_target', 'parallel_workers'].forEach((id)=>{
|
||||
const field = _.find(schemaObj.fields, (f)=>f.id==id);
|
||||
expect(field.mode).toEqual(['properties', 'create', 'edit']);
|
||||
expect(field.group).toBe('advanced');
|
||||
});
|
||||
});
|
||||
|
||||
it('getTableOid', () => {
|
||||
schemaObj.inheritedTableList = [
|
||||
{label: 'tab1', tid: 140391},
|
||||
|
||||
Reference in New Issue
Block a user