mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Akshay Joshi
parent
fc86faf51e
commit
a8c8ea69e3
@@ -142,7 +142,6 @@ describe('CheckConstraintSchema', ()=>{
|
||||
});
|
||||
|
||||
/* If partitioned table */
|
||||
schemaObj.nodeInfo = {table: {}};
|
||||
schemaObj.top = {
|
||||
sessData: {
|
||||
is_partitioned: true,
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user