Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

SUS-2161: Create background task for user watchlist updates #12993

Merged
merged 3 commits into from
Jun 5, 2017
Merged

Conversation

mszabo-wikia
Copy link
Contributor

@mszabo-wikia mszabo-wikia commented May 26, 2017

https://wikia-inc.atlassian.net/browse/SUS-2161

Created a background task to handle watchlist and talk page notifications asynchronously, and removed the unused WatchSubPages extension.

@mszabo-wikia mszabo-wikia changed the title Sus 2161 SUS-2161: Create background task for user watchlist updates May 26, 2017
@WikiaTech
Copy link

SonarQube analysis reported 95 issues

  • MAJOR 57 major
  • MINOR 7 minor
  • INFO 31 info

Watch the comments in this conversation to review them.

Top 10 extra issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR User.php: File "User.php" has 4702 lines, which is greater than 1000 authorized. Split it into smaller files. rule
  2. MAJOR User.php#L75: Class "User" has 219 methods, which is greater than 20 authorized. Split it into smaller classes. rule
  3. MAJOR User.php#L131: Remove this commented out code. rule
  4. MAJOR User.php#L137: Remove this commented out code. rule
  5. MAJOR User.php#L148: Remove this commented out code. rule
  6. MAJOR User.php#L155: Remove this commented out code. rule
  7. MAJOR User.php#L427: Remove this commented out code. rule
  8. MAJOR User.php#L506: Reduce the number of returns of this function 5, down to the maximum allowed 3. rule
  9. MAJOR User.php#L577: Remove this commented out code. rule
  10. MAJOR User.php#L677: Reduce the number of returns of this function 4, down to the maximum allowed 3. rule

@@ -2920,19 +2920,28 @@ public function removeWatch( $title ) {
* the next change of the page if it's watched etc.
* @param $title Title of the article to look at
*/
public function clearNotification( &$title ) {
global $wgUseEnotif, $wgShowUpdatedMarker;
public function clearNotification( Title $title ) {

Choose a reason for hiding this comment

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

MAJOR Reduce the number of returns of this function 4, down to the maximum allowed 3. rule

@mszabo-wikia mszabo-wikia requested review from macbre, a user, pwojcik86 and kolek7 May 26, 2017 20:26
@ghost ghost removed request for pwojcik86 and kolek7 May 29, 2017 09:57
@mszabo-wikia mszabo-wikia merged commit fa1478f into dev Jun 5, 2017
@mszabo-wikia mszabo-wikia deleted the SUS-2161 branch June 5, 2017 13:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants