Murtuza Zabuawala
a914ea088c
Python 2.6 compatibility fixes.
2017-02-08 16:28:04 +00:00
Surinder Kumar
4566877188
Handle NULL booleans in the data editor. Fixes #1790
2017-02-05 11:06:48 +01:00
Surinder Kumar
54ba1fbe59
Support setting text fields to empty strings or NULL in the data editor grid. Fixes #1790
2017-02-04 14:10:30 +01:00
Harshal Dhumal
4ef26a528b
Allow direct navigation (i.e. typing of paths) in the file manager. Fixes #1911
2017-02-03 10:51:36 +01:00
George Gelashvili
6d05302ca1
Rename the 9.1_plus templates to "default" to more appropriately support Greenplum which is based on 8.3.
2017-02-01 09:57:49 +00:00
George Gelashvili
19be3529f8
Create a template loader for SQL templates.
...
This will automatically find the correct version of a template for the server version, and allows us to remove templates that were previously duplicated for different server versions.
Patch by George & Tira at Pivotal. Review by me and Murtuza from EDB.
Discussion: https://www.postgresql.org/message-id/flat/CAHowoHaU9_pkCt%2B1g8dpY3hsXXZmsJZiJH-3-_Hd%2BC1MxiGhtA%40mail.gmail.com#CAHowoHaU9_pkCt+1g8dpY3hsXXZmsJZiJH-3-_Hd+C1MxiGhtA@mail.gmail.com
2017-01-30 11:25:03 +00:00
Akshay Joshi
ae809c4506
Properly detect when files have changed in the query tool and set the dirty flag accordingly. Fixes #1807
...
Note that (like pgAdmin 3) we don't make any attempt to detect if all changes have been undone and completely reverted as that could be very expensive with large scripts.
2017-01-08 15:27:58 +05:30
Dave Page
f221194bcc
Update copyright notices for 2017.
2017-01-04 13:33:32 +00:00
Dave Page
87d4937726
Minimise memory requirements for rendered cells and rows in SlickGrid. Fixes #2035
...
- The CSS class 'slick-row' has been renamed to 'sr'
- The CSS class 'slick-cell' has been renamed to 'sc'
- The SQL Editor included an unused 'normal_row' class on each row which has been removed as it was unreferenced in the code or CSS.
The intent of these changes is to minimise memory usage by the grid, by saving a few bytes per row/cell.
It's questionable how much difference this actually makes given that SlickGrid updates the document so it
only includes the visible rows on the fly, but every little helps.
2016-12-22 17:43:42 +00:00
Dave Page
d3862eef3f
Fix some additional table styling inconsistencies.
2016-12-19 14:26:33 +00:00
Khushboo Vashi
5008872203
Ensure the SQL editor has enough space to show block folding arrows in the gutter.
2016-12-19 11:35:27 +00:00
Murtuza Zabuawala
6fc8f040ff
Allow users to enable wrapping of code in SQL boxes. Fixes#2025
2016-12-16 17:07:41 +00:00
Khushboo Vashi
53ea991907
Properly size the SQL Editor gutter as the width of the line numbers increases. Fixes #1780
2016-12-16 13:04:16 +00:00
Akshay Joshi
686237413c
Use more sensible column sizes for the data output in the query tool. Fixes #1789
...
Per Akshay:
I have tried to get the width of the content but we are sending complete data as collection to the SlickGrid. We will have to fetch the content of each column and figure out the maximum length for that column by iterating all the rows is too expensive. Apart from that to set the width in 'ch' we will have to do it using css. With current implementation we are setting the column option of the SlickGrid from javascript code.
I have fixed this issue by setting the width of the columns based on data type. I have set the width of boolean column to 60, all the numeric/integer columns to 80 and for all other data types it is 20% of the container width as 33% is too wide.
2016-12-12 10:13:53 +00:00
Khushboo Vashi
53481023fa
Properly sort rows by the pkey when viewing first/last 100. Fixes #2007
2016-12-12 10:06:34 +00:00
Dave Page
4a280b2517
Only show the filename in query tool tabs, not the whole path.
2016-12-09 12:42:30 +00:00
Akshay Joshi
b8d03d5dc2
Don't cast data when saving in the edit grid, so errors are seen and data doesn't get silently modified. Fixes #1994
2016-12-09 12:05:46 +00:00
Dave Page
eb337cadce
Remove unused rows per page config option.
2016-12-05 13:59:44 +09:00
Surinder Kumar
a64824a851
Fix various encoding issues with multibyte paths and filenames.
...
Fixes #1986 . Fixes #1940 .
2016-12-05 13:10:56 +09:00
Dave Page
394381bf75
Add search/replace support to the Query Tool, including regexp matching. Fixes #1765
2016-11-24 15:38:39 +00:00
Murtuza Zabuawala
b7c819e912
Render column headers at the correct width in the query tool under Firefox. Fixes #1680
2016-11-18 14:24:16 +00:00
Murtuza Zabuawala
6e68e7501a
Display messages and notices received in the query tool. Fixes #1953
2016-11-18 13:53:57 +00:00
Dave Page
687f1f640f
Prevent users selecting elements of the UI that shouldn't be selectable. Fixes #1976
2016-11-18 10:55:00 +00:00
Murtuza Zabuawala
00d2ab0338
Cast OIDs to oid not int, otherwise we lose half the range which results in objects not being accessible. Fixes #1951
2016-11-11 14:36:41 +00:00
Akshay Joshi
7da3ece169
Ensure all changes to rows are stored in the data editor. Fixes #1919
2016-11-07 15:07:43 +00:00
Surinder Kumar
1e66119ef5
Ensure the File Manager honours the file type while traversing the directories. Fixes #1858
...
When a File Manager is closed by clicking cancel button. Its dom element not destroyed.. So on traversing into directories, when it tries to get currently selected file type, it looks into the dom element but it gets dom of previous dialogs not of currently dialog.
Now whenever an instance of File Manager is closed. its dom elements are also destroyed.
2016-10-21 14:26:12 +01:00
Ashesh Vashi
0bf48d06fb
Ensure the view data filter box is usable. Fixes #1733
2016-09-26 10:50:09 +01:00
Dave Page
2d222067b9
Fix layout of the filter box.
2016-09-26 10:48:31 +01:00
Dave Page
7a40171300
Handle nested JSON correctly in SlickGrid. Fixes #1713 . Fixes #1404
2016-09-21 13:43:27 +01:00
Surinder Kumar
28ce31a022
Save error details when executing to CSV, if no data is returned. This ensures the user gets some feedback rather than nothing at all. Fixes #1592
2016-09-20 11:57:51 +01:00
Murtuza Zabuawala
c044af9585
Bulk delete rows in SlickGrid. Fixes #1696
2016-09-16 16:46:58 +01:00
Ashesh Vashi
2f32427c59
Fix an issue in the Query Tool which causes it to hang in some installations of Chrome 53.0.2785.116 on Mac.
...
This commit also modifies the Query Tool to load SlickGrid using require.js.
2016-09-16 10:18:49 +01:00
Surinder Kumar
016de5dc88
Fix scrolling in the query tool editor. Fixes #1579
2016-09-15 10:15:00 +01:00
Murtuza Zabuawala
3807ba047b
Don't have the query tool try to load arrow_right_spearmint.png. Fixes #1693
2016-09-14 16:12:49 +01:00
Murtuza Zabuawala
db7b8a8fa5
Don't disable the save button when executing a query in the query tool. Fixes #1695
2016-09-14 11:22:54 +01:00
Murtuza Zabuawala
751327eacc
Ensure View Data on a table with zero columns doesn't throw an error. Fixes #1677
2016-09-14 10:43:08 +01:00
Murtuza Zabuawala
ffc58b74d2
Allow viewing of long data values in the grid. Fixes #1672
2016-09-12 12:39:40 +01:00
Murtuza Zabuawala
982c291a31
Confirm loss of changes with the user before clearing the query or history, or opening a new file in the Query Tool. Fixes #1666
2016-09-08 09:12:48 +01:00
Surinder Kumar
f13de8b86b
Ensure the query tool editor has focus when the tab is selected or when first shown so the user can immediately type/execute. Fixes #1581
2016-09-07 16:20:47 +01:00
Murtuza Zabuawala
8b61aa49d0
Warn the user about unsaved changes to SQL or data before closing the query tool. Fixes #1661
2016-09-05 17:18:43 +01:00
Murtuza Zabuawala
15df12c924
Highlight invalid rows when saving data in the edit grid. Fixes #1637
2016-09-02 16:05:00 +01:00
Murtuza Zabuawala
087332f32e
Fix the boolean editor, and warn the user if there are unsaved changed in the edit grid before refreshing.
2016-09-01 11:50:48 +01:00
Neel Patel
8dca4b0e0b
Fixed an syntantical issue, which was not supported by QtWebkit.
...
The issue was regression of the patch for the 'SlickGrid'.
Fixes #1621
2016-08-30 14:43:50 +05:30
Murtuza Zabuawala
c56e4667df
SlickGrid Integration in to query tool. Fixes #1618
2016-08-29 20:17:01 +05:30
Dave Page
d5f6c63ead
More string tweaks.
2016-08-19 11:48:34 +01:00
Surinder Kumar
761b54ce69
Allow the user to configure tabs in the SQL editor. Fixes #1406
2016-08-19 11:40:19 +01:00
Murtuza Zabuawala
d6391c7e9b
Properly display messages from the server in the query tool. Fixes #1523
2016-08-18 17:08:40 +01:00
Surinder Kumar
6d839a2924
Prevent a query being executed whilst one is already in progress. Fixes #1532
2016-08-16 12:10:16 +01:00
Akshay Joshi
035066bd41
Fix query tool button/menu inconsistencies. Fixes #1461
2016-08-09 16:23:24 +01:00
Surinder Kumar
1bcac0b67c
Fix more of the funky keyboard shortcuts.
2016-08-08 15:26:37 +01:00