1. Intermittently failing test cases.

2. Dialog vertical position should be more on the upper side.
3. File not supported error is not showing.

refs #7313
This commit is contained in:
Aditya Toshniwal
2022-07-25 11:48:27 +05:30
committed by Akshay Joshi
parent 96c360e728
commit a7fd7d67b3
3 changed files with 11 additions and 4 deletions

View File

@@ -349,7 +349,12 @@ export default function Query() {
eventBus.registerListener(QUERY_TOOL_EVENTS.LOAD_FILE, (fileName)=>{
queryToolCtx.api.post(url_for('sqleditor.load_file'), {
'file_name': decodeURI(fileName),
}, {transformResponse: [(data) => { return data; }]}).then((res)=>{
}, {transformResponse: [(data, headers) => {
if(headers['content-type'].includes('application/json')) {
return JSON.parse(data);
}
return data;
}]}).then((res)=>{
editor.current.setValue(res.data);
//Check the file content for Trojan Source
checkTrojanSource(res.data);