Skip to content

PlgSystemUpdatenotification::getSuperUsers - replace query with API call#8684

Merged
rdeutz merged 2 commits intojoomla:stagingfrom
klas:updatenotification
Aug 13, 2016
Merged

PlgSystemUpdatenotification::getSuperUsers - replace query with API call#8684
rdeutz merged 2 commits intojoomla:stagingfrom
klas:updatenotification

Conversation

@klas
Copy link
Copy Markdown
Contributor

@klas klas commented Dec 14, 2015

PlgSystemUpdatenotification::getSuperUsers is doing direct database queries to find groups with superuser permissions. We have existing API that should be used for this (to avoid code duplication and maintainance problems).

To test check behaviour of notification plugin before and after the patch, it should stay the same.

@klas klas changed the title PlgSystemUpdatenotification::getSuperUsers - replace query wirh API call PlgSystemUpdatenotification::getSuperUsers - replace query with API call Dec 14, 2015
@brianteeman
Copy link
Copy Markdown
Contributor

NOTE: The travis errors are unrelated to this PR


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

@Bakual
Copy link
Copy Markdown
Contributor

Bakual commented Dec 14, 2015

@klas Can you update your PR with current staging. The codestyle issues which went in with the 3.4.6 release are now fixed.

@klas
Copy link
Copy Markdown
Contributor Author

klas commented Dec 15, 2015

@Bakual Done

@conconnl
Copy link
Copy Markdown
Member

@klas, how can I test this exactly.
Then I can ask PBF visitors to test this PR.


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

@klas
Copy link
Copy Markdown
Contributor Author

klas commented Jun 28, 2016

@conconnl getSuperUsers fuction behaviour should stay the same, what specifically you can test is that the same set of superusers gets email notification about update than before patch (emails are sent either to superusers with emails matching those from the list or all superusers, if no emails have been set in the plugin)

@conconnl
Copy link
Copy Markdown
Member

@klas I have tried to test it but can't seem to trigger the update mails.
I manually changed the version numbers in the files, but the update mechanism in Joomla can't find a update even when I use 3.4.0 as number.

I you know which changes are needed to trigger it, then I would gladly test it again.

@faynt0
Copy link
Copy Markdown

faynt0 commented Aug 1, 2016

I have tested this item ✅ successfully on 91d4e47

First I tried to trigger the update notification by manually change the version string.
This step worked worked and the backend popup to update. But it didn't send an email to the superuser (pre-patch).
So I vardumpped the codenotification.php return values that are affected by the patch and compared them with the return values of the patched code.
Pre- and postpatch returned the same values.

@icampus


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

@krim404
Copy link
Copy Markdown

krim404 commented Aug 2, 2016

I have tested this item ✅ successfully on 91d4e47

changed the version in database and cleared cache. dumped the return information from ./plugins/system/updatenotification/updatenotification.php

both looked the same. @icampus


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

@roland-d roland-d added this to the Joomla 3.6.2 milestone Aug 2, 2016
@joomla-cms-bot joomla-cms-bot removed this from the Joomla 3.6.2 milestone Aug 2, 2016
@roland-d
Copy link
Copy Markdown
Contributor

roland-d commented Aug 2, 2016

RTC as we have 2 successful tests


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Aug 2, 2016
@klas
Copy link
Copy Markdown
Contributor Author

klas commented Aug 3, 2016

Thank you all for testing

@roland-d roland-d added this to the Joomla 3.6.2 milestone Aug 3, 2016
@rdeutz rdeutz merged commit 6eee5ef into joomla:staging Aug 13, 2016
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 13, 2016
ggppdk pushed a commit to ggppdk/joomla-cms that referenced this pull request Aug 19, 2016
roland-d pushed a commit to roland-d/joomla-cms that referenced this pull request Sep 11, 2016
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.

9 participants