Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588480 - dev-python/libzilla-1.1: Add ability to lookup bugs by alias
Summary: dev-python/libzilla-1.1: Add ability to lookup bugs by alias
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrice Clement
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-09 23:34 UTC by nvinson234
Modified: 2016-07-17 21:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nvinson234 2016-07-09 23:34:29 UTC
This is a feature request.

Currently lzilla bug requires a bug ID.  This is a request to add the ability to search by alias as well.

The end result would be that the output of:
    lzilla bug monsierup
and
    lzilla bug 282567
would show the contents of Gentoo's bug 282567 (assuming Gentoo's bugzilla is queried).
Comment 1 nvinson234 2016-07-09 23:39:15 UTC
Ignore this comment.  It's a libzilla test.
Comment 2 Patrice Clement gentoo-dev 2016-07-14 02:08:52 UTC
Thanks for the bug report. Sounds like a good feature to work on.
Comment 3 Brendan Horan 2016-07-14 02:14:09 UTC
Test from undersys
Comment 4 Patrice Clement gentoo-dev 2016-07-14 02:29:38 UTC
Another test.
Comment 5 Patrice Clement gentoo-dev 2016-07-14 14:45:27 UTC
Please ignore.
Comment 6 Patrice Clement gentoo-dev 2016-07-14 14:53:48 UTC
monsieurp@epsilon ~/git_projects/libzilla/libzilla $ ./__main__.py bug monsieurp
[2016-07-14 14:46:05,541][libzilla.configmanager][INFO]: File "/home/monsieurp/.libzillarc" found!
[2016-07-14 14:46:05,544][libzilla.validator][INFO]: Validated URL: https://bugs.gentoo.org/rest
[2016-07-14 14:46:05,545][libzilla.connection][INFO]: Logging in ...
[2016-07-14 14:46:05,562][requests.packages.urllib3.connectionpool][INFO]: Starting new HTTPS connection (1): bugs.gentoo.org
[2016-07-14 14:46:07,612][libzilla.connection][INFO]: Logged in!
[2016-07-14 14:46:07,613][libzilla.connection][INFO]: Querying Bugzilla for bug #monsieurp ...
[2016-07-14 14:46:07,617][requests.packages.urllib3.connectionpool][INFO]: Starting new HTTPS connection (1): bugs.gentoo.org
[2016-07-14 14:46:09,704][libzilla.connection][INFO]: More info about this bug: https://bugs.gentoo.org/monsieurp.
[2016-07-14 14:46:09,706][libzilla.connection][INFO]: STATUS: RESOLVED
[2016-07-14 14:46:09,707][libzilla.connection][INFO]: Summary: New developer Patrice Clement (monsieurp)
[2016-07-14 14:46:09,708][libzilla.connection][INFO]: RESOLUTION: FIXED
[2016-07-14 14:46:09,709][libzilla.connection][INFO]: Nothing to update for bug #monsieurp.

Looks goods. ;) This change will be part of libzilla v1.3.
Comment 7 Patrice Clement gentoo-dev 2016-07-14 15:28:36 UTC
commit dcd31fe32639d5d625aa106f0c2d57071e420aa6 (HEAD -> master, tag: v1.2, origin/master)
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: Thu Jul 14 17:01:16 2016 +0200
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Thu Jul 14 17:24:02 2016 +0200

Add ability to query a bug by using its alias.

Instead of using a mere number, a bug report can now be queried by using its
alias such as "hello". Beware, not all bug reports have aliases set up, meaning
a look-up may fail and return an error.

Gentoo-Bug: https://bugs.gentoo.org/588480

libzilla/cli/shell.py    |  5 -----
libzilla/connection.py   |  5 +++--
libzilla/resturlmaker.py | 19 +++++--------------
libzilla/session.py      | 19 +------------------
4 files changed, 9 insertions(+), 39 deletions(-)

This feature is now available in v1.2. Thanks!
Comment 8 Patrice Clement gentoo-dev 2016-07-14 15:29:41 UTC
(In reply to Patrice Clement from comment #6)
> Looks goods. ;) This change will be part of libzilla v1.3.

This is a typo. I wrote v1.3 but I meant to write v1.2.
Comment 9 Patrice Clement gentoo-dev 2016-07-17 17:29:46 UTC
FIXED
Comment 10 Patrice Clement gentoo-dev 2016-07-17 17:43:48 UTC
Ignore comment pls.
Comment 11 Patrice Clement gentoo-dev 2016-07-17 21:06:06 UTC
This is a test. Disregard.