Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect inheritance of build method #503

Merged

Conversation

kamil-tekiela
Copy link
Contributor

This fixes the incorrect inheritance due to type broadening. This method should never be static as it mostly relied on the instance object. All other issues with this method have been resolved in previous PR, so we can now make this an instance method.

As you may notice, we have a problem with nullable properties, but this is an issue that was there before and this PR doesn't attempt to solve it.

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 93.84% and project coverage change: -0.01% ⚠️

Comparison is base (26b7bee) 96.47% compared to head (08a480c) 96.46%.

❗ Current head 08a480c differs from pull request most recent head efcafa1. Consider uploading reports for the commit efcafa1 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #503      +/-   ##
============================================
- Coverage     96.47%   96.46%   -0.01%     
+ Complexity     2182     2176       -6     
============================================
  Files            66       66              
  Lines          5073     5059      -14     
============================================
- Hits           4894     4880      -14     
  Misses          179      179              
Files Changed Coverage Δ
src/Components/Array2d.php 90.47% <0.00%> (ø)
src/Components/UnionKeyword.php 45.45% <0.00%> (ø)
src/Components/ExpressionArray.php 91.11% <33.33%> (-0.56%) ⬇️
src/Components/JoinKeyword.php 94.11% <33.33%> (ø)
src/Components/FunctionCall.php 93.33% <66.66%> (ø)
src/Components/WithKeyword.php 76.47% <85.71%> (ø)
src/Components/AlterOperation.php 98.67% <90.90%> (ø)
src/Components/CaseExpression.php 98.47% <94.11%> (ø)
src/Components/ArrayObj.php 100.00% <100.00%> (ø)
src/Components/Condition.php 100.00% <100.00%> (ø)
... and 26 more

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MauricioFauth MauricioFauth merged commit 6fd2c59 into phpmyadmin:master Sep 16, 2023
10 checks passed
@MauricioFauth MauricioFauth self-assigned this Sep 16, 2023
@MauricioFauth MauricioFauth added this to the 6.0.0 milestone Sep 16, 2023
@kamil-tekiela kamil-tekiela deleted the More-refactoring-of-build-method branch September 16, 2023 21:08
kamil-tekiela added a commit to kamil-tekiela/phpmyadmin that referenced this pull request Sep 16, 2023
akama-aka added a commit to akama-aka/phpmyadmin that referenced this pull request Oct 31, 2023
* Fix Selenium\Database\OperationsTest failing test

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix TableTest failing test

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Rename the directory libraries/classes/ to src/

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Replace libraries/classes references with src

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Use PHP 8.4 instead of nightly in the tests workflow

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Add windows-latest to tests workflow

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix ServerRequestFactoryTest failing test

For random order seed 1693489393.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix mutation-tests workflow

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Revert "Add windows-latest to tests workflow"

This reverts commit b55e2ab.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Force a full page reload for top menu links

Each page is a different page, so it makes more sense to do a full page
reload instead of using AJAX to load the main content.

This also avoid some possible issues with broken event handlers and
not properly loaded pages.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>
(cherry picked from commit 36a77f7)
Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix UtilTest::testLocalisedDate() with missing locale

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix infection.json5.dist source directory

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fixed the exit exception for the /url path (phpmyadmin#18673)

* Fixed the exit exception for the /url path

Signed-off-by: Sachin Bahukhandi <[email protected]>

* Fixed the exit exception if in case the url is empty

Signed-off-by: Sachin Bahukhandi <[email protected]>

* Added new lines to pass linter checks

---------

Signed-off-by: Sachin Bahukhandi <[email protected]>

* Add Medium attribute to some test classes

This test classes will fail if the Small attribute was used instead.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Optimize autocomplete

Signed-off-by: Kamil Tekiela <[email protected]>

* Optimize ChangeController

Signed-off-by: Kamil Tekiela <[email protected]>

* Improve param types in ColumnsDefinition

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor getSqlTemplateAndRequiredFields()

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor expandUserString()

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor getColumn and getColumns

Signed-off-by: Kamil Tekiela <[email protected]>

* Deprecate Config::getInstance() method

Dependency injection should be used instead.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove ExitException from AbstractController::checkParameters()

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Add a documentation note to the nopassword config

Adds a note to the $cfg['Servers'][$i]['nopassword'] directive to add a
reference to the $cfg['Servers'][$i]['AllowNoPassword'].

Fixes phpmyadmin#18680.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove some calls to ResponseRenderer::callExit()

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Move the Middleware namespace into the Http namespace

Middleware is directly related to HTTP.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Remove PHP 8.3 from experimental

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Translated using Weblate (Portuguese (Brazil))

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/pt_BR/
Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix RelationController view

Signed-off-by: Kamil Tekiela <[email protected]>

* Translated using Weblate (Turkish)

Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Burak Yavuz <[email protected]>

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/pt_BR/
Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Translated using Weblate (Turkish)

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/tr/
Signed-off-by: Burak Yavuz <[email protected]>

* Fix ChangeController

Signed-off-by: Kamil Tekiela <[email protected]>

* Remove $GLOBALS['num_fields'] completely

Signed-off-by: Kamil Tekiela <[email protected]>

* Move getNumberOfFieldsFromRequest() to controller

Signed-off-by: Kamil Tekiela <[email protected]>

* Add security link to composer.json file

https://getcomposer.org/doc/04-schema.md#support

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Inline the RelationController::updateForForeignKeys() method

This allows the removal of the ResponseRenderer::callExit() method.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix Selenium\Database\EventsTest failing test

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix Selenium\Database\ProceduresTest failing test

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update actions/checkout action to v4

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Add title for db and table operation pages

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix Selenium\TriggersTest failing test

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix Selenium\Database\OperationsTest failing test

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove null return for Routing::callSetupController() method

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Use getColumn in getValuesForColumn

Signed-off-by: Kamil Tekiela <[email protected]>

* Translated using Weblate (Polish)

Currently translated at 83.2% (2853 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/pl/
Signed-off-by: sebastians17 <[email protected]>

* Translated using Weblate (Polish)

Currently translated at 83.2% (2853 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/pl/
Signed-off-by: Adrian Wanic <[email protected]>

* Translated using Weblate (Polish)

Currently translated at 99.2% (3385 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/pl/
Signed-off-by: sebastians17 <[email protected]>

* Translated using Weblate (Polish)

Currently translated at 83.2% (2853 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/pl/
Signed-off-by: sebastians17 <[email protected]>

* Remove htmlentities()

Signed-off-by: Kamil Tekiela <[email protected]>

* Add simpler implementation of parseEnumSetValues

Signed-off-by: Kamil Tekiela <[email protected]>

* Allow GIS tests to test against different TCPDF versions

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix max execution time exceeded error in tests

Runs these tests in isolation because they are causing a time out error
when backing up the global state.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* fix: removed inline onclick javascript events (phpmyadmin#18687)

* fix: Removed inline onclick javascript events

Signed-off-by: Dipesh Gangwani <[email protected]>

* fix:  solved syntax errors

Signed-off-by: Dipesh Gangwani <[email protected]>

* fix: Update tests for Normalization onclick event issues

Signed-off-by: Dipesh Gangwani <[email protected]>

---------

Signed-off-by: Dipesh Gangwani <[email protected]>

* Replace escapeString in Transformations

Signed-off-by: Kamil Tekiela <[email protected]>

* Replace escapeString in Common

Signed-off-by: Kamil Tekiela <[email protected]>

* Replace escapeString in NodeTable

Signed-off-by: Kamil Tekiela <[email protected]>

* Replace escapeString in Search

Signed-off-by: Kamil Tekiela <[email protected]>

* Limit label width in create-view table

Signed-off-by: Maximilian Krög <[email protected]>

* Backport two test methods  for phpunit 8.5

Signed-off-by: Maximilian Krög <[email protected]>

* Fix filtering by initials for user accounts starting with %, \, or _

Signed-off-by: Maximilian Krög <[email protected]>

* Fix user pagination for 'Any' user

If the user name is empty any user may login from this host.

This fixes the pagination to display 'Any' instead of an empty string
and makes filtering with this link work.

Signed-off-by: Maximilian Krög <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Translated using Weblate (Turkish)

Currently translated at 100.0% (3411 of 3411 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Burak Yavuz <[email protected]>

* Bump phpmyadmin/shapefile to 4.0

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Bump phpmyadmin/twig-i18n-extension version to 5.0

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Translated using Weblate (Slovenian)

Currently translated at 100.0% (3411 of 3411 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/sl/
Signed-off-by: Domen <[email protected]>

* Remove unnecessary array count in ImportShp::doImport()

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Include code coverage for transformation plugins

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove unused variable

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor addSuffixes()

Signed-off-by: Kamil Tekiela <[email protected]>

* Fix GIS editor form layout

- Missing button classes for buttons added by JS
- Connect labels with their input elements
- Labels and input had wrong spacing when added from JS

Signed-off-by: Maximilian Krög <[email protected]>

* Remember the current column type

After switching the geometry type once the geometry select disappeared.

Signed-off-by: Maximilian Krög <[email protected]>

* Fix opening GIS editor in zoom search

The editor couldn't be opened there at all

Signed-off-by: Maximilian Krög <[email protected]>

* Allow switching geometry type when editing in search views

Signed-off-by: Maximilian Krög <[email protected]>

* Update JavaScript dependencies

- Updates jQuery to 3.7.1
- Updates Bootstrap to 5.3.2

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update PHPStan and Psalm baselines

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix AJAX real-row-count

Signed-off-by: Kamil Tekiela <[email protected]>

* Fix bookmark delete

Signed-off-by: Kamil Tekiela <[email protected]>

* Fix bookmark delete

Signed-off-by: Kamil Tekiela <[email protected]>

* Fix build() invocations

phpmyadmin/sql-parser#503

Signed-off-by: Kamil Tekiela <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Fix TokensList usages

phpmyadmin/sql-parser#504

Signed-off-by: Kamil Tekiela <[email protected]>

* Translated using Weblate (Ukrainian)

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/uk/
Signed-off-by: Kipя <[email protected]>

* Translated using Weblate (Ukrainian)

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/uk/
Signed-off-by: Yevhen Bronza <[email protected]>

* Translated using Weblate (Ukrainian)

Currently translated at 97.7% (3335 of 3411 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/uk/
Signed-off-by: Kipя <[email protected]>

* Translated using Weblate (Ukrainian)

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/uk/
Signed-off-by: Kipя <[email protected]>

* Improve git hash info error handling in home.js

Instead of showing a generic error message alert when an error occurs,
it displays an error message at the same place where the success output
goes.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove duplicate _gis.scss files

Signed-off-by: Maximilian Krög <[email protected]>

* Resize editor overlay and its textarea on page resize

Signed-off-by: Maximilian Krög <[email protected]>

* Split up Bookmark::get()

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor createBookmark()

Signed-off-by: Kamil Tekiela <[email protected]>

* Create Bookmarks namespace

Signed-off-by: Kamil Tekiela <[email protected]>

* Create BookmarkRepository class

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor static into instance

Signed-off-by: Kamil Tekiela <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Remove obsolete code for stand-alone gis editor

Signed-off-by: Maximilian Krög <[email protected]>

* Move gis editor form creation entirely to JS

Signed-off-by: Maximilian Krög <[email protected]>

* Add nesting to the gis editor form inputs

Signed-off-by: Maximilian Krög <[email protected]>

* Use button instead anchor in gis editor

Signed-off-by: Maximilian Krög <[email protected]>

* Count data_length in JS by number of inputs

instead using the data_length value

Signed-off-by: Maximilian Krög <[email protected]>

* Refactor generateWkt of gis classes

Signed-off-by: Maximilian Krög <[email protected]>

* Move visualization choice and download button below other inputs

Signed-off-by: Maximilian Krög <[email protected]>

* Replace SqlParser\Token::TYPE_ with SqlParser\TokenType

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update Psalm/PHPStan baselines

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove SqlParser\Utils\Query::getAll() stub

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Refactor the Core::getenv() method

Renames it to getEnv() and adds unit tests for it.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Replace is_resource with different than false

This will avoid an issue when proc_open will return an object instead of
a resource in future PHP versions.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Ignore some PHPStan errors

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update PHPStan baseline

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Move ./libraries/cache directory to ./cache

- Related to phpmyadmin#18512

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Refactor Privileges pagination

Signed-off-by: Maximilian Krög <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Remove sanitize method

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor getLevel()

Signed-off-by: Kamil Tekiela <[email protected]>

* Refactor number and add errorNumber

Signed-off-by: Kamil Tekiela <[email protected]>

* Translated using Weblate (Turkish)

Currently translated at 100.0% (3403 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Burak Yavuz <[email protected]>

* Translated using Weblate (Slovenian)

Currently translated at 100.0% (3403 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/sl/
Signed-off-by: Domen <[email protected]>

* Replace escapeString with quoteString

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Relax ConfigTest::testVendorConfigFile() test

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Add composer.lock to version control

This will allow more control over the dependencies and will be easier to
investigate issues from past commits as the dependencies will be locked.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Refactor gis visualization ts code

    - Make both visualizations work in gis editor and allow switching
    - Dynamic size for the gis visualization
    - Refactor visualization code as classes
    - Don't use so many ids in html

Signed-off-by: Maximilian Krög <[email protected]>

* Fix coding standard issues for Twig files

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update PHPStan baseline

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Fix undefined variable in login/header template

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove $diagram property from ExportRelationSchema

Replaces it with a private property for each child class.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Inject Relation dep in ExportRelationSchema classes

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix possible invalid argument in PdfRelationSchema

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Translated using Weblate (Russian)

Currently translated at 98.0% (3360 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 <[email protected]>

* Translated using Weblate (Russian)

Currently translated at 95.5% (3251 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <[email protected]>

* Translated using Weblate (Macedonian)

Currently translated at 25.5% (868 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <[email protected]>

* Translated using Weblate (Russian)

Currently translated at 98.3% (3371 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 <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Translated using Weblate (Russian)

Currently translated at 95.8% (3261 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <[email protected]>

* Translated using Weblate (Russian)

Currently translated at 98.3% (3371 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 <[email protected]>

* Replaced superglobals with ServerRequest in FindReplaceController and ChangeRowsController

Signed-off-by: Vasiliy Mulyarets <[email protected]>

* Fix failing tests

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Upgrade JavaScript dependencies

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Destroy Template's $twig property for tests

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove Jenkins build.xml

Jenkins builds are not working for a long time.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update Composer dependencies

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update PHPStan baseline

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Move ./templates directory to ./resources/templates

- Related to phpmyadmin#18512

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix some type errors when exporting from db designer

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Add some basic unit tests to schema plugins

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Move ./sql directory to ./resources/sql

- Related to phpmyadmin#18512

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Translated using Weblate (Macedonian)

Currently translated at 25.5% (871 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <[email protected]>

* Translated using Weblate (Macedonian)

Currently translated at 26.9% (922 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <[email protected]>

* Translated using Weblate (Macedonian)

Currently translated at 26.9% (922 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/mk/
Signed-off-by: Daniel Dimitrov <[email protected]>

* Fix param type in getSpecialLinkUrl()

Signed-off-by: Kamil Tekiela <[email protected]>

* Add test for Zoom Search's change table info action

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Translated using Weblate (Romanian)

Currently translated at 90.6% (3085 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ro/
Signed-off-by: Vlăduț Ilie <[email protected]>

* Translated using Weblate (Romanian)

Currently translated at 91.8% (3146 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/ro/
Signed-off-by: Vlăduț Ilie <[email protected]>

* Fix param type in getSpecialLinkUrl()

Signed-off-by: Kamil Tekiela <[email protected]>

* Simplify getColumnParams()

Signed-off-by: Kamil Tekiela <[email protected]>

* Remove $properties

Signed-off-by: Kamil Tekiela <[email protected]>

* Remove 1st param in getUniqueCondition()

Signed-off-by: Kamil Tekiela <[email protected]>

* Create UniqueCondition class

Signed-off-by: Kamil Tekiela <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Apply suggestions from code review

Signed-off-by: Kamil Tekiela <[email protected]>
Co-authored-by: Maurício Meneghini Fauth <[email protected]>

* Fix unneeded consts in UtilTest

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Translated using Weblate (Slovak)

Currently translated at 70.2% (2392 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/sk/
Signed-off-by: Pavol Linet <[email protected]>

* Translated using Weblate (Slovak)

Currently translated at 72.8% (2498 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/sk/
Signed-off-by: Pavol Linet <[email protected]>

* Rename ./libraries directory to ./app

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Move ./cache directory to ./app/cache

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update PHP dependencies

- Upgrading php-webdriver/webdriver (1.15.0 => 1.15.1)
- Upgrading phpmyadmin/sql-parser (dev-master 46ff7ec => dev-master 08f465a)
- Upgrading roave/security-advisories (dev-latest 26c07e7 => dev-latest 66671a6)
- Upgrading symfony/cache (v6.3.5 => v6.3.6)
- Upgrading symfony/var-exporter (v6.3.4 => v6.3.6)

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Move ./js directory to ./resources/js

- Related to phpmyadmin#18512

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Add shellcheck to CI

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Fix issues reported by shellcheck

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Remove motranslator functions file from composer.json

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update po files

[ci skip]

Signed-off-by: phpMyAdmin bot <[email protected]>

* Translated using Weblate (Macedonian)

Currently translated at 25.8% (878 of 3403 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <[email protected]>

* Translated using Weblate (Macedonian)

Currently translated at 27.1% (929 of 3427 strings)

[ci skip]

Translation: phpMyAdmin/5.2
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-2/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <[email protected]>

* Improve collations support for MariaDB 10.10+ (phpmyadmin#18760)

* Added new charset queries

Signed-off-by: Dmitrii Kustov <[email protected]>

* Improve collations support for MariaDB 10.10+

Signed-off-by: Dmitrii Kustov <[email protected]>

* Using dbi to check for MariaDB

Signed-off-by: Dmitrii Kustov <[email protected]>

* Removed unnecessary query

Signed-off-by: Dmitrii Kustov <[email protected]>

* Cleanup

Signed-off-by: Dmitrii Kustov <[email protected]>

* Whitespaces

Signed-off-by: Dmitrii Kustov <[email protected]>

* Whitespaces

Signed-off-by: Dmitrii Kustov <[email protected]>

* Switched to getVersion()

Signed-off-by: Dmitrii Kustov <[email protected]>

* Removed use of version_compare

Signed-off-by: Dmitrii Kustov <[email protected]>

* Test for MariaDB 10.10+

Signed-off-by: Dmitrii Kustov <[email protected]>

* Update test/classes/CharsetsTest.php

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

---------

Signed-off-by: Dmitrii Kustov <[email protected]>
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
Co-authored-by: Maurício Meneghini Fauth <[email protected]>

* Improve collations support for MariaDB 10.10+ (phpmyadmin#18760)

* Added new charset queries

Signed-off-by: Dmitrii Kustov <[email protected]>

* Improve collations support for MariaDB 10.10+

Signed-off-by: Dmitrii Kustov <[email protected]>

* Using dbi to check for MariaDB

Signed-off-by: Dmitrii Kustov <[email protected]>

* Removed unnecessary query

Signed-off-by: Dmitrii Kustov <[email protected]>

* Cleanup

Signed-off-by: Dmitrii Kustov <[email protected]>

* Whitespaces

Signed-off-by: Dmitrii Kustov <[email protected]>

* Whitespaces

Signed-off-by: Dmitrii Kustov <[email protected]>

* Switched to getVersion()

Signed-off-by: Dmitrii Kustov <[email protected]>

* Removed use of version_compare

Signed-off-by: Dmitrii Kustov <[email protected]>

* Test for MariaDB 10.10+

Signed-off-by: Dmitrii Kustov <[email protected]>

* Update test/classes/CharsetsTest.php

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

Fixes phpmyadmin#18769

---------

Signed-off-by: Dmitrii Kustov <[email protected]>
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
Co-authored-by: Maurício Meneghini Fauth <[email protected]>
(cherry picked from commit ef92f1f)
Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update JavaScript dependencies

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

* Update Composer dependencies

  - Upgrading laminas/laminas-diactoros (3.2.0 => 3.3.0)
  - Upgrading phpmyadmin/sql-parser (dev-master 08f465a => dev-master 9db9c53)
  - Upgrading phpstan/phpstan (1.10.39 => 1.10.40)
  - Upgrading phpstan/phpstan-strict-rules (1.5.1 => 1.5.2)
  - Upgrading phpunit/phpunit (10.4.1 => 10.4.2)
  - Upgrading roave/security-advisories (dev-latest 66671a6 => dev-latest d66cd3b)

Signed-off-by: Maurício Meneghini Fauth <[email protected]>

---------

Signed-off-by: Maurício Meneghini Fauth <[email protected]>
Signed-off-by: Sachin Bahukhandi <[email protected]>
Signed-off-by: Kamil Tekiela <[email protected]>
Signed-off-by: phpMyAdmin bot <[email protected]>
Signed-off-by: Burak Yavuz <[email protected]>
Signed-off-by: sebastians17 <[email protected]>
Signed-off-by: Adrian Wanic <[email protected]>
Signed-off-by: Dipesh Gangwani <[email protected]>
Signed-off-by: Maximilian Krög <[email protected]>
Signed-off-by: Domen <[email protected]>
Signed-off-by: Kipя <[email protected]>
Signed-off-by: Yevhen Bronza <[email protected]>
Signed-off-by: Andrei Stepanov <[email protected]>
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <[email protected]>
Signed-off-by: Vasiliy Mulyarets <[email protected]>
Signed-off-by: Daniel Dimitrov <[email protected]>
Signed-off-by: Vlăduț Ilie <[email protected]>
Signed-off-by: Pavol Linet <[email protected]>
Signed-off-by: Dmitrii Kustov <[email protected]>
Co-authored-by: Maurício Meneghini Fauth <[email protected]>
Co-authored-by: Sachin Bahukhandi <[email protected]>
Co-authored-by: Kamil Tekiela <[email protected]>
Co-authored-by: phpMyAdmin bot <[email protected]>
Co-authored-by: Burak Yavuz <[email protected]>
Co-authored-by: William Desportes <[email protected]>
Co-authored-by: sebastians17 <[email protected]>
Co-authored-by: Adrian Wanic <[email protected]>
Co-authored-by: Dipesh-Gangwani <[email protected]>
Co-authored-by: Maximilian Krög <[email protected]>
Co-authored-by: Domen <[email protected]>
Co-authored-by: Kipя <[email protected]>
Co-authored-by: Yevhen Bronza <[email protected]>
Co-authored-by: Andrei Stepanov <[email protected]>
Co-authored-by: Kristijan \"Fremen\" Velkovski <[email protected]>
Co-authored-by: Vasiliy Mulyarets <[email protected]>
Co-authored-by: Daniel Dimitrov <[email protected]>
Co-authored-by: Vlăduț Ilie <[email protected]>
Co-authored-by: Pavol Linet <[email protected]>
Co-authored-by: Dmitrii Kustov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants