Last modified: 2014-10-10 18:16:36 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 T73570, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71570 - Talk icon doesn't show up for pages with Flow boards in alpha
Talk icon doesn't show up for pages with Flow boards in alpha
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
alpha (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Florian
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-02 20:09 UTC by Ryan Kaldari
Modified: 2014-10-10 18:16 UTC (History)
6 users (show)

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


Attachments

Description Ryan Kaldari 2014-10-02 20:09:02 UTC
Compare:
https://en.m.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Breakfast&mobileaction=alpha
...and...
https://en.m.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Breakfast&mobileaction=beta

Talk icon shows up in Beta mode, but not in Alpha mode.

I'm not actually sure which behavior is correct, but they should probably be the same.
Comment 1 Bingle 2014-10-02 20:10:17 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/q3UhD8Ur
Comment 2 Jon 2014-10-03 17:41:08 UTC
Weird. It will be something to do with how wfRunHooks( 'SkinMinervaDefaultModules', array( $this, &$modules ) ); is run (which Flow uses).

Not sure what is happening here.
Comment 3 Florian 2014-10-03 18:02:48 UTC
This seems to be because of how Alpha and stable recognize, if a talk button is useful or not. If the user has no JS enabled, the talk button should be hidden, if there is no talk page (the user can't create a page without JS in mobile)

For this there are these implementations:

Stable:
Check if the talk element has a new class:
https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/includes/skins/SkinMinerva.php#L725
(with flow, there will be never a new class?!)

Alpha:
https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/includes/skins/SkinMinervaAlpha.php#L74
Decide with the number of topics (which will be displayed in the talk icon). So, Flow never returns the number of topics, if i see this right, so the talk button will be hidden every time.

talk.js isn't loaded on pages with flow talk pages, too (?!), so the hidden class will never be removed, like it will be on "normal" talk pages :)
Comment 4 Jon 2014-10-06 17:46:02 UTC
I guess we need to rethink this code. The fix should be in MobileFrontend I'm just not sure how best to do that.
Comment 5 Jon 2014-10-09 00:59:55 UTC
Florian personally I'd remove the hidden class in alpha. It seems unnecessary and is wrong anyway ( some articles will have talk pages but no topic page prop value )
Comment 6 Florian 2014-10-09 05:33:49 UTC
Hmm, i don't know, if this colidates with bug 67819. But it's more important, that a user can see any talk page, if there is one.
Comment 7 Gerrit Notification Bot 2014-10-09 05:46:11 UTC
Change 165694 had a related patch set uploaded by Florianschmidtwelzow:
Revert partially: "Show talk button only when JS enabled or talk page not empty"

https://gerrit.wikimedia.org/r/165694
Comment 8 Gerrit Notification Bot 2014-10-09 17:15:17 UTC
Change 165694 merged by jenkins-bot:
Revert partially: "Show talk button only when JS enabled or talk page not empty"

https://gerrit.wikimedia.org/r/165694
Comment 9 Jon 2014-10-09 21:34:04 UTC
Doesn't actually seem to have fixed it on alpha.
Comment 10 Florian 2014-10-09 21:38:06 UTC
(In reply to Jon from comment #9)
> on alpha.

Because i left the alpha code (see commit message) as an alpha feature, not good?
Comment 11 Jon 2014-10-09 21:39:14 UTC
Should remove it. Not sure why it needs to be hidden in alpha. As stated before, that page property value is not always set - especially with Flow pages :)
Comment 12 Florian 2014-10-09 21:47:24 UTC
Ok, will do it tomorrow :)
Comment 13 Gerrit Notification Bot 2014-10-10 07:06:30 UTC
Change 165980 had a related patch set uploaded by Florianschmidtwelzow:
Revert "Show talk button only when JS enabled or talk page not empty"

https://gerrit.wikimedia.org/r/165980
Comment 14 Gerrit Notification Bot 2014-10-10 18:13:28 UTC
Change 165980 merged by jenkins-bot:
Revert "Show talk button only when JS enabled or talk page not empty"

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

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


Navigation
Links