78 Commits

Author SHA1 Message Date
Zuul
7b6df7b5a6 Merge "Don't indent TC candidate lists" 2018-04-10 14:55:56 +00:00
Zuul
861f347274 Merge "Include the Rocky TC candidates on the election page" 2018-04-10 14:55:55 +00:00
Tony Breeds
1c5f757060 Add Tony Breeds as Election official for the Rocky/TC election
Change-Id: Ica0e03192806f5d380b53e39629409d9f6b5b63c
2018-04-09 17:18:28 +10:00
Tony Breeds
65dd336927 Don't indent TC candidate lists
The Sphinx directive '   *' generates a blockquote'd list which isn't
needed for TC elections as we don't need nested lists like we do for PTL
elections.

Switch to a std. ul

Change-Id: I999a2823d421b24e80aacf71af41475a26c9888d
2018-04-09 17:02:08 +10:00
Tony Breeds
0975ae9435 Include the Rocky TC candidates on the election page
Change-Id: Icfe1262846a72735907491b16bb145662297be72
2018-04-09 17:01:29 +10:00
Paul Belanger
90635dd2c1
Reverse sort previous elections output
Our current list appears to be unsorted at best, leading to an out of
order history of the previous elections.  Reverse the list displaying
recent (first) to latest (last) results.

Change-Id: I8228aeaac205c35633f3c6e5279497c6b7177125
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 18:23:10 -04:00
Kendall Nelson
8b2c8226a8 Prepare Rocky TC Election
Story: 2001611
Task: 6582

Change-Id: Ia81ec4abc1e601c23234ebf1fd54766035d71e24
2018-03-21 21:53:09 +00:00
Zuul
bfbf009ce1 Merge "Fix non-pluralization of reference to official project teams" 2018-03-09 20:12:21 +00:00
Emmet Hikory
c4bc4a017b Modifications to candidacy submission rules
* Change candidacy filenames from IRC nick to email address
* Assert that candidates must self-nominate, but others may commit to gerrit
* Indcate that IRC nick will be collected from the Foundation Member profile

Change-Id: I4393c30265cd5b6cb7667b14ef2ef4b15b774533
2018-03-09 02:28:33 +00:00
Adam Spiers
0395a104f9 Fix non-pluralization of reference to official project teams
Make the link text singular without affecting the URL.

Change-Id: I0c818856d6e04629db33b4ab542935b87441694a
2018-03-06 22:49:37 +00:00
Zuul
4b0d792193 Merge "Publish past election results." 2018-03-01 07:48:32 +00:00
Tony Breeds
f7f58301bf Publish past election results.
Change-Id: I0ed87c7ec9e9eb49ffcce85b1dfe0e088c7be310
2018-02-27 12:16:52 +00:00
Zuul
4158830eaf Merge "Trivial: clean-up doc/source/conf.py" 2018-02-27 11:09:17 +00:00
Nguyen Hung Phuong
16a00f5e30 Trivial: clean-up doc/source/conf.py
This patch make more concise python construct
in conf.py.

Change-Id: I54b90c1dee42a566447b2a95034f154072ef698d
2018-02-21 08:06:25 +00:00
Jeremy Stanley
6ef6765a82 Add Rocky PTL Election Results
Change-Id: I806fdbc85e0b056a20202b0b7005354eaf97b122
2018-02-15 00:15:23 +00:00
Ivan Kolodyazhny
04500ac003 Make nominations timer value more readable
Change-Id: I6d789d1717f510be11f104fcb3460c983c926223
2018-02-06 15:53:14 +02:00
Kendall Nelson
adbce88eb3 Update Election Officials
Change-Id: I33886928175bb16044c93d67c7a46160533103a2
2018-01-16 18:43:12 +00:00
Zuul
4d4589455b Merge "Close Oct 2017 election and publish results" 2017-10-23 17:57:08 +00:00
Tony Breeds
9ff0066829 Close Oct 2017 election and publish results
Change-Id: Icd2e865a370db0a4a40efde68c422a869ea80b19
2017-10-21 10:54:04 +11:00
Paul Belanger
4b75746391
Display event_timer in UTC format
By default date.parse() will use the local timezone from the browers.
But, we want to force UTC, since users are from around the world.

Change-Id: I6430704f46c293e31804e6890eac1abcb955ad8a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-10-14 20:06:52 -04:00
Tony Breeds
a1411cd50c Set configuration parameters for the TC election
Please note:

 1. We can't use the aug-2017-elections tag as governed projects may have
    changed.  The new tag will need to be applied before 2017-10-09T23:59
 2. The dates for valid APC's is extended from the PTL election to
    include the final days of the Pike release   This matches my reading
    of the bylaws Appendix 4, Section 3.b.ii [1]
       """
        An Individual Member is an ATC who has had a contribution
        approved for inclusion in any of the official OpenStack projects
        during one of the two prior release cycles of the Core OpenStack
        Project.
       """
 3. The election period is 5 business days which exceeds the
    requirement of 4 business days [2]

[1] https://www.openstack.org/legal/technical-committee-member-policy/
[2] https://governance.openstack.org/tc/reference/charter.html#election-for-tc-seats

Change-Id: Id8df8d4f7062316347fc5cfb3ec8323c8ec2df9c
2017-10-02 09:07:47 +11:00
Zuul
a791ea9624 Merge "Fix Renat Akhmerov's last name in the election results" 2017-09-29 20:22:50 +00:00
Tristan Cacqueray
663374c0e2 Remove candidate list and add governance-update instructions
Change-Id: I19314ede4d461dc39892f2b3a9358c921fb24138
2017-08-28 13:55:46 +00:00
Renat Akhmerov
0bd01087bb Fix Renat Akhmerov's last name in the election results
* It was "Renat Renat".

Change-Id: I3ff4c4a07be248710c5df833d34b27789dbd43cd
2017-08-28 19:15:26 +07:00
Kendall Nelson
d080390617 Add Queens PTL Election Results
Change-Id: I491b27550819a44b66cb1497e34482aae2ee7fe6
2017-08-22 15:01:47 -07:00
Kendall Nelson
09e241adb2 Show Queens PTL Candidate List
This patch updates the election page to show the
ptl candidates as they are approved.

Change-Id: Ice476da292b8dd4e359ec985d9df1e636c3403de
2017-07-31 15:20:54 -07:00
Emmet Hikory
dfe8c48942 Correct email address
Change-Id: I37169c41846c68d25099b8a765fe8351dc7063ce
2017-07-22 03:13:18 +09:00
Jenkins
cc618a4fa0 Merge "Update email address for Vladimir Kuklin" 2017-07-18 00:50:16 +00:00
Tony Breeds
71437b724f Update email address for Vladimir Kuklin
At the time od election Vladimir used the @mirantis address.  Since
then that email address has been removed from gerrit.  Using the REST
api we can confirm that the account that uploaded that review matches
the new email address.
 ---
 [tony@thor ~]$ curl https://review.openstack.org/changes/?q=I8d4fba4f2c39bf0542c79e9999a3face2261f2ce
 )]}'
 [
   {
     "id": "openstack%2Felection~master~I8d4fba4f2c39bf0542c79e9999a3face2261f2ce",
     "project": "openstack/election",
     "branch": "master",
     "hashtags": [],
     "change_id": "I8d4fba4f2c39bf0542c79e9999a3face2261f2ce",
     "subject": "Nominate Vladimir Kuklin for Fuel PTL for Pike",
     "status": "MERGED",
     "created": "2017-01-27 13:26:56.000000000",
     "updated": "2017-01-30 09:28:04.000000000",
     "submitted": "2017-01-28 01:29:56.000000000",
     "insertions": 126,
     "deletions": 0,
     "_number": 426230,
     "owner": {
       "_account_id": 8786
     }
   }
 ]
 [tony@thor ~]$ curl https://review.openstack.org/accounts/8786
 )]}'
 {
   "_account_id": 8786,
   "name": "Vladimir Kuklin",
   "email": "aglarendil@gmail.com",
   "username": "aglarendil"
 }
 ---

Change-Id: Idedb61072b9996976c372c5e57d0cc356a2b9308
2017-07-14 11:43:43 +10:00
Kendall Nelson
6da152439e Prepare Queens PTL Election
This patch sets the dates for the election timeline.

Change-Id: I1040c022fc647a4aa36a83137708e912e99dd879
2017-07-12 15:43:12 -07:00
Tristan Cacqueray
cf7d49b15a Slight improvement to the TC mail announce
Change-Id: Ib151d8c2331c151517139021f32cdc1557e9062d
2017-04-21 00:36:31 +00:00
Tristan Cacqueray
93538e52fd Add Pike TC results
Change-Id: I311e3718d77b495789e8aacde8e00bb26d93147d
2017-04-21 00:16:20 +00:00
Tristan Cacqueray
fa7a75e386 Prepare Pike TC election
Change-Id: I1946eb4cb16a8bbdb18d542bf94dc3889678bdad
2017-03-29 12:23:30 +00:00
Tristan Cacqueray
6a56d4dd33 Add Pike PTL results
Change-Id: I80cc4d8a092f67adcebc4165fd74f5fe2de25ce3
2017-02-07 23:47:19 +00:00
Tristan Cacqueray
abaa751c2a Render result mail announcement
This change adds final result mail announcement so that officials can
cross check the result before sending the announcement.

The document will be available at:
https://governance.openstack.org/election/_sources/results/

Change-Id: Ie3181d98b55ebf032f9c12603c8a98d37bfb9881
2017-02-03 01:19:21 +00:00
Tristan Cacqueray
d45c1f340b Remove the past_elections configuration
The original implementation of archived election results doesn't
work well for publishing the result of the PTL round of the current
election. Instead of relying on an (explicit) list of past elections,
this change moves the archive to a results directory and render
all the results present (implicit).

Change-Id: Ia78988bced1cc07e2a44dde46b793f106857af94
2017-02-02 01:55:53 +00:00
Tristan Cacqueray
8791d36b37 Rewrite the event logic in javascript
The current events extension is computing the statuses at build time,
which is getting incorrect when an event is outdated until there is
a rebuild. This change fix that by doing the event status computation
at load time in javascript.

Moreover this change removes an unused import in utils.

Change-Id: Ifd1b84ff0182cf9bb7950da3d59f36c83019ac30
2017-01-30 01:48:11 +00:00
Tristan Cacqueray
e6d699de43 Show Pike PTL candidate list
Change-Id: I1279ad2f67a9f50a9485f79c1f75477ac0b2025c
2017-01-17 09:01:58 +00:00
Tony Breeds
faca18b891 Use anonymous links for candidates
When building docs if a single candidate runs for PTL of multiple projects
sphinx will generate warnings like:

 .../openstack/election/doc/source/ocata/ptl.rst:3: WARNING: Duplicate explicit target name: "tony breeds (tonyb)".
 .../openstack/election/doc/source/ocata/ptl.rst:3: WARNING: Duplicate explicit target name: "tony breeds (tonyb)".
 .../openstack/election/doc/source/ocata/ptl.rst:3: WARNING: Duplicate explicit target name: "tony breeds (tonyb)".

Make the candidate links anonymous to avoid those warnings.

Even though it can't be a problem for the TC make those links anonymous for
consistency

Change-Id: I5a812db7f9ac1438b79db0cd8c77f8850c1922bf
2017-01-05 12:57:03 +11:00
Tony Breeds
a3ac4a90f8 Support for running tools under python3
If we run the tools (create-directories or check-all-candidacies) under
python3 they'll fail with silly errors (like[1]).  This is because we
have a number of assumptions they we'll be running under python2 like:

 - pickle.protocol: we done specify one so if we write a pickle file
   from python3 we can't read it in python2.
 - urllib and urlparse: those modules change paths in python 2 or 3 so
   use the six helpers to get the bits we want.
 - Explicitly write files in binary format
 - Various str vs bytes issues
 - dict().keys() returns dict_keys under python3 explictly cast that to
   list()

After addressing these issues we can run the tools under either python2
or python3.  To make this easy to check create explicit ven2 and venv3
test environments, leaving all other testenvs to use the system default.

[1] http://paste.openstack.org/show/593823/
Change-Id: I20334a52500847c810b486c9c8b108e75a5d6303
2017-01-05 12:57:03 +11:00
Tristan Cacqueray
5ddf83e255 Prepare Pike PTL election
Change-Id: I8cfecd165bf7e3741d08e53e30f3637d2914a458
2016-12-21 08:53:23 +00:00
Tristan Cacqueray
df232c3074 Refactor all parameters to configuration.yaml
This change moves parameter from utils.py and index.rst to the
configuration.yaml. Moreover this change does:

* Use ISO 8601 dateformat in configuration
* Change events extension to use datetime instead of calendar
* Add a configuration extension to render doc substitutions

Change-Id: Ie35cb9ae2c334814afaa36b3afd606c8bcf62616
2016-11-09 03:24:26 +00:00
Tristan Cacqueray
4d473dc0bd Refactor timeline structure
This change modifies the timeline structure to describe a
start and end date instead of two different events.

Moreover this change adds:
* the number of days remaining until the next event.
* a 'next' status when current event haven't started yet

Change-Id: Ib76b0315a7409a8442c1be6f8341b0596c1d56ae
2016-11-09 03:18:01 +00:00
Tristan Cacqueray
c97fdd8b65 Render rst file to doc/source
This change renders dynamic rst file to doc/source instead of candidate directory
so that they gets published by infra docs jobs. This is just to be able to access
the source rst file on docs-draft.openstack.org host.

Change-Id: I2435531d091ff051338c4ba9a495834d6653ab68
2016-11-09 03:12:51 +00:00
Jenkins
bd45d98c79 Merge "Switch to hacking and fix errors" 2016-10-17 22:02:23 +00:00
Jenkins
9e372524a0 Merge "Fix flake8 issues" 2016-10-17 22:01:12 +00:00
Jenkins
7c9e2987c4 Merge "Change openstack election contact channel" 2016-10-17 21:57:20 +00:00
Tristan Cacqueray
09b47fea08 Add TC results
Change-Id: I5df7d84d6075074dd40fe2408bd2930ffd89d54b
2016-10-09 23:46:19 +00:00
Tony Breeds
7da752110a Switch to hacking and fix errors
./doc/source/_exts/candidates.py:20:1: H306  imports not in alphabetical order (jinja2.filesystemloader, jinja2.environment.environment)
./doc/source/_exts/events.py:17:1: H306  imports not in alphabetical order (os, calendar)
./doc/source/_exts/events.py:21:1: H306  imports not in alphabetical order (jinja2.filesystemloader, jinja2.environment.environment)
./openstack_election/check_candidacy.py:62:29: E126 continuation line over-indented for hanging indent
./openstack_election/utils.py:27:1: H306  imports not in alphabetical order (yaml, re)
./openstack_election/cmds/close_election.py:90:9: H232  Python 3.x incompatible octal 755 should be written as 0o755
./openstack_election/tests/test_utils.py:25:21: E126 continuation line over-indented for hanging indent
./tools/new-election.py:18:31: H301  one import per line
./tools/new-election.py:27:5: H233  Python 3.x incompatible use of print operator
./tools/new-election.py:31:5: H233  Python 3.x incompatible use of print operator
./tools/new-election.py:41:5: H233  Python 3.x incompatible use of print operator

Co-Authored-By: Nguyen Hung Phuong <phuongnh@vn.fujitsu.com>
Change-Id: Idd9bc1f1f92da1658e6da2af588c575ee0ba2cb0
2016-10-07 13:35:46 +11:00
Tony Breeds
8f8df0c950 Fix flake8 issues
linters runtests: commands[0] | yamllint configuration.yaml
 configuration.yaml
   1:1       warning  missing document start "---"  (document-start)

 linters runtests: commands[1] | flake8
 ./doc/source/_exts/candidates.py:17:1: F401 'urllib' imported but unused

Change-Id: I3cd150940f8dbf6d8f828f69361689cbf417fd98
2016-10-06 11:21:04 +11:00