Skip to content

Extract url.php entry point into a route#17676

Merged
MauricioFauth merged 1 commit intophpmyadmin:masterfrom
MauricioFauth:url-route
Aug 6, 2022
Merged

Extract url.php entry point into a route#17676
MauricioFauth merged 1 commit intophpmyadmin:masterfrom
MauricioFauth:url-route

Conversation

@MauricioFauth
Copy link
Copy Markdown
Member

@MauricioFauth MauricioFauth commented Aug 6, 2022

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 6, 2022

Codecov Report

Merging #17676 (75cf045) into master (d51eadc) will increase coverage by 0.09%.
The diff coverage is 10.52%.

@@             Coverage Diff              @@
##             master   #17676      +/-   ##
============================================
+ Coverage     53.64%   53.73%   +0.09%     
- Complexity    16869    16871       +2     
============================================
  Files           617      616       -1     
  Lines         59600    60090     +490     
============================================
+ Hits          31972    32292     +320     
- Misses        27628    27798     +170     
Flag Coverage Δ
dbase-extension 53.62% <10.52%> (+<0.01%) ⬆️
recode-extension 53.62% <10.52%> (-0.01%) ⬇️
unit-7.2-ubuntu-latest 53.62% <10.52%> (?)
unit-7.3-ubuntu-latest 53.92% <10.52%> (?)
unit-7.4-ubuntu-latest 53.92% <10.52%> (+<0.01%) ⬆️
unit-8.0-ubuntu-latest 53.99% <10.52%> (?)
unit-8.1-ubuntu-latest 53.87% <10.52%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
libraries/classes/Common.php 16.36% <0.00%> (-0.16%) ⬇️
...raries/classes/Controllers/ChangeLogController.php 0.00% <0.00%> (ø)
libraries/classes/Sanitize.php 91.30% <ø> (+0.12%) ⬆️
libraries/classes/Html/Generator.php 19.96% <33.33%> (-0.44%) ⬇️
libraries/classes/Core.php 70.13% <50.00%> (+0.24%) ⬆️
libraries/classes/ResponseRenderer.php 6.29% <0.00%> (-7.00%) ⬇️
libraries/classes/Html/MySQLDocumentation.php 36.36% <0.00%> (-1.74%) ⬇️
libraries/classes/Transformations.php 60.82% <0.00%> (-1.21%) ⬇️
libraries/classes/Query/Generator.php 24.80% <0.00%> (-0.85%) ⬇️
...es/classes/Plugins/Schema/ExportRelationSchema.php 50.70% <0.00%> (-0.73%) ⬇️
... and 130 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

$GLOBALS['containerBuilder']->set('theme_manager', ThemeManager::getInstance());
Tracker::enable();

if ($route === '/url') {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be before tracking init
Ideally this should just work without dbi and things
Or not?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, yes. But I added it in the same order. We can check this later when refactoring the Common class.

Copy link
Copy Markdown
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this 💯

@MauricioFauth MauricioFauth self-assigned this Aug 6, 2022
@MauricioFauth MauricioFauth merged commit 2d41333 into phpmyadmin:master Aug 6, 2022
@MauricioFauth MauricioFauth deleted the url-route branch August 6, 2022 21:50
@williamdes williamdes added this to the 5.3.0 milestone Aug 6, 2022
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.

2 participants