JavaScript for subscribing should be refactored for reuse

Bug #386757 reported by Deryck Hodge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

The JavaScript for handling inline subscribing on bug pages should be made more generic for reuse by lp-code (and others) so all the work doesn't have to be repeated. The code could also benefit from abstracting away some of the details and refactoring into a proper js object for general subscription handling.

Deryck Hodge (deryck)
Changed in malone:
assignee: nobody → Deryck Hodge (deryck)
importance: Undecided → High
milestone: none → 2.2.6
status: New → Triaged
Deryck Hodge (deryck)
summary: - JavaScript for bug subscriping should be refactored for reuse
+ JavaScript for bug subscribing should be refactored for reuse
Revision history for this message
Deryck Hodge (deryck) wrote : Re: JavaScript for bug subscribing should be refactored for reuse

I won't make this one for this cycle, but will catch it first of next cycle.

Changed in malone:
milestone: 2.2.6 → 2.2.7
Revision history for this message
Jonathan Lange (jml) wrote :

Why is this bug marked as affecting launchpad-code?

Jonathan Lange (jml)
Changed in launchpad-code:
status: New → Incomplete
Revision history for this message
Deryck Hodge (deryck) wrote :

rockstar is wanting to use this JavaScript when it's refactored for branch subscriptions and asked me to file this bug against launchpad-code, too.

Revision history for this message
Jonathan Lange (jml) wrote :

Thanks! Triaging appropriately (I hope).

Changed in launchpad-code:
assignee: nobody → Paul Hummer (rockstar)
importance: Undecided → High
status: Incomplete → Triaged
Revision history for this message
Deryck Hodge (deryck) wrote :

I've started work on this, see the linked branch, which was committed in devel in r8791. There are now Subscriber and Subscription JavaScript objects for abstracting out those two concepts. There is more work to be done before this bug is finished, but the work is underway at least.

Changed in malone:
status: Triaged → In Progress
Revision history for this message
Deryck Hodge (deryck) wrote :

Given all that we have to do for the 3.0 UI push, I'm marking this low priority and considering my inline subscribing work done. There is enough there in the code that exists now and with the recent addition of Subscriber and Subscription objects in lib/canonical/launchpad/javascript/bugs/subscriber.js that I hope Paul (and others) can find the work useful in building similar inline subscribing tools.

Changed in malone:
importance: High → Low
status: In Progress → Triaged
milestone: 2.2.7 → none
Revision history for this message
Paul Hummer (rockstar) wrote :

I've landed a branch that starts this cleanup. However, I think the lazr-js sprint will be the best time to really evaluate how we're going to go about cleaning this up entirely, since there are differences in branch and bug subscriptions -- Nothing huge, but enough to be annoying.

Paul Hummer (rockstar)
summary: - JavaScript for bug subscribing should be refactored for reuse
+ JavaScript for subscribing should be refactored for reuse
Revision history for this message
Paul Hummer (rockstar) wrote :

The subscription stuff has been widgetified for branches, and after talking with Deryck at UDS, it sounds like this will be able to be re-used once bug subscriptions gain state. It's pluggable enough that one could hook in a custom flow (which is what branch subscriptions do). I think that means it's fixed for code at least.

Changed in launchpad-code:
status: Triaged → Fix Committed
milestone: none → 10.01
Curtis Hovey (sinzui)
Changed in launchpad-code:
status: Fix Committed → Fix Released
Deryck Hodge (deryck)
Changed in malone:
assignee: Deryck Hodge (deryck) → nobody
Graham Binns (gmb)
tags: added: story-better-bug-notification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.