Skip to content

[4.0] Add prepared statements for plg_content_pagenavigation#25051

Merged
wilsonge merged 32 commits intojoomla:4.0-devfrom
HLeithner:prepared-plg-content-pagenavigation
Mar 27, 2020
Merged

[4.0] Add prepared statements for plg_content_pagenavigation#25051
wilsonge merged 32 commits intojoomla:4.0-devfrom
HLeithner:prepared-plg-content-pagenavigation

Conversation

@HLeithner
Copy link
Copy Markdown
Member

Summary of Changes

Updated SQL queries to prepared statements and made some cleanups around the queries.

Testing Instructions

Use the plugin in all ways you can think of.

  • Activate the page navigation feature
  • create multiple articles in the same category
  • check the frontend if you can navigate to the next article
  • set the ordering in the menu and the global options, try different dates (create,published, modified)

Expected result

Nothing changed.

@ghost ghost changed the title Add prepared statements for plg_content_pagenavigation [4.0] Add prepared statements for plg_content_pagenavigation May 30, 2019
@SharkyKZ
Copy link
Copy Markdown
Contributor

SharkyKZ commented Jul 9, 2019

Currently (with or without patch) the plugin doesn't return any articles due to invalid workflow query. Do you want to add a fix in here? Or should we wait until this is merged first?

Co-Authored-By: SharkyKZ <sharkykz@gmail.com>
@HLeithner
Copy link
Copy Markdown
Member Author

@SharkyKZ Can you point me to the workflow query problem?

@SharkyKZ
Copy link
Copy Markdown
Contributor

SharkyKZ commented Jul 9, 2019

Here are related PRs #24785, #24494.

@HLeithner
Copy link
Copy Markdown
Member Author

I it's not a problem of the PR I would merge it WF needs a major update anyway.

@SharkyKZ
Copy link
Copy Markdown
Contributor

Fix conflict please.

# Conflicts:
#	plugins/content/pagenavigation/pagenavigation.php
@wilsonge
Copy link
Copy Markdown
Contributor

OK let's get some tests here - this is the last PR in the prepared statements project - would be nice to get that finally shut down

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 25, 2020

See #27587 which prevents testing.

@wilsonge
Copy link
Copy Markdown
Contributor

That issue is unrelated to this plugin I’ve clarified there

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Feb 9, 2020

Please fix conflicts.

@wilsonge
Copy link
Copy Markdown
Contributor

Should be fixed

@alikon alikon self-requested a review February 20, 2020 18:54
@Quy Quy added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Feb 22, 2020
@wilsonge
Copy link
Copy Markdown
Contributor

@HLeithner can you spend some time fixing the issue raised here please

@wilsonge
Copy link
Copy Markdown
Contributor

@HLeithner bump again

@HLeithner
Copy link
Copy Markdown
Member Author

Should work again now...

@Quy Quy removed the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Mar 27, 2020
@alikon
Copy link
Copy Markdown
Contributor

alikon commented Mar 27, 2020

I have tested this item ✅ successfully on c8f3afc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25051.

1 similar comment
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Mar 27, 2020

I have tested this item ✅ successfully on c8f3afc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25051.

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Mar 27, 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25051.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 27, 2020
@wilsonge wilsonge merged commit f17db77 into joomla:4.0-dev Mar 27, 2020
@wilsonge
Copy link
Copy Markdown
Contributor

Thanks!

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 27, 2020
@wilsonge wilsonge added this to the Joomla 4.0 milestone Mar 27, 2020
@HLeithner HLeithner deleted the prepared-plg-content-pagenavigation branch March 29, 2020 19:18
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.

8 participants