Foreign Key fixes:

1. Auto FK related fixes.
2. Properties tab not showing columns.
3. Toggle button is editable even if set to read-only.
4. Dropdown placeholder should be blank for read-only/disabled.
5. Input control help text color on a dark theme.

Fixes #6770
This commit is contained in:
Aditya Toshniwal
2021-09-22 18:18:09 +05:30
committed by Akshay Joshi
parent fc86faf51e
commit a8c8ea69e3
13 changed files with 29 additions and 195 deletions

View File

@@ -142,7 +142,6 @@ describe('CheckConstraintSchema', ()=>{
});
/* If partitioned table */
schemaObj.nodeInfo = {table: {}};
schemaObj.top = {
sessData: {
is_partitioned: true,

View File

@@ -196,7 +196,6 @@ describe('ExclusionConstraintSchema', ()=>{
it('depChange', ()=>{
let state = {columns: [{local_column: 'id'}]};
schemaObj.nodeInfo = {table: {}};
expect(getFieldDepChange(schemaObj, 'columns')(state, ['columns', 0], null, {
type: SCHEMA_STATE_ACTIONS.DELETE_ROW,
oldState: {

View File

@@ -171,6 +171,7 @@ describe('ForeignKeySchema', ()=>{
let state = {columns: [{local_column: 'id'}]};
let actionObj = {oldState:{name: 'fkname'}};
schemaObj.nodeInfo = {table: {}};
state.autoindex = true;
state.name = 'fkname';
expect(getFieldDepChange(schemaObj, 'autoindex')(state, null, null, actionObj)).toEqual({
@@ -196,7 +197,8 @@ describe('ForeignKeySchema', ()=>{
expect(getFieldDepChange(schemaObj, 'autoindex')(state, null, null, actionObj)).toEqual({});
state.oid = null;
schemaObj.nodeInfo = {table: {}};
schemaObj.nodeInfo = {};
schemaObj.top = schemaObj;
expect(getFieldDepChange(schemaObj, 'autoindex')(state, null, null, actionObj)).toEqual({
autoindex: false,
coveringindex: '',