Merge lp:~deryck/launchpad/fix-heat-help-link into lp:launchpad

Proposed by Deryck Hodge
Status: Merged
Approved by: Curtis Hovey
Approved revision: no longer in the source branch.
Merged at revision: 11146
Proposed branch: lp:~deryck/launchpad/fix-heat-help-link
Merge into: lp:launchpad
Diff against target: 17 lines (+3/-3)
1 file modified
lib/lp/bugs/help/bug-heat.html (+3/-3)
To merge this branch: bzr merge lp:~deryck/launchpad/fix-heat-help-link
Reviewer Review Type Date Requested Status
Curtis Hovey (community) Approve
Matthew Revell (community) text Approve
Review via email: mp+29856@code.launchpad.net

Commit message

The help pop-up for bug heat will now link to the stored procedure in code browse.

Description of the change

Once we moved the code to calculate bug heat from pure Python to plpython,
the link to the file in the bug heat help pop-up was broken. This small
branch fixes that link.

Since the method is buried in the large file trusted.sql and the line
numbers can change with additions to the file, I decided to change the
langauge around the link to make the link hardened against these kinds of
future changes. This does make it harder to directly link to the function,
which makes it harder for the user to find. But there's the trade off
between constantly updating this link and discoverability. I'm completely
open to other linking or language suggestions.

Current link now reads:

To view the code that calculates bug heat, look for
calculate_bug_heat in the file trusted.sql

Where trusted.sql links to:
http://bazaar.launchpad.net/~launchpad-pqm/launchpad/db-devel/annotate/head:/database/schema/trusted.sql

Cheers,
deryck

To post a comment you must log in.
Revision history for this message
Matthew Revell (matthew.revell) wrote :

The text reads well to me.

review: Approve (text)
Revision history for this message
Curtis Hovey (sinzui) wrote :

This looks good to land.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/bugs/help/bug-heat.html'
2--- lib/lp/bugs/help/bug-heat.html 2010-04-22 09:23:00 +0000
3+++ lib/lp/bugs/help/bug-heat.html 2010-07-14 11:01:43 +0000
4@@ -181,10 +181,10 @@
5 </tr>
6 </table>
7
8- <p>
9+ <p>To view the code that calculates bug heat, look for
10+ calculate_bug_heat in the file
11 <a target="_blank"
12- href="http://bazaar.launchpad.net/~launchpad-pqm/launchpad/db-devel/annotate/head:/lib/lp/bugs/scripts/bugheat.py">
13- View the Launchpad code that calculates bug heat &gt;</a>.
14+ href="http://bazaar.launchpad.net/~launchpad-pqm/launchpad/db-devel/annotate/head:/database/schema/trusted.sql">trusted.sql</a>
15 </p>
16
17 </body>