[Openstack-docs] Log a Bug link

Summer Long slong at redhat.com
Tue Oct 1 00:33:49 UTC 2013


Very cool, David, thanks!

Summer

Summer Long
OpenStack Documentation
Engineering Content Services

Red Hat Asia Pacific
Brisbane, Australia
slong at redhat.com <mailto:slong at redhat.com>

On 09/24/2013 07:13 AM, David Cramer wrote:
> Ok, here's the log a bug link generated from the xslts:
>
> http://162.209.12.245/user-guide/content/index.html
>
> See the link "Log a bug against this page" at the bottom just before the
> Disqus comments.
>
> Regards,
> David
>
> On 09/22/2013 10:22 PM, David Cramer wrote:
>> I figured this out:
>>
>> When you click the "Log a bug" link and end up at the first Launchpad
>> "Report a Bug" page, initially the button says "Continue", but it
>> changes to "Next" once it's completed its search for similar bugs. If
>> you wait long enough to click on "Next", then the prepopulation of the
>> bug body works. If you are too quick and click on the "Continue" button,
>> then the bug description is blank.
>>
>> The intermittentness was driving me nuts :-)
>>
>> David
>>
>> On 09/21/2013 08:40 PM, David Cramer wrote:
>>> Ok, that's exactly what was not working for me in Firefox 23.0 on Linux
>>> on a test webhelp page. However, I see that it does work in Chromium
>>> 28.0 and when I create a simple test page, it works in Chromium and in
>>> Firefox intermittently:
>>>
>>> http://thingbag.net/logabugtest.html
>>>
>>> I'll go ahead and have the xslts inject this and post something for
>>> folks to test.
>>>
>>> Thanks,
>>> David
>>>
>>> On 09/21/2013 08:07 PM, Lorin Hochstein wrote:
>>>> David:
>>>>
>>>> This seems to work just fine for me:
>>>>
>>>> https://gist.github.com/lorin/6655674
>>>>
>>>> When I do this, the bug details contains:
>>>>
>>>> Built 20130918T23 04 24Z05 00
>>>> git SHA a997cbc1
>>>> at url /Users/lorin/6624719/index.html
>>>> git Repo git at github.rackspace.com:IX/cloud-files.git
>>>>
>>>>
>>>>
>>>> Here's all I did:
>>>>
>>>> https://gist.github.com/lorin/6655674/revisions
>>>>
>>>> Note that I don't think <!-- --> actually comments out Javascript, so I
>>>> zapped that line, although it should be harmless even if left in.
>>>>
>>>> Lorin
>>>>
>>>>
>>>>
>>>> On Sat, Sep 21, 2013 at 8:47 PM, David Cramer
>>>> <david.cramer at rackspace.com <mailto:david.cramer at rackspace.com>> wrote:
>>>>
>>>>      Hi there,
>>>>      I've played a bit with the log a bug link stuff. The following mock up
>>>>      works UNLESS I also add in the git url to field.comment:
>>>>
>>>>      https://gist.github.com/dwcramer/6624719
>>>>
>>>>      If you load that gist into a browser and click the link, you are taken:
>>>>      1. to the login page (if necessary), then
>>>>      2. to a page with the title filled in which searches for similar bugs,
>>>>      then when you click next or continue,
>>>>      3. you are taken to a new page that has the title field filled in and
>>>>      the bug description field filled in with the build time, git sha, and
>>>>      doc url.
>>>>
>>>>      When I add the git repo url as well to the description as well, the bug
>>>>      description field ends up empty. I.e. if I append "+ lineFeed +
>>>>      encodeURI(gitRepo)" to fieldComment, the bug description isn't
>>>>      automatically filled in (it's empty).
>>>>
>>>>      I've tried encodeURIComponent and even manually removing some special
>>>>      characters from the git url, but haven't isolated what makes it fail. I
>>>>      can see that colons are a problem, but other thing seem to trip it up as
>>>>      well, I'm just not sure what yet.
>>>>
>>>>      If someone knows what I'm doing wrong, please let me know. Otherwise,
>>>>      I'll mess with it again when I have some time. Once this part is figured
>>>>      out, the rest should be quite easy.
>>>>
>>>>      Regards,
>>>>      David
>>>>
>>>>      _______________________________________________
>>>>      Openstack-docs mailing list
>>>>      Openstack-docs at lists.openstack.org
>>>>      <mailto:Openstack-docs at lists.openstack.org>
>>>>      http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Lorin Hochstein
>>>> Lead Architect - Cloud Services
>>>> Nimbis Services, Inc.
>>>> www.nimbisservices.com <http://www.nimbisservices.com>
>>
>> _______________________________________________
>> Openstack-docs mailing list
>> Openstack-docs at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
>>
>
> _______________________________________________
> Openstack-docs mailing list
> Openstack-docs at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-docs/attachments/20131001/251a4618/attachment.html>


More information about the Openstack-docs mailing list