Last modified: 2014-05-07 21:01:05 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 T56248, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54248 - Clicking VE edit after starting the wikitext 'firstedit' tour produces an incorrect step
Clicking VE edit after starting the wikitext 'firstedit' tour produces an inc...
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
GuidedTour (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Matthew Flaschen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-17 23:07 UTC by Steven Walling
Modified: 2014-05-07 21:01 UTC (History)
4 users (show)

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


Attachments
Screenshot (470.72 KB, image/png)
2013-09-17 23:07 UTC, Steven Walling
Details

Description Steven Walling 2013-09-17 23:07:52 UTC
Created attachment 13298 [details]
Screenshot

If you start ?tour=firstedit and then click veaction=edit, you get the wikitext-related Preview step unattached (see screenshot).

This is a low priority issue, because users should only be getting the wikitext 'firstedit' tour if VE is not available. I am filing just in case the opposite situation might happen, i.e. users start a ?tour=vefirstedit, click Edit source, then get the VE tour step. If that's impossible, then this can be ignored for now.
Comment 1 Matthew Flaschen 2013-09-17 23:10:53 UTC
Oh, I forgot the showConditionally.  This is a trivial fix, and I'll do it tonight.
Comment 2 Matthew Flaschen 2013-09-18 09:05:39 UTC
I was wrong about it being an easy fix.  As far as I can tell, this never worked (wikitext tours not being loaded for VisualEditor).  There are two different scenarios, which don't work for different reasons.

However, it will work in the other direction (which is probably why I didn't catch this bug earlier): If it's a VE tour it will not show in the wikitext editor.

I will fix this properly, but it looks like it may require some refactoring to do right.
Comment 3 Gerrit Notification Bot 2013-09-18 09:06:05 UTC
Change 84735 had a related patch set uploaded by Mattflaschen:
Declare tour as requiring wikitext, but it doesn't work yet.

https://gerrit.wikimedia.org/r/84735
Comment 4 Rob Moen 2014-05-07 21:01:05 UTC
If you look at firstedit tour definition, you'll see that shouldSkip is set to call isEditing() Calling gt.isEditing() checks to see if you are either editing with wikitext or if the VisualEditor is loaded.  However the tour step loads before ve is actually loaded.

IMO: isEditing needs to return true if VisualEditor is loading or loaded.  
Locally this fixes the bug for me.  I probably will make a patch for this.

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


Navigation
Links