Commit Graph

47 Commits

Author SHA1 Message Date
Doug Hellmann ac65c2bf07 use six to make iteritems python 2/3 compatible
Change-Id: I97daf416f829078d17d12139f509f9dbed8977cf
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-24 17:20:36 -05:00
Doug Hellmann b9bdddde51 remove or adopt incubated oslo code
Switch to oslo.i18n fully.

Move the old incubated apiclient package to storyboardclient._apiclient
to make it clear it is no longer maintained by the Oslo team.

Remove the configuration file for syncing from the Oslo incubator.

Update the flake8 and coverage settings to ignore the apiclient in its
new home until it is cleaned up and passes completely.

Story: 2000776
Change-Id: I017e965353a20e0af151f0db9dc0ea8da9ff4b2f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-11-08 13:44:49 -05:00
Michael Still b41d60e0c4 Remove incubated uuidutils.
Removing openstack/common from all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release.

Change-Id: I7346af36724892b6595708cf51cc4fbad01649d1
2016-10-28 23:30:06 +11:00
Michael Still 318aa151f5 Remove o/c/local.py and o/c/log.py
Move over to the new fangled oslo logging library.

Removing openstack/common from all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release.

Change-Id: Ib091ac61bda0ef4084cfd3f32eda083898ed02fc
2016-10-28 19:03:57 +11:00
Jenkins cfdfaf866c Merge "Make dev the default StoryBoard instance" 2016-09-12 10:42:17 +00:00
Zara 307926fe7b Make dev the default StoryBoard instance
This makes the default instance https://storyboard-dev.openstack.org.
Previously, the default was https://storyboard.openstack.org.

It's probably not a good idea to have everyone pointing their test
python scripts at a production instance of StoryBoard by default.
This should be safer.

Change-Id: I937b3ea584893eeff51db10fb7b958a566f871be
2016-09-06 16:31:27 +00:00
Zara 9a21d1fa0e Give user option to bypass verification
This allows a user to use the python client with a storyboard
instance that has a self-signed certificate, such as
https://storyboard-dev.openstack.org

Change-Id: Id1b1fb7b1b3921b70b2fa6946f13d188dd88f64e
2016-09-06 16:02:54 +00:00
Zara d15d2e1b41 Add due_dates
This makes it possible for the python client to get a list of
due_dates (for boards).

Change-Id: Ic66c53680c51cd0e56c03328ddfb799b5743ddfa
2016-09-01 17:37:25 +00:00
Jenkins 58d9f14af5 Merge "Add support for private stories" 2016-08-10 10:29:59 +00:00
Zara f42ccafced Add system info
Lets the client get info about the storyboard version. At present, this
is not interesting info, like the sha1, but the version value (currently
0.0.1). Maybe that suggests the API needs updating.

Change-Id: Ia3861aa70abf5cd75e9fb5bce8b0ab9410c49460
2016-07-27 13:01:12 +00:00
Zara 4b922b52a6 Add support for private stories
This lets the python client return a story's 'private' setting,
which will be True or False.

Change-Id: I9625064a111d8fa0e53cd5b9ea5ed30ba37b3eec
2016-07-26 15:19:16 +00:00
Jenkins 4f8e6d0fa0 Merge "Add boards" 2016-07-04 16:08:56 +00:00
Bilal Tariq 40c220c0f9 Updated Worklist API
-Added WorklistFilters
-Added WorklistFilterCriteria
-Added NestedManagers for both

Refactored v1/worklists.py

Renamed get_all_filter to get_all_from_filter

Removed whitespace in worklists.py for PEP8 test

Removed erroneous change in base.py

Removed verify=False in HTTPClient creation.

Change-Id: I37d20066492f3414061a8aaa26f800cc3c858091
Signed-off-by: Bilal Tariq <bilal.tariq@codethink.co.uk>
2016-06-24 11:05:34 +00:00
Zara 80309976e2 Add boards
Now you can request a board. Absolute basics; not yet possible to
see the board's worklists or their items, which is the interesting
bits.

Change-Id: Ic142e46751c920bc150dd7f63992710711887e78
2016-06-21 10:32:11 +00:00
Jenkins ad713855fb Merge "Get storyboard resources by properties other than ID" 2016-05-16 14:35:53 +00:00
Zara 124f15e9fd Get storyboard resources by properties other than ID
Before, you had to fetch resources via ID. This patch
lets you get resources via other properties, eg: get
a list of stories with a specific named tag.

I'm committing this but it's really co-authored with
SotK, ie: he walked me through it. :)

Change-Id: I28dbfc95badb9153187b7a4449d6d3df65635a20
2016-04-28 20:47:32 +00:00
Jenkins d743500b31 Merge "Add repo_url and team_id" 2016-04-15 13:25:49 +00:00
Jenkins 00293c457a Merge "Add worklists" 2016-04-15 13:23:23 +00:00
Jenkins cf521f2ef9 Merge "Update tasks.py to include links" 2016-04-15 13:23:17 +00:00
Jenkins fbebf894b4 Merge "Update Timeline" 2016-04-15 13:23:01 +00:00
Zara 23d0ce195e Add repo_url and team_id
Adding these for completeness. I think repo_url is actually deprecated,
so we may not want this. There are plans to use project teams at some
point, though.

Change-Id: I0f57f2c530e414783358b2d5ed265a22ad5628ea
2016-03-30 15:39:09 +00:00
Zara 4b411274e8 Add worklists
Adds ability to request a worklist. Very basic; can't yet request
worklist items.

Change-Id: Ib94527a1a0504bfdfcc1ff78b29a8734be31b716
2016-03-30 14:52:38 +00:00
Zara b2ec520a1e Update Timeline
This adds ability to request 'in_reply_to' field for comments.

Change-Id: I7b2fe0f5ea76ef6f0f91348b9bc07003d668a13b
2016-03-30 13:33:28 +00:00
Zara 90f9ac3eb9 Add story_type_id to stories
Now users will get the story_type_id as part of the request

Change-Id: Ifaaa6852a595286e683f63b542684c4c92286328
2016-03-30 13:23:21 +00:00
Zara 4287d9e113 Update tasks.py to include links
Now a request for a task can include notes (links). We should update
this when we update the db to use the term 'notes' instead of 'links'.

Change-Id: Ia38da58592dab7754cb6c7077057dfcb69d28b40
2016-03-30 12:27:17 +00:00
Adam Coldrick 7d9350d886 Fix oslo imports
Oslo modules are now named with `_` instead of `.`. This patch updates
the import statements in python-storyboardclient to reflect this.

Change-Id: Id866d316bd79d00737896340a458a9281b74fa07
2015-09-21 22:33:25 +01:00
Aleksey Ripinen c58a089d4c Added subscription events controller
Added SubscriptionEvent object and manager.
Added tests.

Change-Id: I24e8edf21fbc5724487e1ac1670f75509d4608a4
2015-03-24 16:49:18 +03:00
Aleksey Ripinen d8e4f3ced3 Added milestones controller
Added Milestone object and manager.
Added field milestone_id to Task object.

Change-Id: I87347e99f95b49a580cf0e34ed968d4b4e77853b
2015-03-02 16:10:46 +03:00
Jenkins 78f934c553 Merge "Added tags controller" 2015-02-28 08:11:08 +00:00
Aleksey Ripinen 70aedc6ce3 Added branches controller
Added Branch object and manager.
Added field branch_id to Task object.
Added field autocreate_branches to
Project object.

Change-Id: I8eaa42f03663c4e65981129f22eec01f13d4a3f3
2015-02-27 14:13:31 +03:00
Aleksey Ripinen c93ed03539 Added tags controller
Added Tag object, manager and nested
manager.

Change-Id: I8b67ebf5919adfb641381be6facc98d0a428fcdd
2015-02-27 13:22:34 +03:00
Jenkins 4772d5b1db Merge "Added user_tokens controller" 2015-02-26 18:36:55 +00:00
Jenkins f70bd6a8b7 Merge "Added timeline controller" 2015-02-26 14:10:05 +00:00
Aleksey Ripinen b83b45c6fb Added subscriptions controller
Added subscriptions class and manager.

Change-Id: I68ba5d653866dc84ee3489309b966379106c952d
2015-02-25 16:35:14 +03:00
Aleksey Ripinen 6ed70ab2d1 Added user_tokens controller
Added UserToken class and nested manager.

Change-Id: Ic4ad9f887b4ace4679241f2955c9709001880a16
2015-02-25 16:17:55 +03:00
Aleksey Ripinen ae7830e019 Added timeline controller
Added timeline events and comments classes and
nested managers.

Change-Id: I82aa0db91ed0d970fe476357b90f152419ee7c0e
2015-02-25 15:58:02 +03:00
Jenkins 9081da7057 Merge "Improved exception handling" 2015-02-20 21:40:03 +00:00
Nikita Konovalov dd9c9a7c3c Improved exception handling
The exception from response method behavior changed to match the fields
that are returned from the API. This actually means changing oslo files
which is not a recommended thing to do, but I see no other way to inject a
custom error parsing to their code. Monkey-patching is worse option I
think.

Change-Id: I33b926b9541c3e16b256d7e7383fa65a89bb5642
2015-02-19 13:47:32 +00:00
Michael Krotscheck e2404c3ccd Python34 Fixes.
_loaded was initialized after the __getattr__ call tried to pull it via is_loaded(). Also, added
the constructor for future sanity's sake.

Change-Id: Ice7ed104a040f7e7adebae42161ac677a5f1d31b
2015-02-18 15:55:41 -08:00
Nikita Konovalov b55b41bc7c Stories and Tasks support
Change-Id: I155750cfbe3711fa7e97615a62ca145bc056024a
2015-01-29 15:37:29 +03:00
Nikita Konovalov 4c9a611f99 Project Groups and Projects support
Added Managers and Object classes.

Change-Id: I9d2d3b27832701a34aaa5198c7e15183be607cf2
2015-01-21 17:46:22 +03:00
Nikita Konovalov c6c73ebeb9 Teams endpoint
Added teams endpoint with support for nested Users resource.

Change-Id: I5d93e91c268d5b35d10641bfce13e425f153d40d
2015-01-20 15:27:40 +03:00
Nikita Konovalov a5c1b220ac Update method improved
The base method from oslo is slightly improved to handle the id and
wrapping correctly.

Change-Id: I35e62c76498040c8e7180df400c278dfa766bb70
2015-01-13 15:32:15 +03:00
Nikita Konovalov 2090a8beff Setting up base classes
Base classes added for HTTPClient and Managers.

Users and UserPreferences implementation.

Change-Id: Ia2beb899b752a5db22a5dc12ff55852a7764ac36
2014-12-22 16:36:08 +03:00
Nikita Konovalov 9131009a77 Added required dependencies
Added log, i18n, conf and serialization.

Change-Id: Iaf2afa8ab0bbcd7e5d6647de6efa41980a6003ea
2014-12-17 13:27:07 +03:00
Nikita Konovalov e4b2b90a13 Adding apiclient from oslo incubator
Change-Id: Ia2beb899b752a5db22a5dc12ff55852a7764ac35
2014-12-11 15:53:17 +00:00
Nikita Konovalov fabfa59c6e Initial Cookiecutter Commit.
Change-Id: Ia2beb899b752a5db22a5dc12ff55852a7764ac34
2014-12-04 17:10:28 +03:00