Implement column node and its features for foreign table. #640, #6373, #6674

This commit is contained in:
Yogesh Mahajan
2023-09-26 15:03:03 +05:30
committed by GitHub
parent 5736e173ea
commit 3cd547f879
57 changed files with 2037 additions and 159 deletions

View File

@@ -228,20 +228,6 @@ describe('ForeignTableColumnSchema', ()=>{
mount(getEditView(schemaObj, getInitData));
});
it('column editable', ()=>{
let state = {};
let editable = _.find(schemaObj.fields, (f)=>f.id=='attname').editable;
let status = editable(state);
expect(status).toBe(true);
});
it('typdefault editable', ()=>{
let state = {};
let editable = _.find(schemaObj.fields, (f)=>f.id=='typdefault').editable;
let status = editable(state);
expect(status).toBe(true);
});
it('typdefault_edit', ()=>{
let defaultSchemaObj = new ForeignTableSchema(
()=>new MockSchema(),

View File

@@ -710,6 +710,8 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
self.parent_ids['fsid'] = object_id
elif endpoint.__contains__("NODE-role.obj"):
object_name = object_data['rolname']
elif endpoint.__contains__("NODE-foreign_table"):
self.parent_ids['tid'] = object_id
# Store object id with object name
self.all_object_ids[object_name] = object_id