Commit Graph

14 Commits

Author SHA1 Message Date
Mike Fedosin 2924e662cb Look the list of artifacts in 'artifacts' section
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
2017-12-13 13:39:23 +00:00
Idan 27fddd5c51 Fix active status webapi documentation
Change-Id: Ieb9daa51760fe94a522031a421b03a012d72062d
2017-07-05 07:32:11 +00:00
Mike Fedosin 0cbb8b77f3 Remove pending_delete status for blobs
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
2017-06-22 12:00:56 +03:00
Jenkins 768360d064 Merge "Add basic documentation about glare framework" 2017-06-20 12:44:36 +00:00
Mike Fedosin 0c92788318 Add basic documentation about glare framework
Change-Id: I92daa0b1293881cc0474e0b13cb0b99049281f8e
Co-Authored-By: Idan Narotzki <idan.narotzki@nokia.com>
2017-06-20 14:00:18 +03:00
Vu Cong Tuan ecae1938eb Fix html_last_updated_fmt for Python3
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
2017-06-06 09:49:35 +07:00
Mike Fedosin ad2cac447e Add tests for adding custom location to blob
Change-Id: Id8ceec283174ede650836ea081228d406c0c74b5
2017-05-28 20:20:21 +00:00
Mike Fedosin 59a87d557a Add glare client documantation
Change-Id: I89751365707f85556b04922d40e27968ac691817
2017-05-01 11:38:16 +00:00
Mike Fedosin c454fb83b9 Add architecture documentation
Change-Id: I52868375cbf82a9f4b320d3a9d5229c63d13ca96
2017-05-01 14:32:53 +03:00
Mike Fedosin f273ee21db Update documentation for v1 api
Change-Id: If7e6bff6bd1e57853f9acea2602ce5dd03e231e7
2017-03-30 01:00:50 +00:00
Mike Fedosin 6a612efedd Add v1 api doc
Change-Id: I4e4dea01816b109d7dc3a605a6ee844fd16ac44e
2017-02-06 23:28:26 +03:00
Mike Fedosin 0ef6a4cd61 Documentation initial commit
Change-Id: Icb8f6f93726d316241f9d25b56ae98c2c7a3aa72
2017-02-06 22:47:00 +03:00
ji-xuepeng 4124c2c249 Removes unnecessary utf-8 encoding
Change-Id: If19ba090bdb0e042bc45e8921309fd9d903f8f8a
2017-01-13 20:02:04 +08:00
kairat_kushaev 46f27365f8 Fix docs and remove bandit check for translation
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
2016-08-23 09:25:01 +00:00