Last modified: 2014-05-30 19:12:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67736, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65736 - Id and class names for Special:PageMigration need to be fixed as per the standards followed
Id and class names for Special:PageMigration need to be fixed as per the stan...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Pratik Lahoti
: easy
Depends on:
Blocks: 65740
  Show dependency treegraph
 
Reported: 2014-05-25 05:44 UTC by Pratik Lahoti
Modified: 2014-05-30 19:12 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
From current code to fix: "html template" which shows the tree structure/html elements in context to understand the meaning (952 bytes, text/plain)
2014-05-26 14:20 UTC, Nemo
Details

Description Pratik Lahoti 2014-05-25 05:44:10 UTC
The id and class names for Special:PageMigration (a GSoC project) need to be fixed/altered to meet the current standards followed by MediaWiki.

Refer: https://gerrit.wikimedia.org/r/#/c/133720/17/specials/SpecialPageMigration.php
Comment 1 Andre Klapper 2014-05-25 07:32:35 UTC
Hi, what does ""as per the standards followed"" mean? What is the bug here? It's unclear from reading this ticket what the actual problem is. :(

Also see https://www.mediawiki.org/wiki/How_to_report_a_bug for general info.
Comment 2 Pratik Lahoti 2014-05-25 18:15:40 UTC
Hi Andre, by standards, I mean the general guidelines and principles followed on MediaWiki. If you look into the code, I have just given trivial names which came to my mind. This needs to be fixed to make the code production-level.
Comment 3 Nemo 2014-05-26 14:20:09 UTC
Created attachment 15475 [details]
From current code to fix: "html template" which shows the tree structure/html elements in context to understand the meaning

BPositive produced this for Nikerabbit to comment how he wants the classes and IDs to be named.
Comment 4 Krinkle 2014-05-26 14:27:00 UTC
Yeah, these IDs are quite generic. Can easily clash with things and seem out of place in a MediaWiki context.

Relevant conventions:
 https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS#Naming
Comment 5 Niklas Laxström 2014-05-27 15:20:23 UTC
Some reading: http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/

Even if we don't use that syntax (which I think we should in this case), the mindset of part-of and kind-of is very helpful.
Comment 6 Gerrit Notification Bot 2014-05-28 08:27:57 UTC
Change 135750 had a related patch set uploaded by BPositive:
ID and class names altered with mw-tpm-sp prefix

https://gerrit.wikimedia.org/r/135750
Comment 7 Gerrit Notification Bot 2014-05-30 19:08:20 UTC
Change 135750 merged by jenkins-bot:
ID and class names fixed for Special:PageMigration with mw-tpm-sp prefix

https://gerrit.wikimedia.org/r/135750
Comment 8 Nemo 2014-05-30 19:12:24 UTC
Assuming fixed, further issues to be reported separately.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links