1073 Commits

Author SHA1 Message Date
OpenDev Sysadmins
e4f7facf54 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:26:02 +00:00
Zuul
fcb04495a0 Merge "Rewrite/clarify non-docker dev env instructions" 2019-04-11 13:03:42 +00:00
Zuul
df93aa975e Merge "Add docker-compose based dev setup instructions" 2019-04-11 12:40:57 +00:00
Zuul
0d30e7649c Merge "Whitelist rm for docs target in tox.ini" 2019-04-11 10:59:03 +00:00
Zuul
363c64f47c Merge "Add some tests for checking private story behaviour" 2019-04-10 21:53:59 +00:00
Zuul
db126c6403 Merge "Use one database per test class rather than per test" 2019-04-10 21:48:30 +00:00
Ian Wienand
45f7369173 Merge "Replace openstack.org git:// URLs with https://" 2019-04-10 01:34:34 +00:00
Zuul
bb0fd27372 Merge "Search bars handle queries as if they have a * at the end" 2019-04-09 21:40:52 +00:00
Riju19
a2a3df3d19 Search bars handle queries as if they have a * at the end
Change-Id: Iac8a6a46e7898edd523e3f7c026cbdd134bbff21
Task: 2260
Signed-off-by: Riju19 <19.riju@gmail.com>
2019-04-01 22:04:38 +05:30
Ian Wienand
3f070fe44a Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Icbbdd5b70854fe740de1b0ebc9de203a2b501500
2019-03-26 13:51:43 +00:00
Zuul
686cc9f8ef Merge "Fixes the Python 3 dependencies and iterator" 2019-03-25 13:33:50 +00:00
Adam Coldrick
f4d10fd42f Rewrite/clarify non-docker dev env instructions
This updates the manual development installation instructions to be
more similar to the docker instructions in wording, and also
clarifies some previously-unmentioned pain points.

The RabbitMQ setup instructions are also moved into the manual setup
section, since the docker instructions already cover it for that
use-case.

Change-Id: I16ae43bed70d03bfce2fbe07dea9e58ff073d42f
2019-03-25 13:26:54 +00:00
Adam Coldrick
56b0233ffe Add docker-compose based dev setup instructions
This adds a docker-compose.yml file which runs the various services
required for a working development instance of StoryBoard (and also
Swift, which technically isn't needed yet). It also provides a config
file which is pre-configured to work out of the box with the services
in the docker-compose.yml file.

It also updates the development installation instructions to recommend
using docker-compose to run the services, rather than installing them
on a machine and configuring everything manually.

Change-Id: I405e2e46f6ab7d8ef2c1ddd43b3e2e8cb8e3a808
2019-03-25 13:06:06 +00:00
Zuul
43c291b8a7 Merge "Creates the tag with project name and priority" 2019-03-21 01:49:22 +00:00
Zuul
746fa96795 Merge "Updated_at content modified" 2019-03-21 01:49:18 +00:00
Adam Coldrick
489a6b5cb7 Whitelist rm for docs target in tox.ini
Change-Id: Ifd60e5ed0085059f47ae65f478d33f2f4bcb6fdf
2019-03-20 16:15:33 +00:00
Adam Coldrick
0207e1704b Add some tests for checking private story behaviour
This adds some tests which verify the behaviour of private stories is as
intended, and that they are correctly filtered out of any related
results such as tasks and comments.

Some changes were necessary in mock_data.py to account for this. The
session used to insert data is now shared for all the test objects,
rather than creating a new session per object type. This makes it easier
to query the created data to populate the various many-to-many
relationships in the StoryBoard data model, to allow for testing of
things which require permissions to be created and populated.

Change-Id: Ib4db5b3d07363d3bdc97ad825a12f8882a0aa8f1
2019-03-19 13:58:44 +00:00
Adam Coldrick
6cdc6f4bfb Use one database per test class rather than per test
When running the test suite using MySQL, a lot of time is spent
creating the database, running the migrations, and then dropping
the database when the test finishes. Obviously we need a clean
database at the start of each test, but that doesn't mean we need
to run the migrations every single time.

Setting parallel_class to True in .stestr.conf makes all the tests
in a given class run in the same subprocess, whilst retaining
parallelisation when there is more than one test class discovered.

This commit moves the setup and cleanup of the database to the class
level rather than the test level, so that the slow migration step only
runs once per test class, rather than once per test. Cleaning the
database between tests is done by deleting everything from the tables
(excepting the tables that are populated by the migrations themselves),
and resetting any autoincrement counters.

This reduces the runtime of the individual tests by an order of
magnitude locally, from about 10 seconds per test to about 1 second per
test with this patch applied. There is still some overhead for each
class, but I can now run the test suite in about 15 minutes with MySQL
on my machine, as opposed to over an hour previously.

Change-Id: I1f38a3c4bf88cba8abfaa3f7d39d1403be6952b7
2019-03-18 15:24:05 +00:00
Zuul
a834414372 Merge "Pin tox-py35 jobs to ubuntu-xenial" 2019-03-14 15:41:47 +00:00
Adam Coldrick
d143d0dc58 Pin tox-py35 jobs to ubuntu-xenial
We use tox-py35 from zuul-jobs directly since we don't use the global
openstack/requirements constraints. However, this means that our
tox-py35 tests are now running on Bionic, which doesn't have Python
3.5.

This commit sets the nodeset for the tox-py35 job to ubuntu-xenial,
to continue not using the constraints but also allow the tests to
actually run again.

Change-Id: I7c4208521b25303d257cb22a84c3841d0b5e8c09
2019-03-14 13:02:44 +00:00
Ivoline Ngong
27dbfe207d Updated_at content modified
updated_at field in projects table now contains a date that signifies the most
recent date a task or story related to the project was last updated/created.
Task: 24368

Change-Id: I03f387a86c7a34e5bf4d653746df535e68813495
2019-03-05 13:25:23 +03:00
Camila Moura
a7d7763d99 Creates the tag with project name and priority
This patch adds to the migration script the feature
to use the priority field from "Launchpad task" to
create a tag to the "Storyboard's Story". So, this
tag will be prefixed with the project and followed
by the task priority.

Ex: project_name-priority, manila-high

Change-Id: I6664a9ca0cdb9fbe265e0f18ab3ae8f879475466
Task: 28146
2019-03-05 10:52:06 +01:00
Adam Coldrick
a2f0f207cd Use ColumnElements instead of strings in migration
Using strings to reference columns in `select()` is no longer
supported, and real ColumnElement objects should be used instead.
Previously this was a warning, but now it is an error which breaks
our database migrations with latest SQLAlchemy.

This commit fixes the only place we do this in our code.

Change-Id: I3134089525f76330c455fff83ab0ec90e4e20f0d
2019-03-05 00:57:06 +00:00
Zuul
2e47430d54 Merge "Update docs on how to run the tests locally" 2019-03-04 21:41:53 +00:00
Zuul
3fdda73b39 Merge "Add documentation for private stories" 2019-03-04 18:41:19 +00:00
Kendall Nelson
55dfa602c6 Add documentation for private stories
Include basic information about how to create a story that has security
concerns.

Change-Id: I379a076f66f9794dac2add98f44c5347f55de9fd
2019-03-02 01:25:49 +00:00
Camila Moura
d082d8ac0f Fixes the Python 3 dependencies and iterator
A. Fixes depedencies of Python 3:

Following the documentation about Python 3 requirements.
It was needed to change in the file ./requirements.txt
replacing "python-openid" with "python3-openid".

B. Fixing Python 3 compatibility in the migration script:

In order to fix the migration script to run on Python 3
I changed the line #24 on ./migrate/launchpad/reader.py,
changing the iterator.

Also, I added  in the file "./requirements.txt" a comment
to use the library "launchpadlib" in order to run
the migrate script.

Change-Id: Iedcd283ade1ea62fdc5777dfe7b1ae5916db3480
2019-03-01 16:31:16 +01:00
Clark Boylan
528469101e Update docs on how to run the tests locally
This adds more up to date documentation on how to run the tests locally.
It recommends the sqlite target for unittests as they are faster but
includes directions for setting up mysql and postgresql for  running the
test suite against production like backends.

Change-Id: I56f6d6b586ec5274943fbef35f635b03bf22c4bd
2019-02-28 16:59:14 -08:00
Zuul
b476b0ed8f Merge "Update development installation documentation" 2019-02-27 16:04:26 +00:00
Zuul
747444deb1 Merge "Add an interface specifying the API for storage backends" 2019-02-26 17:39:17 +00:00
Zuul
8ab5143cb1 Merge "Remove upper limit on PyMySQL version" 2019-02-21 02:30:20 +00:00
Zuul
9200863c34 Merge "Use python3 for basepython in tox.ini" 2019-02-21 02:30:19 +00:00
OpenStack Proposal Bot
b4deaecfdd Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0f74825d009c1064e823b58967c6cf313c078304
2019-02-16 07:04:14 +00:00
Ivoline Ngong
14e3d53e5a Fixed hyperlinks to worklist and boards documents
Change-Id: Id8fb95b780a05212b39226da866b67d2e7adc723
2019-02-15 19:09:45 +03:00
Zuul
5b92ef33fb Merge "Stop passing new lanes' "worklist" key to add_lane" 2019-02-11 16:40:04 +00:00
Adam Coldrick
b26e34f486 Stop passing new lanes' "worklist" key to add_lane
This key is always either None or a Worklist wsme model. Also,
passing None causes the list_id to end up null in the database,
which leads to an integrity error.

Change-Id: I5087064b77fea2a5a59ef7200cfa58e4f8c31925
Story: 2004948
Task: 29363
2019-02-09 12:48:34 +00:00
Adam Coldrick
51aed1decb Add an interface specifying the API for storage backends
This interface specifies a common set of methods which must be
implemented by any storage implementation. These methods currently
provide a way to obtain a URL which can be used to upload a file,
and an authentication token which can be used to authenticate the
upload request.

Change-Id: If16a131810719ce27608abbedabb958f302b4940
2019-01-27 15:51:35 +00:00
Adam Coldrick
8cb8e142f4 Update development installation documentation
There are some inaccuracies and unnecessary instructions in the
development installation docs page. This commit clarifies and
updates them where possible to make them less likely to lead to
immediate problems.

Change-Id: I8ae9bfe4709aebf24eb86d4bcb36d66445b60ffb
2019-01-26 12:25:28 +00:00
Adam Coldrick
69f7ddfd86 Remove upper limit on PyMySQL version
This limit pins PyMySQL to a very old version, which lacks support
for recent MySQL versions. Removing this limit allows StoryBoard to
work with MySQL 8.

Change-Id: I4851e25b14913233fd7183756e5f4fe6bc47d28a
2019-01-26 12:15:58 +00:00
Adam Coldrick
459399491c Use python3 for basepython in tox.ini
Change-Id: I1d9cd136592cec001abe0534dcf162d33785f281
2019-01-26 11:09:13 +00:00
Zuul
21fa81267c Merge "Switch to using stestr for tests" 2019-01-24 11:03:05 +00:00
Zuul
7a296ac2c4 Merge "Add a popularity measurement to tags" 2019-01-16 12:14:42 +00:00
Zuul
ff6117f801 Merge "Fix the stories relation in StoryTag" 2019-01-16 01:38:06 +00:00
Zuul
601cb38607 Merge "Rationalise worklist ordering code" 2019-01-16 01:38:05 +00:00
Jeremy Stanley
1b578021c7 Pin oauthlib<3 for now
The recent oauthlib 3.0.0 release seems to have regressed
authentication, raising "InvalidRedirectURIError: (invalid_request)
Invalid redirect URI." in
oauthlib.oauth2.rfc6749.grant_types.base._handle_redirects() on
returning from the OpenID provider. This is an emergency pin to <3
until we're able to suss out whether this is a bug in storyboard's
authentication client implementation or a legitimate regression in
oauthlib.

Change-Id: Iad4e035d88a0cd335c6ef68263bf7e044a192513
2019-01-15 22:03:28 +00:00
qingszhao
5833f87e20 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I3427af2d850de96661f6d49629eece0500f08d49
2018-12-04 15:52:17 +00:00
Adam Coldrick
c13898a3e8 Rationalise worklist ordering code
Its currently very easy to get worklist ordering extremely broken,
simply by adding and moving cards around. The code which manages it
is a convoluted mess that is hard to understand.

This commit replaces that mess with a sane implementation which also
actually works.

Change-Id: Ia51352eecfd69e7e5c4aa2e98567c47db530af67
2018-12-02 01:34:29 +00:00
Adam Coldrick
75ad9b8756 Add a popularity measurement to tags
This commit adds a popularity measurement to tags, to aid users in
selecting a sensible set of tags from suggestions.

Story: 2004467
Task: 28156
Change-Id: I4d4e19a8fd6058f1c8384da515687ded3bc64551
2018-12-01 13:09:08 +00:00
Adam Coldrick
29046ff0c5 Fix the stories relation in StoryTag
Currently this relation just contains the StoryTag itself. This
commit fixes it to contain the actual story.

Change-Id: Ie7e28dc97e6ee705c62ca2b83494c1159b173e97
2018-11-29 23:53:01 +00:00
Zuul
5ecfa05a17 Merge "Fix up a few requirements" 2018-11-07 20:15:46 +00:00