Commit Graph

6236 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
58ed5bfa9e
Extract Simulate DML action from ImportController
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-27 18:37:15 -03:00
Kamil Tekiela
97810b3a21 Fix bug #17239
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2021-12-26 23:10:34 +00:00
Maurício Meneghini Fauth
1e542cd621
Replace vendor_config.php constants with an array
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-26 16:48:56 -03:00
Maurício Meneghini Fauth
2a4b170a34
Merge branch 'QA_5_1'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-21 13:13:09 -03:00
Maurício Meneghini Fauth
9308850381
Fix double encoding when droping columns
Related to #17247.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-21 13:01:40 -03:00
Maurício Meneghini Fauth
fa5c684f27
Replace the master/slave terminology
Replaces master with primary and slave with replica.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-18 14:26:56 -03:00
Kamil Tekiela
83d950ed40 Bug fix: Fix triple HTML encoding
Some values were encoded into HTML entities thrice. This commit removes
unnecessary HTML escaping.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2021-12-14 12:21:36 +00:00
William Desportes
f718f475e4
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-12-12 19:35:54 +01:00
jonahtanjz
cecf786b0e Extract <em> tag for NULL values when copying to clipboard
Signed-off-by: jonahtanjz <jonahtanjz8@gmail.com>
2021-12-10 18:36:16 +08:00
Maurício Meneghini Fauth
fbd5b0a67c
Redesign the export/import pages to use Bootstrap components
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-25 13:37:47 -03:00
Kamil Tekiela
51f4017b32
Refactor destroy controller (#17194)
* Remove redundant conditions

They were always true. First, the variable is set to -1.
If the variable is -1, then set it to Message.
If the variable is Message then set the JSON array. All of this is
redundant.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* $sqlQuery is not used anywhere

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Enforce $selected to be an array

I can't remove it as it is a global. Previously, it was set to a POST
variable. Since we validate that the variable is set and is not null,
we can use the value from $params. If we validate that it's also an
array we can replace for loop with foreach.
There is no passing by reference, so this change should be safe.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Replace $rebuildDatabaseList with input validation

The validation message says 'No databases selected.' so I assume that
we should check that we actually got at least one entry in the list.
If that is true, then the $rebuildDatabaseList is not needed and the
condition redundant.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* drop_selected_dbs is always set and is redundant

I am not sure if this is necessary. The AJAX request sends a value of "1"
but the code doesn't really do anything with it other than checking if
it is actually set. Is there some other path possible?

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Flatten the array with a single element

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Remove redundant isset

The variable is set, so !isset === is_null. Why check for null if we can
check just for !is_array.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Update psalm-baseline.xml

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Adhere to the coding standard

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2021-11-19 14:26:04 -03:00
Maurício Meneghini Fauth
b6ea050aef
Use Bootstrap's dropdown for table structure's More button
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-07 16:27:56 -03:00
Maurício Meneghini Fauth
bd95eb7c20
Merge branch 'QA_5_1'
- Bumps Bootstrap to v5.1.3

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-02 14:36:45 -03:00
Maurício Meneghini Fauth
3f279e47ea
Upgrade JavaScript dependencies
- Bumps Bootstrap to v4.6.1
- Bumps CodeMirror to v5.63.3
- Bumps OpenLayers to v6.9.0

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-02 13:01:08 -03:00
Maurício Meneghini Fauth
220ed30ef8
Remove printview.css theme files
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-10-31 17:35:55 -03:00
Maurício Meneghini Fauth
18c8a7d160
Change create table form to use Bootstrap's card
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-10-30 17:23:36 -03:00
Saksham Gupta
3149ee8443 Replace Create view dialog with modal
Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Fix code quality

Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-10-02 19:57:46 +05:30
Maurício Meneghini Fauth
c68b6a01a7
Merge pull request #17119 from shucontech/enum_editor_modal
Replace ENUM/SET editor dialog with modal
2021-10-01 14:00:39 -03:00
Maurício Meneghini Fauth
fdc279e4bc
Merge pull request #17114 from shucontech/build_query_modal
Replace Query Builder dialog with modal
2021-09-30 12:33:33 -03:00
Saksham Gupta
6a963080b3 Replace ENUM/SET editor dialog with modal
Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-09-20 22:51:30 +05:30
Saksham Gupta
eb7eceabfc Replace Query Builder dialog with modal
Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Add EOL

Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-09-18 00:07:58 +05:30
Maurício Meneghini Fauth
a985e340ee
Merge pull request #17105 from shucontech/create_index_modal
Replace Add Index and Preview SQL Dialog to Modal
2021-09-16 16:46:39 -03:00
Saksham Gupta
f82893d33d
Replace move columns and preview SQL dialog with a modal (#16932)
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
2021-09-16 16:31:30 -03:00
Maurício Meneghini Fauth
87b91940f3
Merge pull request #17065 from shucontech/simulate_query_modal
Replace Simulate Query dialog with a modal
2021-09-16 16:04:48 -03:00
Saksham Gupta
b58516e880 Replace Simulate Query dialog with a modal
Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Set Aria hidden to true

Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-09-17 00:00:56 +05:30
Maurício Meneghini Fauth
03b9016b7d
Merge pull request #17103 from shucontech/nav_modal
Replace hidden navigation items dialog with modal
2021-09-14 17:21:09 -03:00
Maurício Meneghini Fauth
9721b19dbf
Merge pull request #17077 from shucontech/confirm_preview_modal
Replace Confirm Preview SQL dialog with modal
2021-09-14 16:18:14 -03:00
Shucon Tech
c003c3add8
Replace Range Search dialog with a modal (#17073)
* Replace Range Search dialog with a modal

Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-09-14 15:53:00 -03:00
Maurício Meneghini Fauth
7f6472b2c2
Add void return type where possible
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-13 15:29:11 -03:00
Saksham Gupta
9db38851e1 Replace Add Index and Preview SQL Dialog to Modal
Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Add new line EOF

Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-09-11 23:40:40 +05:30
Saksham Gupta
8f04e1a26d Replace hidden navigation items dialog with modal
Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Fix line end

Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-09-11 01:37:15 +05:30
Saksham Gupta
8301118f21 Replace Confirm Preview SQL dialog with modal
Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Final commit

Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Fix code quality

Signed-off-by: Saksham Gupta <shucontech@gmail.com>

Fix line end

Signed-off-by: Saksham Gupta <shucontech@gmail.com>
2021-09-10 02:13:43 +05:30
Maurício Meneghini Fauth
701acaaddb
Simplify use statements in the routes definition file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-09 16:39:11 -03:00
Maurício Meneghini Fauth
322dc72621
Merge branch 'QA_5_1'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-05 00:51:20 -03:00
Maurício Meneghini Fauth
a2ed4dfe68
Make controllers callable
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-30 13:16:29 -03:00
William Desportes
157c072c3c
Fix #16693 - Show the new column and the table structure on the same page
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-25 17:47:33 +02:00
Maurício Meneghini Fauth
f7fc4177af
Add support for account locking
- https://dev.mysql.com/doc/refman/en/account-locking.html
- https://mariadb.com/kb/en/account-locking/

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-21 00:55:33 -03:00
William Desportes
1c9c4b183a
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-20 02:45:54 +02:00
William Desportes
75eacc7697
Fix #14502 - Uncheck the "ignore" checkbox on GIS modal save value
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-18 02:18:02 +02:00
Hannah Okwelum
9fdd6afea4
Fix #14502 - Triggered the on-change event on the input field to uncheck the "ignore" checkbox
Signed-off-by: Hannah Okwelum <honyinye3@gmail.com>
2021-08-18 01:46:43 +02:00
William Desportes
72800e2524
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-15 00:52:33 +02:00
Sergio Gutierrez
c60b786915
Ref #13270 - fix(query.twig): Inline events removed (#16905)
* fix(query.twig): Inline events removed

Signed-off-by: Sergio Gutierrez <sergiogutierrez0611@gmail.com>

* fix(SqlQueryFormTest.php): Enable auto select text in text area assertion test fixed

Signed-off-by: Sergio Gutierrez <sergiogutierrez0611@gmail.com>
2021-08-11 12:04:44 -03:00
Maximilian Krög
5dad1d0bb7
Fix: Don't add multiple OpenLayers maps, remove listeners on dispose
With 5.1 the map is only created when it is first shown, but every second time
switching to the map a new instance is created because zero is returned when no new
map was created.

OpenLayers adds a resize listener to the window when a target is defined to
handle size adjustments, but this means setTarget(null) has to be called to
fully dispose of the added listener when the map is no longer needed.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2021-08-10 18:59:49 +02:00
William Desportes
fa88ce2f00
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-10 15:39:23 +02:00
William Desportes
2a31bdd6b5
Merge #17032 - Prevent default when scrolling in gis visualization
Pull-request: #17032

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-10 14:58:54 +02:00
William Desportes
8800da212c
Merge #17067 - Fix #15225 - Command+click on macOS opens links in same tab
Pull-request: #17067
Fixes: #15225

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-10 14:19:27 +02:00
Lukas Bixen
51a79fecc2 Fix #15225: command+click opens in same tab:
Add metaKey (Command key on Mac or Windows key) to modifier keys
that prevent using Ajax

Signed-off-by: Lukas Bixen <lrb2_@outlook.com>
2021-08-09 19:25:21 -05:00
William Desportes
e74ac3c93b
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-09 23:18:27 +02:00
William Desportes
657ae9132f
Merge #17043 - Fix #14796 - Fixing the issue of hiding the structure options while exporting
Pull-request: #17043
Fixes: #14796

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-09 23:09:54 +02:00
Maurício Meneghini Fauth
c90affe793
Bump Bootstrap version from 5.0.2 to 5.1.0
And related dependencies as well.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-08 13:05:47 -03:00