Commit Graph

128451 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
b2a3e41f1e
Merge pull request #19087 from MauricioFauth/navigation-config-handling
Remove Config\(G|S)etConfigController controllers
2024-03-31 23:41:10 -03:00
Burak Yavuz
e4cf5ab2a9
Translated using Weblate (Turkish)
Currently translated at 100.0% (3408 of 3408 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Burak Yavuz <hitowerdigit@hotmail.com>
2024-04-01 01:03:58 +02:00
Maurício Meneghini Fauth
d4cdfbe2eb
Rename functions/config.ts to navigation/updateNavigationWidthConfig.ts
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-31 11:10:49 -03:00
Oğuz Ersen
064554ded0
Translated using Weblate (Turkish)
Currently translated at 100.0% (3408 of 3408 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Oğuz Ersen <oguz@ersen.moe>
2024-03-31 15:54:44 +02:00
Maurício Meneghini Fauth
adc834f1ae
Move SetConfigController to Controller\Navigation namespace
Changes the route to /navigation/update-width.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-31 10:37:40 -03:00
Maurício Meneghini Fauth
6482dfa28b
Change SetConfigController to only set NavigationWidth
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-31 10:37:40 -03:00
Maurício Meneghini Fauth
7547341bee
Remove GetConfigController class
This is only used to get the NavigationWidth config value, and the same
value is stored in a data attribute. So this removes an unnecessary HTTP
request.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-31 10:37:39 -03:00
Yaron Shahrabani
c690d5d9d5
Translated using Weblate (Hebrew)
Currently translated at 43.3% (1479 of 3408 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/he/
Signed-off-by: Yaron Shahrabani <sh.yaron@gmail.com>
2024-03-31 09:17:05 +02:00
phpMyAdmin bot
a289a73181 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2024-03-31 00:20:17 +00:00
Maurício Meneghini Fauth
d61a059650
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-29 18:25:45 -03:00
Maurício Meneghini Fauth
98451524e7
Merge pull request #19083 from MauricioFauth/response-renderer-mock-test-fail
Reset ResponseRenderer::$instance after test in ApplicationHandlerTest
2024-03-29 18:19:44 -03:00
Maurício Meneghini Fauth
a6a821adfc
Merge pull request #19058 from LHofman/fix#18451
Fix #18451 - When editing inline central column, Null is always preselected

Fixes #18451
2024-03-29 18:11:23 -03:00
Maurício Meneghini Fauth
7f642d41a6
Fix A_I and Null checkboxes default values in edit_table_row.twig
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-29 18:09:20 -03:00
Jorrit Schippers
cf6f9c0d42
Translated using Weblate (Dutch)
Currently translated at 99.2% (3382 of 3406 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/nl/
Signed-off-by: Jorrit Schippers <jorrit@ncode.nl>
2024-03-29 22:04:53 +01:00
Jorrit Schippers
282db347f7
Translated using Weblate (Dutch)
Currently translated at 100.0% (3427 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/nl/
Signed-off-by: Jorrit Schippers <jorrit@ncode.nl>
2024-03-29 22:04:52 +01:00
Maurício Meneghini Fauth
dc24ffc6be
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-29 16:09:13 -03:00
Maurício Meneghini Fauth
d819acf210
Merge pull request #19031 from LHofman/fix#18593
Fix #18593 - drop db line included in server export if exporting only…
2024-03-29 15:35:40 -03:00
Maurício Meneghini Fauth
bd600b165a
Merge branch 'QA_5_2' into fix#18593 2024-03-29 15:35:18 -03:00
Maurício Meneghini Fauth
913e7d4b17
Merge pull request #19068 from MauricioFauth/console-settings
Refactor Console settings handling
2024-03-29 14:35:47 -03:00
Maurício Meneghini Fauth
52b39e065d
Reset ResponseRenderer::$instance after test in ApplicationHandlerTest
Not resetting this value causes other tests to fail when running then in
a specific order.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-29 14:16:20 -03:00
Vaniron CZ
d0be67b18c
Translated using Weblate (Czech)
Currently translated at 99.2% (3382 of 3406 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/cs/
Signed-off-by: Vaniron CZ <vanironcz@gmail.com>
2024-03-29 11:58:04 +01:00
Vaniron CZ
f7db16f21c
Translated using Weblate (Czech)
Currently translated at 100.0% (3427 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/cs/
Signed-off-by: Vaniron CZ <vanironcz@gmail.com>
2024-03-29 11:58:02 +01:00
Maurício Meneghini Fauth
774ec8259e
Change Console\UpdateConfigController to return a Response object
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:34 -03:00
Maurício Meneghini Fauth
2c32a6c583
Change Console\UpdateConfigController to validade params
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:34 -03:00
Maurício Meneghini Fauth
0e7ea9cb89
Convert Console's Config object into a class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:34 -03:00
Maurício Meneghini Fauth
db5b230ae5
Split Console's Config.set() for each property
This allows for better type handling.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:33 -03:00
Maurício Meneghini Fauth
e299aef4b4
Restore console config values only when necessary
This reduces the need of unnecessary HTTP requests.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:33 -03:00
Maurício Meneghini Fauth
f9600ddcd8
Add event listeners for each console setting
This reduces the number of HTTP requests from 5 to 1.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:33 -03:00
Maurício Meneghini Fauth
65c6f18f9a
Create a dedicated controller to update Console config
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:32 -03:00
Maurício Meneghini Fauth
775a9a4537
Remove getConfigValue() call from Console.initialize()
Uses data attributes to store the config values.
That removes the need to do a HTTP request to get the values.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:32 -03:00
Maurício Meneghini Fauth
352c465640
Initialize Console settings at server side
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-28 21:13:31 -03:00
Rasool-deldar
cdc5d20ef9
Translated using Weblate (Persian)
Currently translated at 21.7% (742 of 3406 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/fa/
Signed-off-by: Rasool-deldar <rasool.deldar.deve@gmail.com>
2024-03-28 18:06:52 +01:00
Andrei Stepanov
5bfeab74d2
Translated using Weblate (Russian)
Currently translated at 98.7% (3364 of 3406 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <adem4ik@gmail.com>
2024-03-27 17:10:10 +01:00
Maurício Meneghini Fauth
542f1ad466
Merge pull request #19079 from kamil-tekiela/getWarningMessagesArray
Refactor Operations::getWarningMessagesArray
2024-03-27 10:15:34 -03:00
Maurício Meneghini Fauth
d8fcc9eeba
Merge pull request #19082 from MauricioFauth/allowDeny_forbidden
Remove allowDeny_forbidden global
2024-03-27 07:45:41 -03:00
Maurício Meneghini Fauth
1d8367368e
Remove allowDeny_forbidden global
Fixes issue introduced by 2327dbf3c3.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-26 16:08:42 -03:00
Andrei Stepanov
d54981f013
Translated using Weblate (Russian)
Currently translated at 99.7% (3418 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/ru/
Signed-off-by: Andrei Stepanov <adem4ik@gmail.com>
2024-03-26 12:09:42 +01:00
Maurício Meneghini Fauth
c0e4d31b76
Merge pull request #19074 from kamil-tekiela/testing-phpunit
Fixing PHPUnit performance
2024-03-25 19:30:40 -03:00
Maciej Gomoła
c690feb899
Translated using Weblate (Polish)
Currently translated at 90.1% (3091 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/pl/
Signed-off-by: Maciej Gomoła <maciejg2008@gmail.com>
2024-03-24 22:26:55 +01:00
phpMyAdmin bot
7d6bddd386 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2024-03-24 00:19:57 +00:00
Kamil Tekiela
2f3c4d3830 Refactor Operations::getWarningMessagesArray
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-23 14:39:05 +01:00
Kamil Tekiela
abdaefca82 Remove PreserveGlobalState
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-21 15:17:30 +01:00
Kamil Tekiela
c4167c0b8b
Clean up the rest of import tests (#19071)
* Clean up ImportMediawikiTest

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

* Clean up ImportOdsTest

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

* Convert $_REQUEST to setImportOptions

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

* Clean up ImportShpTest

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

* Clean up ImportSqlTest

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

* Clean up ImportXmlTest

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

---------

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-21 07:59:23 -03:00
Maurício Meneghini Fauth
6fde602c15
Merge pull request #19070 from kamil-tekiela/Refactor-import-13
Refactor of import tests
2024-03-20 14:43:59 -03:00
Kamil Tekiela
8e9eb4c29b Clean up ImportLdiTest
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-20 18:03:53 +01:00
Kamil Tekiela
ba36dfd8a7 Convert remaining $_REQUEST
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-20 18:03:53 +01:00
Kamil Tekiela
197c0474ec Clean up ImportCsvTest
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-20 18:03:53 +01:00
Kamil Tekiela
82c85d26c0
Clean up of tests (#19067)
* Fix wrong type hint

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

* Use $this instead of parent

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

* setUp should be a protected method

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

* onNotSuccessfulTest should be protected

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

* $command doesn't need to be a property

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

* Give alertText() proper return type

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

* Use null-safe operator

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

* Call Message static constructors statically

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

* Call StorageEngine methods statically

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

* Add better type hints in PrivilegesController

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

* Use packed (without keys) arrays in tests

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

* Use type casts instead of function casts

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

* Use const instead of private property

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

* Use const instead of private property

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

* Fix testAuthFailsTooLongPass()

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

* Replace loop with array_shift

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

* Use ob_get_clean

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

* Remove duplicated code

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

* Use assert instead of phpdoc

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

---------

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-20 13:34:55 -03:00
Maurício Meneghini Fauth
4edb2648a1
Merge pull request #19065 from kamil-tekiela/tests
Remove some unnecessary things from tests
2024-03-19 11:39:21 -03:00
Kamil Tekiela
49e827a6b5 Data provider should be static
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-18 21:25:07 +01:00