mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ignore SQLAlchemy vulnerability as it is ignored by the upstream too.
Fix BigAnimal database versions by type. #5637
This commit is contained in:
@@ -108,11 +108,11 @@ export function BigAnimalDatabase(props) {
|
||||
return url_for('biganimal.db_types');
|
||||
}
|
||||
}),
|
||||
db_versions: ()=>getNodeAjaxOptions('biganimal_db_versions', pgAdmin.Browser.Nodes['server'], props.nodeInfo, props.nodeData, {
|
||||
db_versions: (db_type)=>getNodeAjaxOptions('biganimal_db_versions', pgAdmin.Browser.Nodes['server'], props.nodeInfo, props.nodeData, {
|
||||
useCache:false,
|
||||
cacheNode: 'server',
|
||||
customGenerateUrl: ()=>{
|
||||
return url_for('biganimal.db_versions');
|
||||
return url_for('biganimal.db_versions', {'db_type': db_type || 'pg'});
|
||||
}
|
||||
}),
|
||||
server_groups: ()=>getNodeListById(pgAdmin.Browser.Nodes['server_group'], props.nodeInfo, props.nodeData),
|
||||
|
||||
@@ -538,9 +538,16 @@ class BigAnimalDatabaseSchema extends BaseUISchema {
|
||||
options: this.fieldOptions.db_types,
|
||||
noEmpty: true, orientation: 'vertical',
|
||||
},{
|
||||
id: 'postgres_version', label: gettext('PostgreSQL version'), type: 'select',
|
||||
mode: ['create'], noEmpty: true,
|
||||
id: 'postgres_version', label: gettext('PostgreSQL version'),
|
||||
mode: ['create'], noEmpty: true, deps: ['database_type'],
|
||||
options: this.fieldOptions.db_versions,
|
||||
type: (state) => {
|
||||
return {
|
||||
type: 'select',
|
||||
options: ()=>this.fieldOptions.db_versions(state.database_type),
|
||||
optionsReloadBasis: state.database_type,
|
||||
};
|
||||
},
|
||||
},{
|
||||
id: 'password', label: gettext('Database password'), type: 'password',
|
||||
mode: ['create'], noEmpty: true,
|
||||
|
||||
Reference in New Issue
Block a user