Closed Bug 339007 Opened 18 years ago Closed 12 years ago

Support Microsummaries & advanced bookmark urls

Categories

(Bugzilla :: Bugzilla-General, enhancement, P3)

enhancement

Tracking

()

VERIFIED WONTFIX

People

(Reporter: after.fallout, Assigned: reed)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

Since Firefox will have the capability to have microsummary links, bugzilla should start looking into what can be done with them. I am thinking things like:
links to saved searches (titled with the number of results)
link to first result for some saved search (title could be the summary)
link to some bug (title: STATUS - bugid)

I am certain I am just scratching the surface of what could be done.

Reproducible: Always
Do we really want Firefox specific features? Why not an ActiveX too?
In other words, do you mean adding <link> tags? I'm fairly sure we already have them. Lynx has been doing useful things with <link> tags for a long time.

We won't be adding anything that's not in an HTML standard, of course.
Priority: -- → P5
We already have firefox specific features (the sidebar).

And yeah, it appears that all that would be needed are some link tags, some static xml documents, and possibly a hidden label (span style="display:none") or two with the microsummary text if it is not already available.
Well, okay. I'll confirm because it's not a duplicate, and that's our policy with enhancements.

If somebody submits a patch, somebody will probably review it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
In case someone searches bugzilla for this, Mike Connor has a blog entry:
http://steelgryphon.com/blog/?p=86

in which he points to a microsummary written by Dietrich:
http://dietrich.ganx4.com/mozilla/bugzilla-search-microsummary.xml

full code (copied directly from source of the above link) in case link goes away sometime:
<?xml-stylesheet href="microsummary.xsl" type="text/xsl"?>
<generator xmlns="http://www.mozilla.org/microsummaries/0.1" name="Bugzilla Search Microsummary" sourceURI="http://dietrich.ganx4.com/mozilla/bugzilla-search-microsummary.xml">
   <pages>
     <include>https://bugzilla.mozilla.org/.*</include>
   </pages>
   <template>
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="text"/>
    <xsl:template match="/">

      <xsl:value-of select="substring-after(id('header')/h1, ': ')"/><xsl:text>: </xsl:text>
      <xsl:variable name="set" select="id('container')/child::text()[contains(.,'bugs')]"/>
      <xsl:for-each select="$set">
        <xsl:if test="position() = last()">
          <xsl:value-of select="substring-before(normalize-space(.),' bugs found.')"/>
        </xsl:if>
      </xsl:for-each>
    </xsl:template>

    </xsl:transform>
   </template>
 </generator>


--
This is an example that works on the current bugzilla here at bmo (2.20); I am not certain it will work on other versions.
Priority: P5 → P3
It would be nice to get this or a smaller chunk of bug data for the Bugmail extension ( https://addons.mozilla.org/en-US/thunderbird/addon/9584 ) to reduce load.
Attached patch patch - v1Splinter Review
Direct port of the patch bmo currently uses for microsummaries with some added clean-up and a bug fix.
Assignee: general → reed
Status: NEW → ASSIGNED
Attachment #416359 - Flags: review?(mkanat)
Comment on attachment 416359 [details] [diff] [review]
patch - v1

You're double-quoting searchname--once using url_quote, and once using the html filter in header.html.tmpl.
Attachment #416359 - Flags: review?(mkanat) → review-
(In reply to comment #8)
> (From update of attachment 416359 [details] [diff] [review])
> You're double-quoting searchname--once using url_quote, and once using the html
> filter in header.html.tmpl.

That's correct. It sounds weird, but from my research over the last several days, it actually makes sense once you think about it.

However, philor found a bug in bmo's implementation, which also affects this patch, so I'll attach a new patch soon and request review on it.
(In reply to comment #9)
> That's correct. It sounds weird, but from my research over the last several
> days, it actually makes sense once you think about it.

  So um, hmm, are you telling me that microsummaries have the same "maybe you maybe need to double-quote" problem that RSS has?
Microsummaries support was removed from Firefox.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: