Now when user requests a list of artifacts glare returns
a json dict that has a section called after the type name,
which contains the list of the artifacts.
Example:
GET /artifacts/my_artifacts
{"my_artifacts": [...]}
It's not really a restful approach, so it's suggested to create a
unified section 'artifacts' for all cases, i.e. return
{"artifacts": [...]}
Change-Id: Ic0762f7a379754d19147a4f41a6d5a98abdc86b0
Currently if artifact is marked as deleted all
its blobs logicaly become 'pending_delete' and
can't be used anymore.
For this reason there is no need to have addtional
blob status and explicitely mark blobs - it's all
done when we change artifact status to 'deleted'
ApiImpact
Change-Id: Ide2bb3130d400b7ddcde0760246003b745ef4ff0
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.
Changing Popen to .check_output because of 3 reasons:
1. check_output() will raise CalledProcessError if
the called process returns a non-zero return code.
2. For consistency with keystone [1] and cinder [2]
3. It makes the code look much better.
[1] https://review.openstack.org/#/c/457142/
[2] https://review.openstack.org/#/c/433081
Change-Id: I2da5d4cc708c06f7d03f2f2805f6340895c9f5ac
Currently there are no translation files in glare repo. Because of
that some bandit checks have failed during pep8 run. The patch
fixes this behavior. It also adds gitreview file and
adds additional exception for idea files to gitignore
Additionally tox -edocs has failed because doc configuration is
absent. The patch has added basic configuration for sphinx so
users can generate docs for glare.
Change-Id: I817d8f4e072ff300923faf13871c29a80f226336