Async subscriber portlet means more API calls from subscriber.js
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
The subscriber portlet on a bug page is now loaded asynchronously. This now means that certain DOM nodes that Subscriber.
The Subscriber class does not give up though, and instead falls back to doing an API call to obtain the user's display name. This means there's no visible error. However, by instrumenting get_display_
The following diff reduces this to 0, but may have other repercussions that I'm not aware of yet:
--- lib/lp/
+++ lib/lp/
@@ -24,6 +24,10 @@
<img src="/@@/spinner" />
</div>
+ <div tal:attributes=
+ tal:condition=
+ <a tal:attributes=
+ </div>
<script type="text/
YUI(
// Must be done inline here to ensure the load event fires.
Changed in launchpad: | |
importance: | Medium → Low |
tags: | added: bugs javascript subscribers |