[Patchew-devel] [PATCH v2 0/8] rest: create separate results endpoint

Paolo Bonzini posted 8 patches 6 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew-ci tags/patchew/20180324133719.6030-1-pbonzini@redhat.com
api/models.py         |  13 ++++
api/rest.py           |  97 +++++++++++++++++++++++----
api/urls.py           |   6 ++
mods/git.py           |  31 +++++----
mods/testing.py       |  22 +++---
tests/test_git.py     |  49 +++++++++-----
tests/test_rest.py    |  11 +++
tests/test_testing.py | 181 ++++++++++++++++++++++++++++++++++++--------------
8 files changed, 310 insertions(+), 100 deletions(-)
[Patchew-devel] [PATCH v2 0/8] rest: create separate results endpoint
Posted by Paolo Bonzini 6 years, 1 month ago
This series changes the REST API so that results are moved out of
the SeriesSerializer and into their own collection endpoint.
This should make it easier for Shubham to design a REST replacement
for the applier-report and tester-report APIs.

Patches 1-3 are preparatory changes; patches 4-6 introduce the new
endpoint; patches 7-8 improve test coverage for project tests.

Paolo

	v1->v2: support project results; move Result to api.models,
		even though it's not yet exactly a model we'll use
		it soon in the website as well

Paolo Bonzini (8):
  rest: create Result object
  rest: use lookup_field in HyperlinkedMessageField
  rest: add data to testing results
  rest: create separate results endpoint
  rest: include log directly in /.../results/xyz response
  rest: add project results
  testing: refactor tests introducing a common superclass
    TestingTestCase
  testing: cover project tests

 api/models.py         |  13 ++++
 api/rest.py           |  97 +++++++++++++++++++++++----
 api/urls.py           |   6 ++
 mods/git.py           |  31 +++++----
 mods/testing.py       |  22 +++---
 tests/test_git.py     |  49 +++++++++-----
 tests/test_rest.py    |  11 +++
 tests/test_testing.py | 181 ++++++++++++++++++++++++++++++++++++--------------
 8 files changed, 310 insertions(+), 100 deletions(-)

-- 
2.16.2

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel
Re: [Patchew-devel] [PATCH v2 0/8] rest: create separate results endpoint
Posted by Fam Zheng 6 years ago
On Sat, 03/24 14:37, Paolo Bonzini wrote:
> This series changes the REST API so that results are moved out of
> the SeriesSerializer and into their own collection endpoint.
> This should make it easier for Shubham to design a REST replacement
> for the applier-report and tester-report APIs.
> 
> Patches 1-3 are preparatory changes; patches 4-6 introduce the new
> endpoint; patches 7-8 improve test coverage for project tests.

I had two things I didn't understand, but the series looks good to go!

Fam

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel