mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Port query tool to React. Fixes #6131
2) Added status bar to the Query Tool. Fixes #3253 3) Ensure that row numbers should be visible in view when scrolling horizontally. Fixes #3989 4) Allow removing a single query history. Refs #4113 5) Partially fixed Macros usability issues. Ref #6969 6) Fixed an issue where the Query tool opens on minimum size if the user opens multiple query tool Window quickly. Fixes #6725 7) Relocate GIS Viewer Button to the Left Side of the Results Table. Fixes #6830 8) Fixed an issue where the connection bar is not visible. Fixes #7188 9) Fixed an issue where an Empty message popup after running a query. Fixes #7260 10) Ensure that Autocomplete should work after changing the connection. Fixes #7262 11) Fixed an issue where the copy and paste row does not work if the first column contains no data. Fixes #7294
This commit is contained in:
committed by
Akshay Joshi
parent
bf8e569bde
commit
b5b9ee46a1
@@ -122,7 +122,7 @@ def store(setting=None, value=None):
|
||||
store_setting(setting, value)
|
||||
except Exception as e:
|
||||
success = 0
|
||||
errormsg = e.message
|
||||
errormsg = str(e)
|
||||
|
||||
try:
|
||||
info = traceback.format_exc()
|
||||
@@ -141,12 +141,21 @@ def reset_layout():
|
||||
"""Reset configuration setting"""
|
||||
|
||||
try:
|
||||
db.session.query(Setting) \
|
||||
.filter(Setting.user_id == current_user.id)\
|
||||
.filter((Setting.setting == 'Browser/Layout') |
|
||||
(Setting.setting == 'SQLEditor/Layout') |
|
||||
(Setting.setting == 'Debugger/Layout'))\
|
||||
.delete()
|
||||
if request.params['setting'] in [
|
||||
'Browser/Layout', 'SQLEditor/Layout', 'Debugger/Layout']:
|
||||
db.session.query(Setting) \
|
||||
.filter(Setting.user_id == current_user.id) \
|
||||
.filter((Setting.setting == 'Browser/Layout') |
|
||||
(Setting.setting == 'SQLEditor/Layout') |
|
||||
(Setting.setting == 'Debugger/Layout')) \
|
||||
.delete()
|
||||
else:
|
||||
db.session.query(Setting) \
|
||||
.filter(Setting.user_id == current_user.id)\
|
||||
.filter((Setting.setting == 'Browser/Layout') |
|
||||
(Setting.setting == 'SQLEditor/Layout') |
|
||||
(Setting.setting == 'Debugger/Layout'))\
|
||||
.delete()
|
||||
|
||||
db.session.commit()
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user