Dashboard links should not contain /#/ - it get's redirected
and filters don't seem to work (unless page is reloaded).
See https://gerrit-review.googlesource.com/c/gerrit/+/321535
Change-Id: I27796395917a091ad3bd077e8e3e494f23373eee
The newer version of gerrit has a few changes in how queries work. There
is now a limit of 10 queries, and topic regex needs to use intopic
instead of topic for filtering.
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Change-Id: I653f56db979ffba83ef5f9d573189cb2f288d71b
This uses the python package webbrowser[1] to open the generated
link, saving crucial seconds.
[1] https://docs.python.org/3/library/webbrowser.html
Change-Id: I2e8e43df297b3d609af365917fdca620a5cd6c2a
As recommended by the current warning ``DeprecationWarning: This method
will be removed in future versions. Use 'parser.read_file()' instead.``
Change-Id: Ic4cbc4577519a60ba7fd60df05ff50bd8fccb149
We were double escaping commas and dashes because we escaped them
first, then escaped the % with urlencode. If we do this in the other
order we get shorter and less fragile urls.
Change-Id: I0f5f2d486c66a62469eae02d884fb31de78df803
Using pkg_resources assumes that the template files will be installed
inside the python package, which they aren't. Update the default to be
simply "templates", which allows someone to use the dashboard creator
with: tox -e venv -- gerrit-dash-creator dashboards/cross-project.dash
Change-Id: I95adbbfcc4477eac1be07f4a5beec6a8e3ae093a
This adds a script to get the "In Progress" bugs for a
particular project and builds prints a URL for the user.
$ ./gerrit-bug-dash --milestone kilo-rc1 --tag kilo-rc-potential heat
Some notes:
- it uses launchpadlib to talk to launchpad
- The presentation of the dashboard could be improved but
this is just a starting point.
- The caching could be better.
What I wanted was to know was "what do I need to review for rc1"
(i.e. what are the bugs that are targeted for kilo-rc1 that are in
progress and have reviews up).
This scratches my itch, but will happily do some work on it if others
want it.
Change-Id: I4a97d59631ac9cd344206c6cc48164d6a0d7e57c
It turns out that unescaped '-' ends up making firefox sad. This fixes
it so the dashboards work again correctly in firefox.
This... also... was apparently what was killing Chrome. zomg.
Change-Id: I42dbc9354f2978f18fd8fa8ff4cc07f52f6557e1
To create the URLs for all dashboard files inside dashboards use:
python gerrit_dash_creator/cmd/creator.py dashboards/*
Change-Id: I922c4e0606ae168c5c9b353d550629b4f52a8aff
* use configparser instead of self written parsing
(add new method read_dashboard_file)
* remove methods get_title and get_sections
* add requirement six (ConfigParser in Python2,
configparser in Python3)
* remove import re and fileinput
* check if dashboard file exist and is readable before
trying to parse it (new imports os and os.path)
* slighly change the output to be more informative
* add new parameter in section dashboard to make the
base URL configurable
* check if necessary options in the used dashboard
file are available
* improve exception handling and error output
* rename generate_url to generate_dashboard_url
* use correct exit codes (correct return values in the
main method)
* rename internal argument name dash to dashboard_file
* add missing doc strings
Change-Id: Ifcaf20f7495b5619db30ac0046909b334672f756