Page MenuHomePhabricator

Code hygiene ketchup (tracking)
Closed, DeclinedPublic

Description

This is an experiment introduced from the sprint commencing 31st March 2017.

This task tracks small hygiene tasks associated with reading web projects. It is a lightweight way to tell team members that you have done some opportunistic refactoring.

It can be moved around the Kanban board to reflect code that needs review/needs improvement. It should be considered lower priority compared to other work in the sprint.

The goal is to encourage developers to work on and communicate hygiene tasks they are making. As part of review, if a reviewer deems a task confusing or not clear this task can be used as an opportunity to start conversations/spin off tasks where necessary.

This task should not be removed from the kanban board. It's default home is ToDo. There is always refactoring to be done!

Current hygiene patches requesting review

Needs review

Needs more work

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
pmiazga updated the task description. (Show Details)

Change 369645 had a related patch set uploaded (by Pmiazga; owner: Pmiazga):
[mediawiki/extensions/TextExtracts@master] Hygiene: Remove deprecation and unused import

https://gerrit.wikimedia.org/r/369645

Change 369650 had a related patch set uploaded (by Pmiazga; owner: Pmiazga):
[mediawiki/extensions/MobileFrontend@master] Hygiene: Stop using deprecated setWarning and dieUsage

https://gerrit.wikimedia.org/r/369650

Change 369654 had a related patch set uploaded (by Pmiazga; owner: Pmiazga):
[mediawiki/extensions/MobileFrontend@master] Hygiene: ParseCache::singleton() is deprecated, use MediaWikiServices instead

https://gerrit.wikimedia.org/r/369654

Change 369657 had a related patch set uploaded (by Pmiazga; owner: Pmiazga):
[mediawiki/extensions/MobileFrontend@master] Hygiene: Interwiki::getAllPrefixes() is deprecated use MediaWikiServices instead

https://gerrit.wikimedia.org/r/369657

I've got a minor request for clarification on https://gerrit.wikimedia.org/r/369650 :

This is a big support jump (from 1.27 to 1.29). It is warranted? Was there any reason we were trying to support 1.27?

Jdlrobson updated the task description. (Show Details)

Change 369654 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Hygiene: ParseCache::singleton() is deprecated, use MediaWikiServices instead

https://gerrit.wikimedia.org/r/369654

Change 369657 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Hygiene: Interwiki::getAllPrefixes() is deprecated use MediaWikiServices instead

https://gerrit.wikimedia.org/r/369657

Change 369645 merged by jenkins-bot:
[mediawiki/extensions/TextExtracts@master] Hygiene: Remove deprecation and unused import

https://gerrit.wikimedia.org/r/369645

@pmiazga has replied according to standup update

@Jdlrobson the real question is what do we want to support? Do want to support the oldest possible MediaWiki version always, even we have to add tricks like:

if ( method_exists( 'somefunction', 'someclass' ) ) {
   do_it_new_way();
} else {
   do_it_old_way();
}

Everytime there is a new release we do a branch cut on all extensions, Also is there any procedure to verify that after all changes introduced in last year MF still works properly on 1.27?

Change 369650 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Hygiene: Stop using deprecated setWarning and dieUsage

https://gerrit.wikimedia.org/r/369650

I don't want to bring T173800 into the sprint as I think it will cause confusion (i've only fixed part of it ) and it is not a priority, but if anyone has some spare cycles I'd appreciate a review of https://gerrit.wikimedia.org/r/373076. I believe this will improve things considerably for the Wikisource community and given it is not a trivial change I'd like to run it by at least one person.

MBinder_WMF subscribed.

Adding tags to make this task Phlogiston-compatible (to exclude it).

See ya! \o
This experiment was stopped on 1st Nov.