Aditya Toshniwal
f16498a8a7
Optimize Webpack to improve overall performance.
...
Changes include:
1) Remove underscore-string and sprintf-js packages as we were using only %s. Instead, added a function to do the same. Also changed gettext to behave like sprintf directly.
2) backgrid.sizeable.columns was not used anywhere, removed. @babel/polyfill is deprecated, replaced it with core-js.
3) Moved few css to make sure they get minified and bundled.
4) Added Flask-Compress to send static files as compressed gzip. This will reduce network traffic and improve initial load time for pgAdmin.
5) Split few JS files to make code reusable.
6) Lazy load few modules like leaflet, wkx is required only if geometry viewer is opened. snapsvg loaded only when explain plan is executed. This will improve sqleditor initial opening time.
Reviewed By: Khushboo Vashi
Fixes #4701
2019-10-10 12:05:28 +05:30
Ashesh Vashi
6e4923d762
Fixes # 4778 - Implement the query plan analyzer
...
Look 'n' Feel and implementation logic are inspired from
'http://explain.depsez.com '.
It now creates three tabs under the 'Explain' panel when executing a
query using the Explain Analyze/Explain button from the toolbar of the
Query tool.
Graphical
---------
-> Graphical Explain Plan
Analysis
--------
-> Table to show details of the explain plan analyse.
-> Each row represents the statistics per Explain Plan Node
-> It may contains columns like node information, exclusive timing
(time spent for this explain node excluding the child nodes),
inclusive timing, actual rows, plan rows,
rowsx (misestimation between planned vs actual rows), loop.
-> Background color of exclusive, inclusive, rows changes based on
their values.
i.e.
If Percentage of exclusive, and inclusive timings of total query time
is:
> 90 - Red Color
> 50 - Orange (Between Red & Yellow Color)
> 10 - Yellow color
If planner misestimation for the rows is
> 1000 times - Red Color
> 100 times - Orange (Between Red & Yellow Color)
> 10 times - Yellow Color
Also - if actual rows <= planned rows then it shows up arrow, else it
shows down arrow.
Statistics
----------
-> It contains a HTML table for the statistics per Node Type, and
a HTML table for the statistics per table.
Reviewed by: Akshay Joshi
2019-10-08 16:44:24 +05:30
Akshay Joshi
55c6fa0d93
Fix an error where 'false' string is displayed when we add a new parameter in the Parameters tab,
...
also clear the old value when the user changes the parameter name.
Corrected the implementation of BooleanCellFormatter.
Fixes #4753
2019-10-07 16:00:28 +05:30
Aditya Toshniwal
41ee58e79a
Highlighted the color of closing or opening parenthesis when user select them in CodeMirror. Fixes #4728
2019-10-04 13:55:00 +05:30
Khushboo Vashi
56e00d74ad
There is no option to Copy data with headers from Query Tool/View Data.
...
Added drop-down 'Copy with headers' near to the copy button in Query Tool/View Data.
Fixes #3009
2019-09-27 12:14:39 +05:30
Aditya Toshniwal
73dc130908
Fix issue where pgAdmin does not load completely if loaded in an iframe. Fixes #4756
2019-09-23 12:55:02 +05:30
Akshay Joshi
da553eec9b
Ensure port and username should not be mandatory when a service is provided. Fixes #4642
2019-09-13 11:54:16 +05:30
Aditya Toshniwal
1c2ba72f02
Add editor options for plain text mode and to disable block folding to
...
workaround rendering speed issues in CodeMirror with very large scripts.
Fixes #4631 .
Re-arrange editor options in the Preferences dialogue to tidy things up.
2019-09-04 15:46:08 +01:00
Aditya Toshniwal
06ad6b8ba8
1) Ensure Boolean columns should be editable using keyboard keys. Fixes #3778
...
2) Ensure Boolean columns should be editable in View/Edit data and Query Tool. Fixes #4487
2019-08-28 11:09:30 +05:30
Yosry Muhammad
f8f7d5ac6f
Ensure editable and read-only columns in Query Tool should be identified by icons and tooltips in the column header. Fixes #4667
2019-08-26 14:17:40 +05:30
Yosry Muhammad
5887fb3815
Some refactoring of sqleditor.js.
2019-08-23 16:15:43 +01:00
Aditya Toshniwal
234efc3be7
Don't wait for the database connection before rendering the Query Tool UI, for improved UX. Fixes #4453
...
In addition, unescape HTML entities in database names in the Query Tool title bar. Fixes #4584
2019-08-23 12:14:20 +01:00
Yosry Muhammad
687204771c
Add support in query history to show internal queries generated by pgAdmin during save data operations. Fixes #4612
2019-08-16 17:17:12 +05:30
Aditya Toshniwal
1281f5cd6c
Fix console error when changing kind(SQL/BATCH) for pgAgent job step. Fixes #4582
2019-08-08 18:43:38 +05:30
Aditya Toshniwal
6800b1f723
Add an optimisation to the internal code responsible for searching for treeview nodes. Fixes #4570
...
Attached is a tiny but very effective patch to improve the speed of
finding a node using path (used internally).
If you right click or just click on a node, internally the node is
traversed using its path. But currently, it compares with the path of
all the open nodes to find a match.
So if you 1000+ tables and the tables node is open and if you click on
a view, the view path is compared with all the 1000+ tables (and with
any other open nodes above) before arriving to path. You're at bad luck
if you have more open servers above.
Code is changed to check if the path of node to be found starts with the
current node path. If it doesn't match, why bother the children's of
current node.
This change will not show much effect for small data, but it does matter
for large servers.
One more change is to remove unnecessary calls to find node and use the
data available with Main Menu -> Object to enable/disable node context
menu items.
2019-08-06 14:02:57 +01:00
Aditya Toshniwal
b5c8c85c90
Ensure triggers should be updated properly for EPAS server. Fixes #4559
2019-08-05 12:49:33 +05:30
Aditya Toshniwal
99a8b70e00
Fix some errors thrown on the JS console when dragging text in the Query Tool. Fixes #4552
2019-08-02 11:28:57 +01:00
Akshay Joshi
537c27a58e
Use the full tab space for CodeMirror instances on dialogues where appropriate. Fixes #4540
2019-08-02 10:25:21 +01:00
Dave Page
9a8a28e4f9
Allow a banner to be displayed on the login and other related pages showing custom text. Fixes #4549
2019-08-01 11:39:40 +01:00
Akshay Joshi
2ef3080d0e
Add support for generated columns in Postgres 12+. Fixes #4334
...
Ensure columns can be created when they are IDENTITY fields with the CYCLE option enabled. Fixes #4496
Ensure purely numeric comments can be saved on new columns. Fixed #4497
2019-07-25 16:38:26 +01:00
Murtuza Zabuawala
108af5c10b
Fix accessibility issue for Datetime cell in backgrid. Fixes #4508
2019-07-25 17:54:24 +05:30
Ganesh Jaybhay
136bb412a1
1) Fix accessibility issue for checkbox in IE11. Fixes #4490
...
2) Fix adjacent switch cell focus issue in backgrid for IE.
2019-07-25 17:23:56 +05:30
Khushboo Vashi
c019778a47
1) Fix an error while retrieving json data from the table. Fixes #4427
...
2) Fix an issue where Explain and Explain Analyze are not working, it's regression of #1760 . Fixes #4484
3) Fix an issue where Filter toolbar button is not working in view/edit data, it's regression of keyboard navigation. Fixes #4485
2019-07-22 18:42:48 +05:30
Yosry Muhammad
710d520631
Add support for editing of resultsets in the Query Tool, if the data can be identified as updatable. Fixes #1760
...
When a query is run in the Query Tool, check if the source of the columns
can be identified as being from a single table, and that we have all
columns that make up the primary key. If so, consider the resultset to
be editable and allow the user to edit data and add/remove rows in the
grid. Changes to data are saved using SAVEPOINTs as part of any
transaction that's in progress, and rolled back if there are integrity
violations, without otherwise affecting the ongoing transaction.
Implemented by Yosry Muhammad as a Google Summer of Code project.
2019-07-17 11:45:20 +01:00
Murtuza Zabuawala
20a5899c7d
Fix some minor UI issues on IE11. Fixes #4462
...
Includes some Jasmine test case fixes from Ganesh.
2019-07-12 10:06:30 +01:00
Ganesh Jaybhay
4cbc1f2f59
Allow keyboard navigation of all controls on subnode grids. Partially fixes #3919
2019-07-11 10:14:01 +01:00
Aditya Toshniwal
0aa18fd466
Ensure drag/drop from the treeview works as expected on Firefox. Fixes #4429
2019-07-04 14:49:09 +01:00
Aditya Toshniwal
0340b8fb28
Add EXPLAIN options for SETTINGS and SUMMARY. Fixes #4335
...
Prevent flickering of large tooltips on the Graphical EXPLAIN canvas. Fixes #4224
EXPLAIN options should be Query Tool instance-specific. Fixes #4395
2019-07-03 13:57:56 +01:00
Aditya Toshniwal
24ec882f45
Properly escape dragged node text. Fixes #4139
2019-06-28 08:17:04 -04:00
Aditya Toshniwal
173b812b93
Allow some objects to be dragged/dropped into the Query Tool to insert their signature into the query text. Fixes #4139
2019-06-27 10:30:05 -04:00
Dave Page
fb4afce629
Fix formatting change which inadvertently broke the feature tests.
2019-06-20 12:43:07 +01:00
Aditya Toshniwal
3b69f92d70
Ensure strings are properly encoded in the Query History. Fixes #4349
2019-06-14 09:17:02 +01:00
Aditya Toshniwal
23364464c2
Ensure the correct label is used in panel headers when viewing filtered rows. Fixes #4228
2019-06-11 15:11:23 +01:00
Dave Page
2ca11c84e8
Ensure that the Return key can be used to submit the Master Password dialogue. Fixes #4310
...
Ensure that browser auto-fill doesn't cause Help pages to be opened unexpectedly. Fixes #4317
2019-06-10 14:03:56 +01:00
Aditya Toshniwal
f561c0cee6
Fix keyboard navigation in "inner" tabsets such as the Query Tool and Debugger. Fixes #4195
2019-06-10 11:10:49 +01:00
Aditya Toshniwal
d90136d93d
Prevent the geometry viewer grabbing key presses when not in focus under Firefox, IE and Edge. Fixes #4255
2019-06-05 12:00:09 +01:00
Dave Page
2dd075161d
Allow the UI layout to be fully locked or to prevent docking changes. Fixes #2653
2019-05-31 11:51:30 -04:00
Aditya Toshniwal
15252b0a26
Added Help button on all master password dialogs.
2019-05-29 13:07:50 +05:30
Aditya Toshniwal
dfa892d2a2
1. Added Master Password to increase the security of saved passwords. Fixes #4184
...
2. In server(web) mode, update all the saved server credentials when user password is changed. Fixes #3377
2019-05-28 12:00:18 +05:30
Khushboo Vashi
6f0eafb223
Fixed CSRF security vulnerability issue. per Alvin Lindstam. Fixes #4217
...
Initial patch by: Khushboo Vashi
Modified by: Ashesh Vashi and Murtuza Zabuawala
2019-05-28 10:59:51 +05:30
Aditya Toshniwal
361f7077fd
Update the UI logo. Artwork by Chethana Kumar. Fixes #4208
2019-05-23 16:39:10 +01:00
Murtuza Zabuawala
155768a2d7
Prevent Backgrid Password cells from losing focus if the browser opens an autocomplete list. Fixes #4278
2019-05-20 13:34:47 +01:00
Murtuza Zabuawala
5786c17569
Fix navigation of switch cells in grids. Fixes #4269
2019-05-17 16:27:14 +01:00
Aditya Toshniwal
db4bb22cc6
Ensure that element should get highlighted when they get focus on using Tab key. Fixes #4245
2019-05-15 17:42:07 +05:30
Aditya Toshniwal
2cd58efcdd
1) Fixed Tab key navigation for Maintenance dialog. Fixes #4227
...
2) Fix Tab key issue for Toggle switch controls and button on the dialog footer in Safari browser. Fixes #4244
2019-05-15 16:37:06 +05:30
Murtuza Zabuawala
eb189844e7
Fixed console error when subnode control is used in panels. Fixes #4246
2019-05-10 11:24:15 +05:30
Neel Patel
34b59da526
Properly assign dropdownParent in Select2 controls. Fixes #4218
2019-04-30 12:57:17 +01:00
Khushboo Vashi
74af8976c9
Ensure that newly added row in backgrid should be visible.
2019-04-23 17:32:00 +05:30
Khushboo Vashi
0b47d1dbf6
1) Fix an issue where Deleting N number of rows makes first N number of rows disable. Fixes #3605
...
2) Ensure that on clicking Delete button should not delete rows immediately from the database server,
it should be deleted when Save button will be clicked. Fixes #2392
2019-04-18 12:09:35 +05:30
Murtuza Zabuawala
6016a5ee98
Fix an issue where the dropdown becomes misaligned/displaced. Fixes #4138
2019-04-09 12:09:25 +05:30
Murtuza Zabuawala
84ecffa4d9
Added recommended ESLinter checks. Fixes #4142
2019-04-05 13:07:43 +05:30
Dave Page
f706f7ed0c
Relabel the Save button on the datagrid text editor to avoid confusion with the actual Save button that updates the database. Fixes #4131
2019-04-02 17:20:43 +01:00
Khushboo Vashi
5965bc9107
Remove a debug statement.
2019-03-29 14:40:36 +00:00
Khushboo Vashi
97919d091a
Add support for IDENTITY columns. Fixes #4030
2019-03-28 13:13:43 -04:00
Dave Page
a5ebdafb82
Enlarge the grab handles for resizing dialogs etc. Fixes #4063
2019-03-25 07:50:55 -04:00
Akshay Joshi
5dd1472d6b
1) Fixed issue in Select2 Control, added undefined/null check.
...
2) Fixed the width of the delete cell.
2019-03-20 18:54:49 +05:30
Aditya Toshniwal
a4bc26c810
Fix handling of numeric arrays in View/Edit Data. Fixes #4062
2019-03-19 16:45:00 +00:00
Khushboo Vashi
e4417229aa
Update all Python and JS dependencies. Fixes #4019
2019-03-14 15:11:16 +00:00
Dave Page
870d373ced
Change the CodeMirror active line background colour to $color-danger-lighter so it doesn't conflict with the selection colour. Fixes #4073
2019-03-13 16:04:26 +00:00
Dave Page
ab9a3a57ad
Make the Query Tool history persistent across sessions. Fixes #4017
2019-03-13 13:37:34 +00:00
Aditya Toshniwal
4b895941b3
Remove the large and unnecessary dependency on React and 87 other related libraries. Fixes #4018
2019-03-07 10:51:59 +00:00
Dave Page
d7bf6ec69f
String review and subsequent cleanup
...
Ashesh Vashi
Abhilasha Narendra
Karen Blatchley
Susan Douglas
Dave Page
2019-03-05 14:08:16 +00:00
Khushboo Vashi
98815af8b6
Fix the position of text editor of a cell in Query Tool.
2019-03-04 16:39:30 +05:30
Akshay Joshi
0aeb20ee64
Prevent auto-commit/rollback being changed mid-transaction, and make the Preferences the defaults, not the current values.
2019-03-04 10:44:31 +00:00
Murtuza Zabuawala
36ffdb93e8
Custom-encode forward slashes in URL parameters as Apache HTTPD doesn't allow them in some cases. Fixes #3998
2019-03-01 14:55:25 +00:00
Aditya Toshniwal
e6e7cf0f69
Fix support for bigint's in JSONB data. Fixes #3587
2019-02-27 13:39:47 +00:00
Aditya Toshniwal
9c5b9364b6
Support double-click on Query Tool result grid column resize handles to auto-size to the content. Fixes #4034
2019-02-26 13:44:16 +00:00
Dave Page
1770c94b07
Fix the text highlight colour.
2019-02-25 17:08:05 +00:00
Aditya Toshniwal
59446bb4b5
Ensure JSON data isn't modified in-flight by psycopg2 when using View/Edit data. Fixes #3600
2019-02-25 10:34:36 +00:00
Akshay Joshi
a5d39003b6
Handle display of roles with expiration set to infinity correctly. Fixes #3352
2019-02-25 10:24:11 +00:00
Akshay Joshi
38b034ec3c
Add Commit and Rollback buttons to the Query Tool. Fixes #2418
2019-02-22 14:28:05 +00:00
Dave Page
0766b17726
Enable/disable the Download button with the Execute button.
2019-02-22 09:34:48 +00:00
Murtuza Zabuawala
e2482d2294
Set the background colour for backform notes, and add an icon. Fixes #3948
2019-02-18 16:59:39 +00:00
Khushboo Vashi
554455fa75
Fix treeview state saving after reset.
2019-02-18 13:15:22 +00:00
Khushboo Vashi
17694ab467
Automatically expand child nodes as well as the selected node on the treeview if there is only one. Fixes #3559
...
This also ensure the browser state is cleared if the save interval is set to -1.
2019-02-14 09:18:08 +00:00
Akshay Joshi
1f43b05c2a
Fix alignment of checkbox to drop multiple schedules of pgAgent job. Fixes #3946
2019-02-13 14:55:52 +05:30
Akshay Joshi
0aa93ac3ba
Fix alignment of Connection type toggle switch of pgagent. Fixes #3974
2019-02-13 13:03:44 +05:30
Dave Page
1fc66406f5
Don't embed docs and external sites in iframes, to allow the external sites to set X-FRAME-OPTIONS = DENY for security. Fxies #3985
2019-02-12 16:07:38 +00:00
Akshay Joshi
399d490342
Fix context sub-menu alignment on Safari. Fixes #3873
2019-02-11 13:38:11 +00:00
Ashesh Vashi
c411520d98
Increase table header vertical padding to make headers more distinguished.
2019-02-11 10:58:19 +00:00
Ashesh Vashi
8efdc43177
Removing the font smoothing for the firefox as per feedback from Chethana
2019-02-07 15:30:55 +05:30
Ashesh Vashi
8c65608946
Adding font-smoothing CSS for the OSX for making the fonts more
...
eye-pleasing and softer to match it with the proposed design.
2019-02-07 15:21:55 +05:30
Akshay Joshi
8f4d1f14f2
1) Fix alignment of import/export toggle switch. Fixes #3963
...
2) Remove unnecessary options for toggle switch which are already the default options.
2019-02-06 16:49:36 +05:30
Khushboo Vashi
4a75053514
Clean up the unwanted extended versions of Backform Switch controls.
...
The Bootstrap Switch Control was extended only for alignment in most
places. IIntroduce a configurable option to set the necessary class
on the main div and also remove the extra extended controls.
2019-02-05 16:22:35 +00:00
Aditya Toshniwal
aad7830d37
Dashboard graph optimization. Fixes #3941
2019-02-04 15:39:47 +05:30
Khushboo Vashi
dae8186c2a
Replace Bootstrap switch with Bootstrap4 toggle to improve the performance. Fixes #3051
2019-02-04 11:31:48 +05:30
Akshay Joshi
93234c86b7
Fix alignment of submenu for Internet Explorer. Fixes #3932
2019-02-01 17:55:38 +05:30
Murtuza Zabuawala
317a04eafc
Handle backend errors properly and display them correctly on GUI for Grant Wizard
2019-01-30 16:39:34 +05:30
Aditya Toshniwal
ab094e8f16
Increase frames splitter mouse hover area to make it easier to resize. Fixes #3865
2019-01-30 14:26:36 +05:30
Ashesh Vashi
430be1c4cb
Increase the width, and show the pointer cursor of the button under the
...
sortable backgrid header
2019-01-30 11:55:35 +05:30
Ashesh Vashi
0e8f804279
Show the help string separate block in the calendar control to align the
...
input, and calendar button properly in case of help string is present.
2019-01-30 11:42:38 +05:30
Ashesh Vashi
1858596253
Override the font-family defined by bootstrap
2019-01-30 10:21:36 +05:30
Murtuza Zabuawala
2d7eaa63c4
Fix alignment of help messages in properties panels. Fixes #3929
2019-01-24 16:39:55 +00:00
Harshal Dhumal
42c7ae372f
Fixed dialog tab navigation for Backup and Restore dialog. Fixes regression of #3862
2019-01-24 17:15:12 +05:30
Akshay Joshi
f316e0533e
1) Messages tab of query tool should be clear on subsequent execution of table/view using View/Edit Data. Fixes #3608
...
2) Clear drop-down menu should be disabled for View/Edit Data. Fixes #3609
2019-01-23 18:25:33 +05:30
Harshal Dhumal
ea87d6da8f
Fixed keyboard navigation for Select2 and Privilege cell in Backgrid Fixes #3908
2019-01-22 16:35:57 +05:30
Harshal Dhumal
f731ab730b
Fixed keyboard navigation for dialog tabs. Fixes #3862
2019-01-22 16:28:32 +05:30
Ganesh Jaybhay
a0d2c45361
1. Proper alignment of help message with date time control.
...
2. Added help-block class for helpMessageClassName.
2019-01-22 11:22:32 +05:30
Aditya Toshniwal
6fc2e032f3
Fixed alignment of tree arrow icons for Internet Explorer. Fixes #3871
2019-01-21 17:40:05 +05:30
Khushboo Vashi
3ffeb4be45
Ensure that database restriction of server dialog should work with special characters. Fixes #3800
2019-01-21 17:24:46 +05:30