Last modified: 2014-09-01 12:58:46 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 T70021, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68021 - JS cleanup: use data-api-target (in template) instead of seeking out specific nodes in JS
JS cleanup: use data-api-target (in template) instead of seeking out specific...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-15 10:42 UTC by Matthias Mullie
Modified: 2014-09-01 12:58 UTC (History)
6 users (show)

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


Attachments

Description Matthias Mullie 2014-07-15 10:42:50 UTC
In order to wrap up frontend changes sonner rather than later, some corners were cut. The plan was to avoid finding specific nodes in JS code, but rather have selectors etc in the templates.

Try searching for .closest( 'form' ) in flow-board.js, for example ;)

Here's an incomplete list of stuff that definitely needs fixing. Please help complete this list & fix the code ;)

* Error handling: FlowBoardComponent.UI.events.interactiveHandlers.apiRequest has generic error handling, but always attached the error message to $this.closest( 'form' ) - even though errors can occur without relevant forms (e.g. FlowBoardComponent.UI.events.apiHandlers.board, which has to manually attach the errors because the generic error handling assumes form...)
Comment 1 Danny Horn 2014-07-15 17:02:35 UTC
In backlog: https://trello.com/c/vsKwxixR
Comment 2 Gerrit Notification Bot 2014-07-16 15:11:44 UTC
Change 146785 had a related patch set uploaded by Matthias Mullie:
Fix error handling

https://gerrit.wikimedia.org/r/146785
Comment 3 Gerrit Notification Bot 2014-07-22 21:13:04 UTC
Change 146785 merged by jenkins-bot:
Fix error handling

https://gerrit.wikimedia.org/r/146785
Comment 4 Andre Klapper 2014-09-01 12:45:42 UTC
All patches mentioned in this report were merged or abandoned - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?

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


Navigation
Links