BMO/ComponentWatch: Difference between revisions

From MozillaWiki
< BMO
Jump to navigation Jump to search
(Created page with "= component watching<br> = a non-generic implementation, as an extension, would invovle:<br> == schema == *table '''watch_specific''' (user_id, product_id, component_id) == p...")
 
No edit summary
Line 1: Line 1:
= component watching<br> =
= component watching<br> =


a non-generic implementation, as an extension, would invovle:<br>
a non-generic implementation, as an extension, would invovle:<br>  


== schema ==
== schema ==


*table '''watch_specific''' (user_id, product_id, component_id)
*table '''watch_specific''' (user_id, product_id, component_id)


== preferences<br> ==
== preferences<br> ==


*add a hook to the end of <span style="font-weight: bold;"></span<br>
*add a hook to the end of <span style="font-weight: bold;">account/prefs/email.html.tmpl
*<span style="font-weight: bold;"</span>add a select for selecting multiple products and/or components<br>
</span>
 
 
 
*add a select for selecting multiple products and/or components<br>  
*either use a real select (as per the search ui), or an iframed list of checkboxes to mimic listbox+checkbox<br>
*either use a real select (as per the search ui), or an iframed list of checkboxes to mimic listbox+checkbox<br>


== code<br> ==
== code<br> ==


*hook '''bugmail_recipients'''<br>
*hook '''bugmail_recipients'''<br>  
*simple join to bring in watchers, update '''recipients''' hash
*simple join to bring in watchers, update '''recipients''' hash

Revision as of 07:55, 9 February 2011

component watching

a non-generic implementation, as an extension, would invovle:

schema

  • table watch_specific (user_id, product_id, component_id)

preferences

  • add a hook to the end of account/prefs/email.html.tmpl


  • add a select for selecting multiple products and/or components
  • either use a real select (as per the search ui), or an iframed list of checkboxes to mimic listbox+checkbox

code

  • hook bugmail_recipients
  • simple join to bring in watchers, update recipients hash