Page MenuHomePhabricator

Use Deferred/Promise and generally async-friendly code paths instead of jquery.pubsub
Closed, ResolvedPublic

Description

Right now we do a lot of homebrew asynchronous programming, which might have been fine before, but we have jQuery.Deferred and jQuery.Promise now! Let's clean this up and be uniform about it.


Version: master
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=54724

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:50 AM
bzimport set Reference to bz49988.
bzimport added a subscriber: Unknown Object (MLST).
Gilles subscribed.

Make the changesets reference the bug so that they appear here?

gerritbot subscribed.

Change 146604 had a related patch set uploaded (by Gergő Tisza):
Use promises for getting image info

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

Patch-For-Review

Blocked for now in favor of better browser test coverage

Change 146604 abandoned by Bartosz Dziewoński:
Use promises for getting image info

Reason:
No longer merges, and we did some work in this area in other patches. Probably better to start from scratch.

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

matmarex renamed this task from Use Deferred/Promise and generally async-friendly code paths where possible to Use Deferred/Promise and generally async-friendly code paths instead of jquery.pubsub.Sep 23 2015, 2:28 PM
matmarex removed MarkTraceur as the assignee of this task.
matmarex removed a project: Patch-For-Review.
matmarex set Security to None.
matmarex removed subscribers: gerritbot, wikibugs-l-list.

The work done so far:

  • {3590770bf9754ba8eba021a88c33a0bc36395ebc} (which got rid of the simpler half of pubsub usage)
  • {4fcb727d4a3f8cc5cf57fdff1b564aa038883491} (which got rid of the gnarliest weirdness of the harder half of pubsub usage, that we really couldn't figure out why it worked at all)

Change 248908 had a related patch set uploaded (by Bartosz Dziewoński):
Get rid of pubsub once and for all

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

Change 248908 merged by jenkins-bot:
Get rid of pubsub once and for all

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

And {1107ab8100e61835739a52bfb27c6b8f3d0995ae} finished the job. Look ma, no pubsub!