Akshay Joshi
8cfe39e837
Fix syntax error in query tool feature test for Python 2.7
2019-07-25 11:26:45 +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
Aditya Toshniwal
f4bc4475cd
Add more comprehensive feature tests for the data grid editor.
2019-07-03 14:30:12 +01:00
Usman Muzaffar
bdb8f20aed
Feature test fixes:
...
The query tool element while running on jenkins, is present on the DOM but not visible due to comparatively small page size. So handle it , would work in both cases(if element is visible or not).
The tab name handles XSS characters due to which table name <h1> is shown modified accordingly in the tab name.
2019-06-27 10:19:57 -04:00
Aditya Toshniwal
6e8ebbd375
Allow editing of data where a primary key column includes a % sign in the value. Fixes #4036
...
Fix an XSS issue seen in View/Edit data mode if a column name includes HTML. Fixes #4367
2019-06-20 12:21:37 +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
Usman Muzaffar
912db8913f
Ensure that successful maintenance tasks don't leave a notifier window behind when running regression tests.
2019-06-03 11:33:32 -04:00
Usman Muzaffar
dcd163ac02
Feature test stabilisation.
2019-05-23 09:31:52 +01:00
Akshay Joshi
9bff6c7157
Fixed pep8 issue
2019-04-05 12:53:50 +05:30
Usman Muzaffar
5c4c09f237
Fixed feature test issues
2019-04-05 12:25:03 +05:30
Usman Muzaffar
a2aabf6270
Remove unnecessary print statement in the regression tests.
2019-03-29 14:47:22 +00:00
Dave Page
b2b5629a01
Fix PEP-8 issues.
2019-03-21 12:58:52 +00:00
Usman Muzaffar
33693734fc
Add new file missed in last commit.
2019-03-21 12:58:38 +00:00
Usman Muzaffar
be26fc540c
Many fixes to the stability of the feature tests, including:
...
tree toggle issue
Query tool inteliSence issue eg. when there is only one option and drop down is not shown
Backup and restore windows locator changes
Fixes required due to resolving rm # 4041
Dependent tab not showing data sometime, so refreshed the page and handled it
Due to change of logic for auto commit, did the required changes
Due to fix of RM 4062, did the required workaround which broke the test case.
2019-03-21 12:04:37 +00:00
Khushboo Vashi
dae8186c2a
Replace Bootstrap switch with Bootstrap4 toggle to improve the performance. Fixes #3051
2019-02-04 11:31:48 +05:30
Murtuza Zabuawala
d9fc9fdc4d
Ensure object names in external process dialogues are properly escaped. Fixes #3872
2019-01-24 16:34:18 +00:00
Khushboo Vashi
d4fe31404c
Fix syntax error on python 2.7 for the feature test.
2019-01-24 11:25:00 +05:30
Murtuza Zabuawala
e23d307c56
Update copyright notices for 2019
2019-01-02 15:54:12 +05:30
Ashesh Vashi
5799ac14ba
Improvement in the look and feel of the whole application
...
Changed the SCSS/CSS for the below third party libraries to adopt the
new look 'n' feel:
- wcDocker
- Alertify dialogs, and notifications
- AciTree
- Bootstrap Navbar
- Bootstrap Tabs
- Bootstrap Drop-Down menu
- Backgrid
- Select2
Adopated the new the look 'n' feel for the dialogs, wizard, properties,
tab panels, tabs, fieldset, subnode control, spinner control, HTML
table, and other form controls.
- Font is changed to Roboto
- Using SCSS variables to define the look 'n' feel
- Designer background images for the Login, and Forget password pages in
'web' mode
- Improved the look 'n' feel for the key selection in the preferences
dialog
- Table classes consistency changes across the application
- File Open and Save dialog list view changes
Author(s): Aditya Toshniwal & Khushboo Vashi
2018-12-21 17:14:55 +05:30
Murtuza Zabuawala
13dbfff11d
Ensure identifiers are properly displayed in the plan viewer. Fixes #3821
2018-12-20 10:09:11 +00:00
Aditya Toshniwal
6fa6939f52
Additional feature test fixes:
...
1) Changes required for working with Bootstrap 4.
2) Change to fix the timeout exception when waiting for element (tested multiple times on multiple server, did not occur to me thereafter)
3) Removed reset layout after each test case. Instead, delete the layout entry from sqlite db file and do a plain refresh. This will save some time and will also remove dependency on reset layout menu.
4) Disables tree state saving when feature test run starts. Feature tests got confused with auto expanding tree.
2018-10-17 11:50:22 +01:00
Dave Page
bdf90e67a7
When an execution is cancelled in query tool, two different messages are encountered at different time. There is no exact pattern for them. So now, the test case will look for any one of following message in the output text box
...
i) canceling statement due to user request
ii) Execution cancelled!
2018-10-10 11:23:14 +01:00
Murtuza Zabuawala
0f1651686b
Code refactoring:
...
- Move the duplicate code for closing the background process dialog into 'test_gui_helper.py',
- Simplify the logic by removing the duplicate steps to insert/update binary paths for each server type from 'test_utils.py'.
2018-10-08 11:09:30 +01:00
Dave Page
44ef501283
Fix PEP-8 issue.
2018-10-03 10:12:00 +01:00
Usman Muzaffar
eb27fa29b1
Test stabilisation, mostly for Windows. Fixes #3136
2018-10-03 10:03:35 +01:00
Akshay Joshi
4010dc80a9
Ensure auto-complete works for objects in schemas other than public and pg_catalog. Fixes #3630
2018-09-11 12:56:14 +01:00
Akshay Joshi
532cbe216a
Add shortcuts for View Data and the Query tool to the Browser header bar. Fixes #3564
2018-09-10 15:16:13 +01:00
Dave Page
1850a3a995
Remove unnecessary screenshot.
2018-09-10 13:17:59 +01:00
Usman Muzaffar
22776d2e14
Further stability fixes for the feature tests.
2018-09-10 13:15:55 +01:00
Aditya Toshniwal
ea787b30eb
Fixed auto complete issues for Python 2.6
2018-08-27 16:37:00 +05:30
Akshay Joshi
7a3f3046df
Merge pgcli code with version 1.10.3, which is used for auto complete feature.
2018-08-27 15:00:56 +05:30
Usman Muzaffar
70c95fcdd5
Stabilise feature tests for continuous running on CI systems. Fixes #3136 .
2018-08-21 17:39:36 +05:30
Khushboo Vashi
81312d17e2
Add feature tests for Backup/Restore and Maintenance. Fixes #3206
2018-07-09 11:27:25 +01:00
Akshay Joshi
2b20b387e2
Add support for Trigger and JIT stats in the graphical query plan viewer. Fixes #3397
2018-07-06 13:13:14 +01:00
Akshay Joshi
1f5ca1b540
Allow sorting in the file dialogue. Fixes #3273
2018-06-25 14:41:07 +01:00
Akshay Joshi
38ee39ae7a
Add support for LISTEN/NOTIFY in the query tool. Fixes #3204
2018-05-30 21:58:28 -04:00
Akshay Joshi
ccf58570b1
Support running feature tests against Firefox. Fixes #3270
2018-05-15 15:10:11 +01:00
Anthony Emengo
3ff56b2d49
Scroll cells into the viewport if needed during the CheckForViewData feature test.
2018-05-04 10:15:02 +01:00
Murtuza Zabuawala
2abff8f5d4
Use a common function for sever setup in the testsuite.
2018-03-19 13:23:29 +00:00
Murtuza Zabuawala
9ea118ca57
Ensure the file manager properly escapes file & directory names. Fixes #3196
2018-03-19 10:58:12 +00:00
Khushboo Vashi
d3c303e455
Ensure all messages are retrieved from the server in the Query Tool. Fixes #3094
2018-03-07 13:38:27 +00:00
Khushboo Vashi
a4124c2496
PEP8 fixes.
2018-03-02 09:37:11 +00:00
Joao Pedro De Almeida Pereira
bcb6f37d6f
Clarify which shortcut is being tested in the shortcut test.
2018-02-20 17:32:37 +00:00
Murtuza Zabuawala
96165044ae
Ensure we can properly update rows with upper-case primary key columns. Fixes #3105
2018-02-19 11:37:31 +00:00
Murtuza Zabuawala
6f25f4d175
Fix PEP-8 issues in feature_tests, dashboard, about and misc module's python code. Fixes #3082
2018-02-09 12:57:37 +00:00
Khushboo Vashi
262d01bf01
Add keyboard navigation options for the main browser windows. Fixes #2895
2018-02-02 14:28:37 +01:00
Joao Pedro De Almeida Pereira
de1c767e88
Update the regression tests to fix issues with Python 3.5 and PG 9.2. Fixes #3057
2018-01-26 16:45:09 +00:00
Khushboo Vashi
8df006343b
Fix feature tests following button tooltip changes.
2018-01-23 10:01:20 +00:00
Joao Pedro De Almeida Pereira
56e922f5ab
Support Properties on Greenplum databases. Fixes #3015
2018-01-15 14:44:40 +05:30
Dave Page
89821c0d19
Update copyright notices for 2018.
2018-01-05 10:42:50 +00:00
Harshal Dhumal
88bcd3b512
Make the query tool datatype test easily configurable and extendable and add support for multi-dimensional arrays and enums.
2017-12-18 15:10:47 +00:00
Harshal Dhumal
55254a649f
Re-hash the way that we handle rendering of special types such as arrays. Fixes #2782 . Fixes #2822 .
2017-12-13 11:53:27 +00:00
Murtuza Zabuawala
930dd8af1f
Some browsers don't properly support tri-state checkboxes, so create our own control to handle true/false/null. Fixes #2848
2017-11-21 17:22:25 +00:00
Khushboo Vashi
0c566f132e
Allow configuration of CSV and clipboard formatting of query results. Fixes #2781
2017-11-20 13:50:47 +00:00
Harshal Dhumal
30e7016077
Changed array representation and formatting for the data types in Query Tool and View Data. Fixes #2671
2017-09-18 12:07:15 +05:30
Harshal Dhumal
263aa42725
Reset query tool options before running tests. Fixes #2681
2017-09-05 16:25:15 +01:00
Harshal Dhumal
048205ead5
Rename the debugger XSS test function to 'a_test_function' to ensure it appears near the top of the tree and not off-screen.
...
This should not be a permanent fix (the test should be able to scroll the treeview), but works for now to stop tests failing.
2017-08-30 11:12:27 +01:00
Harshal Dhumal
ceb9438000
Cleanup feature tests. Fixes #2586
2017-08-29 14:57:56 +01:00
Wenlin Zhang
5dd375dd20
Fix the feature tests failuers.
2017-08-25 17:16:36 +05:30
Murtuza Zabuawala
2e2ca26020
Ensure role names are escaped in the membership control. Fixes #2606
2017-08-21 14:00:33 +01:00
Hao Wang
5141debae7
UX improvements of the history in the query tool.
...
- Added copy button for query text.
- Historical queries are binned/grouped by day.
Patch By: Hao Wang, Sarah McAlear
2017-08-09 16:52:43 +05:30
Sarah McAlear
2ebb409999
Fix test assertion.
2017-07-21 16:16:41 +01:00
Murtuza Zabuawala
b313cbce0d
Fix regression tests after Dave broke them.
2017-07-21 10:57:29 +01:00
Matthew Kleiman
e29cd8d83d
Improve the history UI.
2017-07-20 20:50:37 +01:00
Matthew Kleiman
21bfcd83f4
Allow navigation of query history using the arrow keys. Fixes #2590
2017-07-20 20:47:40 +01:00
Harshal Dhumal
54882e061c
Don't attempt to render binary data in the query tool result grid. Fixes #2080 . Fixes #2074 .
2017-07-20 13:09:47 +01:00
Murtuza Zabuawala
bab3da24e6
Support SSL in the regression tests. Fixes #2170
2017-07-18 15:23:11 +01:00
Surinder Kumar
4a91bcde30
Webpack all the things! Fixes #2135
...
This significantly speeds up loading of the application; in an average of 3 tests, v1.6
loaded in 11.5s in the runtime on a Mac, whilst the webpacked version of the code
loaded in 5.53s.
2017-07-18 15:13:17 +01:00
Harshal Dhumal
76939e4f63
Prompt the user to save dirty queries rather than discard them for a more natural workflow. Fixes #1972
2017-07-04 23:39:10 +01:00
Harshal Dhumal
7389744ecf
A number of minor cleanups to the recent changes to the query tool.
2017-06-28 09:49:39 -04:00
Joao Pedro De Almeida Pereira
7f55412059
Overhaul the query history tab to allow browsing of the history and full query text. Fixes #2282
...
Patch by Joao and the team at Pivotal.
2017-06-27 10:55:57 -04:00
Harshal Dhumal
c65158312d
Use on-demand loading for results in the query tool. Fixes #2137
...
With a 27420 row query, pgAdmin III runs the query in 5.873s on my laptop. pgAdmin 4 now takes ~1s.
2017-06-27 09:03:04 -04:00
Khushboo Vashi
6b6d3369b3
Wait for the Tools menu to be populated when running the feature tests, instead of failing.
...
Fix by Khushboo, based on Harshal's previous work.
2017-06-23 14:07:31 +01:00
Murtuza Zabuawala
d2ba57c1ab
Properly handle bytea[], and 'infinity'::real/real[]. Fixes #2498 . Fixes #2502 .
2017-06-20 10:19:11 +01:00
Murtuza Zabuawala
d70c3003d3
Add double precision[] tests to the query tool.
2017-06-15 11:54:17 +01:00
Surinder Kumar
fdc9eed514
Ensure text editors render in an appropriate place on the results grid. Fixes #2477
2017-06-14 12:18:27 +01:00
Surinder Kumar
2b4a8ed89c
Un-break the feature tests. Fixes from Surinder and myself.
2017-06-14 09:59:11 +01:00
Joao Pedro De Almeida Pereira
a9ce9c9717
Skip a test that uses the COLLATE option on PG versions below 9.1 (e.g. Greenplum).
2017-06-13 10:27:09 +01:00
Shruti B Iyer
1208206bc0
Initial re-vamp of the History tab.
2017-06-13 09:50:41 +01:00
Sarah McAlear
01bfa88309
Improvements to the Query Results grid:
...
- Improve the UI
- Allow copy/paste from sets of rows, columns or arbitrary blocks of cells
Patch by Matt, Shruti, Joao and Sarah @ Pivotal
Fixes #2476
2017-06-08 13:31:36 +01:00
George Gelashvili
f89aec867a
Resolve the PG datatype feature test flakiness and make for a nice buttery crust.
2017-06-07 14:26:42 +01:00
Surinder Kumar
beda7ebbf2
Add feature tests for the View Data tool.
2017-06-06 12:54:20 +01:00
Khushboo Vashi
3216eca4a8
Add feature tests to ensure that data types are properly rendered in the query tool.
2017-05-26 10:46:58 -04:00
Joao Pedro De Almeida Pereira
3bf17d9df4
1) Splits the SQL query used to retrieve the Dependents, Dependencies, and Roles SQL file into multiple versioned files.
...
2) Add Unit Tests for each file.
3) Add ORDER BY into Copy Selection Feature test to ensure the results are retrieved always in the same order
4) Renamed the Scenario of the xss_checks_pgadmin_debugger_test and skip it for versions less than 9.1
5) Deleted unused __init__.py files.
2017-05-15 10:40:46 +05:30
Matthew Kleiman
d663d553c5
Allow column or row selection in the query tool. Fixes #2216
2017-04-18 13:28:45 +01:00
Murtuza Zabuawala
a2a2b8b888
Ensure the query tool displays but does not render HTML returned by the server in the results grid. Fixes #2330 .
2017-04-10 14:07:48 +01:00
Navnath Gadakh
dd23f71478
Write a JSON file when regression tests run, listing results.
2017-04-06 09:33:29 +01:00
Atira Odhner
10920404e1
Re-organised the regression directory now we have multiple test suites: move test_utils.py into python_test_utils/
2017-03-23 11:59:31 +00:00
Atira Odhner
fe9bc379c7
Replace the template selection feature test with one that tests table DDL generation (which also covers template selection).
2017-03-23 11:47:21 +00:00
Dave Page
b2a74ad26d
Fix a bunch of file headers.
2017-03-16 14:27:55 +00:00
Joao Pedro De Almeida Pereira
d756f2f6c6
Create screenshots when feature tests fail.
2017-03-09 15:34:51 +00:00
Dave Page
d1b95aeb33
Revert "Rename the top level feature tests directory for consistency with other test directories"
...
The exclude command line option relies on the directory name. This needs fixing...
This reverts commit 9288d69b62
.
2017-03-02 11:23:05 +00:00
Dave Page
9288d69b62
Rename the top level feature tests directory for consistency with other test directories
2017-03-02 11:09:08 +00:00
Atira Odhner
e89c54c15d
Make feature test app teardown more reliable, and tests faster
...
- don't spin up app and chromedriver between each test
- catching signals also tears down the app
- do layout reset between tests, but assume that tests will not leave a modal opened.
Use selenium built-in waiting function and fix flakiness around clicking the alertify OK button
- we think the OK button does not have its event bound when it is created.
If you see more flakiness around clicking the alertify OK button, let us know. The element is clickable but we have to arbitrarily wait for the event to be bound and that timing may vary system to system.
The feature tests are about 7 seconds faster now.
Tira & Joao
2017-03-01 13:20:06 +00:00
Atira Odhner
fe1aec5de0
Add feature test framework, using selenium and chromedriver for UI testing.
...
Written by both George and Atira at Pivotal.
2017-02-22 12:41:28 +00:00