Last modified: 2014-09-04 13:36:26 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 T60402, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58402 - Flow: Flow should recognise and follow wpuseeditwarning
Flow: Flow should recognise and follow wpuseeditwarning
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Low minor with 1 vote (vote)
: ---
Assigned To: Tina Johnson ( tinaj1234 )
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-12 17:56 UTC by Oliver Keyes
Modified: 2014-09-04 13:36 UTC (History)
10 users (show)

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


Attachments

Description Oliver Keyes 2013-12-12 17:56:10 UTC
With the rest of MW, attempts to leave, say, the edit window after you've already modified stuff (but not hit save) prompt a warning message that informs people their data won't be saved, etc, etc.

Flow lacks this. It shouldn't ;p.
Comment 1 Bingle 2013-12-12 18:06:28 UTC
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/616, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 Quiddity 2013-12-18 21:08:40 UTC
The warning is preference-based, and comes from:

[[Special:Preferences#mw-prefsection-editing]] "Warn me when I leave an edit page with unsaved changes"

name="wpuseeditwarning" id="mw-input-wpuseeditwarning"
Comment 3 Tina Johnson ( tinaj1234 ) 2013-12-22 06:46:10 UTC
Shouldn't that option be removed from Preferences? Shall I remove it?
Comment 4 Tina Johnson ( tinaj1234 ) 2013-12-22 06:56:50 UTC
I would like to work on this bug.
Comment 5 Oliver Keyes 2013-12-22 19:00:47 UTC
Then you're welcome to; bear in mind that Flow is under active development, so others may be writing/have written patches.
Comment 6 Ryan Schmidt 2013-12-22 19:07:25 UTC
(In reply to comment #3)
> Shouldn't that option be removed from Preferences? Shall I remove it?

Not as part of this bug, no. (and in general, no, but that decision isn't up to me -- open a new bug or search for an existing one if you really think it shouldn't be there to start a discussion on it).

If you fix this bug, it should ideally honor that preference setting, so when that pref is disabled leaving a page with unsaved comments in Flow should not prompt the user, but when it is enabled the prompts happen.
Comment 7 Oliver Keyes 2013-12-22 19:12:27 UTC
Agreed with Ryan. A bugzilla thread is not the place for making those kind of changes; the task should be supporting the pref, not removing it for everyone.
Comment 8 Tina Johnson ( tinaj1234 ) 2013-12-27 14:08:02 UTC
(In reply to comment #7)
> Agreed with Ryan. A bugzilla thread is not the place for making those kind of
> changes; the task should be supporting the pref, not removing it for
> everyone.

Got it.Thanks.
Comment 9 Tina Johnson ( tinaj1234 ) 2013-12-27 14:10:25 UTC
(In reply to comment #5)
> Then you're welcome to; bear in mind that Flow is under active development,
> so
> others may be writing/have written patches.

Oh! How do I get a clue if someone has already written a patch?
Comment 10 Oliver Keyes 2013-12-27 20:23:30 UTC
The bug should have the status PATCH_TO_REVIEW, or be actively assigned to someone.
Comment 11 Quiddity 2014-07-31 22:41:19 UTC
This is partially fixed, via https://gerrit.wikimedia.org/r/#/c/148983/

I tested at mediawiki, and it now warns the user when they try to navigate away, if text has been entered anywhere. (yay!)

However, if I turn off the "useeditwarning" preference, ("Warn me when I leave an edit page with unsaved changes" in [[mw:Special:Preferences#mw-prefsection-editing]]) then it still warns me when trying to navigate away. So, I'll leave the bug open, but reduce the importance.
Comment 12 Jon 2014-09-04 13:36:26 UTC
Original bug about warning is dealt with.
I split the other part of this bug into a new bug report to make it easier to follow to a volunteer: https://bugzilla.wikimedia.org/show_bug.cgi?id=70399

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


Navigation
Links