Aditya Toshniwal
3d7ecd16aa
Upgrade the React version from 16 to 17 and also update other dependent libraries.
2021-03-15 15:47:21 +05:30
Aditya Toshniwal
e0639602e6
Fixed ERD API test case failing for PG13
2021-02-22 15:01:01 +05:30
Aditya Toshniwal
32197a8405
Fix explain plan and geometry viewer issue. It's a regression of SonarQube fixes. Fixes #6239
2021-02-19 14:29:43 +05:30
Aditya Toshniwal
c1e80ac38a
Fixed an issue where the ERD image is not properly downloaded. Fixes #6197
2021-02-15 15:24:57 +05:30
Aditya Toshniwal
a5a83da045
Fixed an issue where preview images for the themes are not visible.
...
refs #6207
2021-02-10 17:40:54 +05:30
Aditya Toshniwal
701f21186b
Remove 'imagemin-gifsicle' package which is used to compress gif images. The latest version of imagemin-gifsicle requires the binaries to be built from the source.
2021-02-10 13:46:42 +05:30
Aditya Toshniwal
1317e4254b
Updated the JS dependencies to the latest
...
1) Migrate from webpack 4 to webpack 5. This had a lot of breaking changes,
so updated multiple webpack plugins and changed the config accordingly.
2) Replaced iconfont-webpack-plugin with a more maintained webfonts-loader.
3) Replaced deprecated babel-eslint with @babel/eslint-parser.
4) Replaced optimize-css-assets-webpack-plugin with a more maintained css-minimizer-webpack-plugin.
5) Updated all other JS packages and made the required code changes.
Fixes #6207
2021-02-10 12:47:52 +05:30
Aditya Toshniwal
617440e1db
Ensure that ajax request for Dashboard, Statistics, Dependencies, and Dependents
...
should not be raised until the panel will be in focus.
refs #5091
2021-02-09 15:31:26 +05:30
Aditya Toshniwal
181bec62ce
Fixed API test cases by making the connection id unique for ERD.
2021-02-04 16:14:55 +05:30
Aditya Toshniwal
ee679e39e5
Use unique database name in ERD API test cases.
2021-02-03 16:49:17 +05:30
Aditya Toshniwal
73b6b95fbc
Make Statistics, Dependencies, Dependants tabs closable and the user can add them back using the 'Add panel' option. Fixes #5091
2021-02-03 12:46:32 +05:30
Aditya Toshniwal
18f055fa5e
1) Ensure that all the python packages will take the latest until a major version.
...
2) Removed few packages which were dependencies of some other package.
2021-02-03 12:29:57 +05:30
Aditya Toshniwal
75f887f5dc
Ensure that ERD throws a warning before closing unsaved changes if open in a new tab. Fixes #6193
2021-02-02 11:47:10 +05:30
Aditya Toshniwal
a0271c7656
Fixed an issue while downloading ERD images in Safari and Firefox. Fixes #6177
2021-01-29 12:19:24 +05:30
Aditya Toshniwal
48e257e5af
1) Fixed an issue where Zoom to fit button only works if the diagram is larger than the canvas. Fixes #6163
...
2) Ensure that the diagram should not vanish entirely if zooming out too far in ERD. Fixes #6164
3) Fixed an issue where Generate SQL displayed twice in the ERD tool. Fixes #6179
4) Updated missing documentation for the 'Download Image' option in ERD. Fixes #6180
2021-01-29 11:54:50 +05:30
Aditya Toshniwal
3f563d8cbf
1) Fixed an issue where the Save button is disabled due to the existing table check in ERD.
...
2) Fix warnings given by webpack.
2021-01-25 19:44:24 +05:30
Aditya Toshniwal
13db981445
Fixed following issues in ERD:
...
1) After opening an existing project, the first table is already selected but the edit, clone, delete buttons are disabled.
2) ERD project title gets changed when 2 ERD projects are open & anyone of it edited.
3) Closing the ERD tab does not ask for a confirmation pop-up.
4) Shortcut for 'Show more/Fewer details' is missing.
5) Deleting the primary key does not delete associated links.
6) The long table & schema name are getting out of the box.
7) The long table name in the notes pop-up needs re-alignment.
8) The same table name present in ERD/canvas is allowed in Add Table dialogue. Added validation in the dialog.
9) Download image option is added, but it is not perfect yet. Image icons (table, schema, etc.) are not showing up.
10) Rename panel option should be disabled by default. It should be enabled for the tools which implement rename functionality.
11) The Toolbar is not visible in Safari for the ERD tool.
refs #1802
2021-01-25 17:32:56 +05:30
Aditya Toshniwal
57a2559f11
1) Fixes the broken explain GUI test case.
...
2) Displays a tooltip "Click for details..." on hover over explain plan nodes.
refs #5488
2021-01-20 17:49:23 +05:30
Aditya Toshniwal
9229156cf6
One more attempt to fix jasmine test cases of ERD Tool.
2021-01-18 17:14:19 +05:30
Aditya Toshniwal
02f9b72d3e
Fixed jasmine test cases of ERD Tool.
2021-01-18 16:39:58 +05:30
Aditya Toshniwal
5afa4f1995
Remove few dependencies which are not required for ERD Tool.
2021-01-18 12:53:58 +05:30
Aditya Toshniwal
0c8226ff39
Added ERD Diagram support with basic table fields, primary key, foreign key, and DDL SQL generation. Fixes #1802
2021-01-16 17:06:50 +05:30
Aditya Toshniwal
6589f82e77
Improve the explain plan details by showing popup instead of tooltip on clicking of the specified node. Fixes #5488
2021-01-12 16:43:30 +05:30
Aditya Toshniwal
5198a881b7
Added 'Count Rows' option to the partition sub tables. Fixes #5282
2021-01-04 15:25:05 +05:30
Aditya Toshniwal
233736897d
Added 'CREATE TABLE' SQL missed in the last patch for #5571
...
refs #5571
2021-01-04 15:06:28 +05:30
Aditya Toshniwal
f9087475d4
Fixed RESQL test cases for exclusion constraints.
...
refs #5571
2020-12-24 14:03:07 +05:30
Aditya Toshniwal
5448de2d3f
Added support for expression in exclusion constraints. Fixes #5571
2020-12-24 12:50:57 +05:30
Aditya Toshniwal
ca4db8871e
Ensure that code coverage should cover class and function declarations. Fixes #6062
2020-12-06 19:16:17 +05:30
Aditya Toshniwal
55e50144f3
Update the cryptography python package for Python 3.5 and above. Fixes #6033
2020-11-26 11:43:08 +05:30
Aditya Toshniwal
38b90f7b00
Ensure that search object functionality works with case insensitive string. Fixes #5858
2020-10-15 16:17:54 +05:30
Aditya Toshniwal
67242862c4
Fixed an issue where extensions are getting added multiple times when the user uses the "Save As" option.
...
refs #4855
2020-10-12 18:01:53 +05:30
Aditya Toshniwal
ca8dc42d14
Updated the packages and yarn.lock file.
2020-10-09 11:49:03 +05:30
Aditya Toshniwal
a4e746c5a4
Ensure that '.sql' extension is added when saving a file with SQL format.
...
refs #4855
2020-10-09 11:46:32 +05:30
Aditya Toshniwal
c7c199210d
Fixed an issue where file extension is stripped on renaming a file. Fixes #4855
2020-09-29 11:03:38 +05:30
Aditya Toshniwal
3e7cdcdf90
Ensure that 'ctrl + a' shortcut does not move the cursor in SQL editor. Fixes #5131
2020-09-29 10:56:57 +05:30
Aditya Toshniwal
1fc06b8d57
Added useful message when the explain plan is not used and empty. Fixes #4806
2020-09-28 17:51:59 +05:30
Aditya Toshniwal
f3462e36a4
Fixed cognitive complexity issues reported by SonarQube.
2020-09-23 11:59:14 +05:30
Aditya Toshniwal
ed3c692b1f
Fixed an issue where the query tool is not fetching more than 1000 rows for the table does not have any primary key. Fixes #5845
2020-09-21 15:36:19 +05:30
Aditya Toshniwal
553be14000
Fixed an issue where a column is renamed and then removed, then the drop SQL query takes the wrong column name. Fixes #5807 .
2020-09-21 09:40:45 +05:30
Aditya Toshniwal
a25e808e06
Remove maximum length on the password field in the server dialog. Fixes #5802
2020-09-17 20:21:00 +05:30
Aditya Toshniwal
bf183bdcff
Change the explain plan SVG colors based on the theme. Fixed some minor color issues in the analysis tab.
2020-09-17 20:17:54 +05:30
Aditya Toshniwal
95a5b1e459
Some more accessibility fixes.
...
refs #5732
2020-09-17 20:16:38 +05:30
Aditya Toshniwal
b82e6dbdb8
1) Added email id validation on the login page.
...
2) Added validation for the file manager.
2020-09-11 19:55:19 +05:30
Aditya Toshniwal
d0310b669e
Fixed an issue where clicking on the 'Generate script' button shows a forever spinner due to pop up blocker. Fixes #5815
2020-09-09 20:10:56 +05:30
Aditya Toshniwal
796a8a013a
1) Changing the state of the react directly is not recommended, so avoid changing it directly.
...
2) Fixed API test cases.
2020-09-09 13:08:58 +05:30
Aditya Toshniwal
535739c0c7
Fixed cognitive complexity issues reported by SonarQube.
2020-09-09 11:25:43 +05:30
Aditya Toshniwal
8c2e965f6e
Fixed excessive CPU usage by stopping the indefinite growth of the graph dataset. Fixes #5794
2020-09-07 18:23:04 +05:30
Aditya Toshniwal
f8f00b4ecf
Fixed an issue in the query tool when columns are having the same name as javascript object internal functions. Fixes #5765 .
2020-09-07 18:10:27 +05:30
Aditya Toshniwal
974d395a48
Fixed cognitive complexity issues reported by SonarQube.
2020-09-03 18:10:57 +05:30
Aditya Toshniwal
8f3bdf1cf3
Fixed cognitive complexity issues reported by SonarQube.
2020-09-02 14:39:54 +05:30
Aditya Toshniwal
11d5613866
Fixed RESQL test cases for Roles module.
2020-08-28 18:22:25 +05:30
Aditya Toshniwal
28b637c99c
Fixed RE-SQL test cases failed due to the previous commit.
...
Introduces a new key - replace_regex_pattern to synchronize the
expected SQL with the backend SQL based on the regex string
2020-08-27 19:08:00 +05:30
Aditya Toshniwal
53a5410337
Fixed cognitive complexity issues and added some more RESQL test cases for roles module.
2020-08-27 13:09:22 +05:30
Aditya Toshniwal
e582ffca38
Fixed regression issue in taking backup of the table. Added some more test cases.
2020-08-25 18:06:38 +05:30
Aditya Toshniwal
275c671576
Fixed cognitive complexity issues reported by SonarQube.
2020-08-25 12:39:14 +05:30
Aditya Toshniwal
caeea7940a
Fixed errors occurring when saving preferences, regression of SonarQube fixes.
2020-08-12 17:42:53 +05:30
Aditya Toshniwal
7dd313f5fc
Fixed an issue where debugger doesn't work if the search path is set other than 'public'. Fixes #4123
2020-08-12 14:24:40 +05:30
Aditya Toshniwal
8129df42da
Fixed cognitive complexity issues reported by SonarQube.
2020-08-11 15:13:35 +05:30
Aditya Toshniwal
26a758a0d6
Fixed an issue where copying and pasting a cell with multiple line data
...
will result in multiple rows. Fixes #5526
Fixed an old issue where quotes are not escaped when copying the cells.
As per CSV standards, if the string is in double quotes and there are
double quotes inside the string then they should be escaped with extra double-quotes.
2020-08-10 16:53:32 +05:30
Aditya Toshniwal
d6400bbcae
Replace the generic exception class with a more specific one.
2020-08-07 12:37:00 +05:30
Aditya Toshniwal
e494b1520d
Fixed an issue where ajax call continues to fire even after disconnect the database server. Fixes #5716
2020-08-06 16:52:16 +05:30
Aditya Toshniwal
aa679e06b2
Replace the generic exception class with a more specific one to fix SonarQube issues.
2020-08-05 12:41:28 +05:30
Aditya Toshniwal
536593bf8a
Fixed following SonarQube issues:
...
- Remove this assignment to the local variable, the value is never used.
- Rename local variables to match the regular expression
- Add logic to this except clause or eliminate it and rethrow the exception automatically.
- Rename fields to match the regular expression
- Extract this nested conditional expression into an independent statement.
- Change this default value to "None" and initialize this parameter inside the function/method.
- Update this function so that its implementation is not identical to __repr__
- Refactor this method to not always return the same value
- Reraise this exception to stop the application as the user expects
- Add missing parameters _w _PY3. This method overrides simplejson.decoder.JSONDecoder.decode.
- Remove this redundant continue.
- Remove this unused function declaration
- Remove this identity check; it will always be False.
2020-08-03 12:59:51 +05:30
Aditya Toshniwal
56cf64ad22
Fixed following SonarQube issues:
...
- Refactor functions to not always return the same value.
- Rename "cls" to "self" or add the missing "self" parameter.
- Remove useless assignment to variables.
2020-07-30 14:04:22 +05:30
Aditya Toshniwal
f715373218
Replace charting library Flotr2 with ChartJS using React. Fixes #3904
2020-07-29 14:49:22 +05:30
Aditya Toshniwal
a0893fe43b
Fixed code smell 'variable shadows a builtin' reported by SonarQube.
2020-07-28 16:20:26 +05:30
Aditya Toshniwal
505a3ac960
1) Fixed cognitive complexity issues reported by SonarQube.
...
2) Fixed code smell 'Add a nested comment explaining why this method is
empty, or complete the implementation'.
2020-07-24 11:46:30 +05:30
Aditya Toshniwal
bd15d2d0f7
Fixed CSRF errors when pgAdmin opened in an iframe on safari browser. Fixes #5675
2020-07-17 15:31:04 +05:30
Aditya Toshniwal
9d0f3ce90b
Fixed code smell 'potential hiding of variables declared in an outer scope'.
2020-07-16 19:53:39 +05:30
Aditya Toshniwal
161c9b0fc7
Fixed code smell 'Variables should not be shadowed'.
...
Fixed all the duplicate CSS blocks issues raised by SonarQube.
2020-07-14 15:45:01 +05:30
Aditya Toshniwal
357a9179b1
Fixed convention related issues reported by SonarQube.
2020-07-09 18:55:33 +05:30
Aditya Toshniwal
45a03dd663
Fixed 'convention' related code smell reported by SonarQube.
2020-07-06 11:48:23 +05:30
Aditya Toshniwal
3d5a2046c4
Fixed jasmin test cases failed due to last commit.
2020-07-03 12:57:53 +05:30
Aditya Toshniwal
341c3aded6
Fixed dark theme-related CSS and modify the color codes. Fixes #5287
...
Fixed backgrid row hover issue where on hover background color is set for edit and delete cell only. Fixes #5470
2020-07-03 11:47:40 +05:30
Aditya Toshniwal
dd4dc19add
Fixed issue where dialog sizes snapping to the default widths.
2020-07-03 11:26:06 +05:30
Aditya Toshniwal
ced296939f
Fixed an issue where the user is able to edit properties when some of the collection nodes are selected. Fixes #5629
2020-07-02 16:21:56 +05:30
Aditya Toshniwal
d3b3d07f2e
Fixed SonarQube issues with the tag unused. All the unused variables, assignments, code comments are fixed.
2020-06-25 11:09:43 +05:30
Aditya Toshniwal
6620f9263d
Fixed issues reported by SonarQube with tag 'bad-practice'.
2020-06-22 12:18:59 +05:30
Aditya Toshniwal
d6b22f1f4c
Fixed an issue where the search object is unable to locate inherited tables and constraint filters are not working. Fixes #5492
2020-06-22 11:53:00 +05:30
Aditya Toshniwal
a278e8b1e6
Fixed the master password issue, introduced in the last commit.
2020-06-18 15:38:38 +05:30
Aditya Toshniwal
f0490a54b7
Fixed redundant tagged issue reported by SonarQube.
2020-06-18 11:14:56 +05:30
Aditya Toshniwal
df05efd7d9
Fixed vulnerabilities and few design suspicions where two conditional structures are having the same implementation.
2020-06-17 17:15:09 +05:30
Aditya Toshniwal
3e00fe2b0f
Fixed vulnerabilities and few design suspicions where two conditional structures are having the same implementation. Reported by SonarQube
2020-06-16 11:14:57 +05:30
Aditya Toshniwal
641f7bbe9d
Some clumsy coding related fixes reported by SonarQube.
2020-06-15 16:50:07 +05:30
Aditya Toshniwal
8c20f0c0d2
Some clumsy coding related fixes reported by SonarQube.
2020-06-12 15:24:17 +05:30
Aditya Toshniwal
eb971a0320
Update Codemirror version to the latest which allows us to set screen reader labels on Codemirror editor.
...
refs #5197
2020-06-08 12:26:12 +05:30
Aditya Toshniwal
1050c9857a
Fixed an issue when dumping servers from a desktop pgAdmin app by providing an option '--sqlite-path'. Fixes #5521
2020-06-01 11:22:38 +05:30
Aditya Toshniwal
d58c33dec0
Search object UI improvements. Fixes #5493
2020-05-18 11:29:12 +05:30
Aditya Toshniwal
b64896f558
Fixed generated SQL issue for auto vacuum options. Fixes #5398
...
Fixed some more issues:
1) pgAdmin allows only true or false values for autovacuum_enabled,
and there is no way to reset it individually without disabling a custom auto vacuum.
To fix this, the control is changed from the switch to three state buttons.
2) Setting any vacuum options to zero made the option disappear from the SQL.
3) Right-click on a table with vacuum options set and create a new table.
4) The parameters tab will have the options prefilled.
5) Changed the UI a bit to remove unnecessary space around. Added "Autovacuum" before enabled.
The SQL generated was appending a ".0" to decimal vacuum options. Changed to remove the leading ".0".
2020-05-08 14:30:30 +05:30
Aditya Toshniwal
059f1e38cc
Refactor pgAdmin4.py so it can be imported and is a lot more readable. Fixes #5455
2020-05-04 15:28:44 +01:00
Aditya Toshniwal
370094274c
Fixed post-login redirect location when running in server mode under a non-default root. Fixes #5473
2020-05-04 15:00:45 +01:00
Aditya Toshniwal
b695329d2d
Fixed API test cases for backup, restore and maintenance.
2020-04-27 21:17:34 +05:30
Aditya Toshniwal
99d1068f70
Fixed an issue where the search object not able to locate pg_toast_* tables in the pg_toast schema. Fixes #5441
2020-04-27 19:51:56 +05:30
Aditya Toshniwal
aec64aa582
Fixed following issues for 1257:
...
1. For synonyms, the property is shown as "Public Synonym".
2. For system procedure, the flag should be True but it is displaying as False.
3. For both views and materialized views, the property is "System View".
4. For FTS templates, the property is showing as "System FTS Parser".
Fixes #1257
2020-04-24 16:35:59 +05:30
Aditya Toshniwal
90849fe29b
Fixed mouse click issue where it does not select an object in Browser unless the pointer is over the object. Fixes #4180
2020-04-24 11:32:11 +05:30
Aditya Toshniwal
dfb74904ed
Ensure all object types have a System XXX? property. Fixes #1257
2020-04-23 17:31:40 +05:30
Aditya Toshniwal
05abb9e430
Ensure that the query tool context menu should work on the collection nodes. Fixes #5415
2020-04-20 18:50:20 +05:30
Aditya Toshniwal
dc4571a3c8
Fixed search object issue when the object name contains special characters. Fixes #5401
2020-04-20 18:40:40 +05:30
Aditya Toshniwal
7361470b64
Fixed an issue where the search object module unable to locate the object in the browser tree. Fixes #5396
2020-04-20 18:27:36 +05:30
Aditya Toshniwal
dc1e32a632
Fixed internal server error when the database server is logged in with non-super user. Fixes #5400
2020-04-16 15:05:17 +05:30