Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
store: orders API now checks if customer is ready #3501
Conversation
codecov-io
commented
Jun 20, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3501 +/- ##
==========================================
- Coverage 77.18% 76.78% -0.41%
==========================================
Files 377 379 +2
Lines 25881 26317 +436
==========================================
+ Hits 19976 20207 +231
- Misses 4141 4310 +169
- Partials 1764 1800 +36
Continue to review full report at Codecov.
|
stolowski
requested a review
from
pedronis
Jul 7, 2017
stolowski
approved these changes
Jul 7, 2017
Looks good, but I'd like @pedronis to ack this change (I've requested review from him). Thanks!
| @@ -1666,11 +1666,18 @@ type storeErrors struct { | ||
| Errors []*storeError `json:"error_list"` | ||
| } | ||
| +func (s *storeErrors) ErrorCode() string { |
stolowski
merged commit 2e2f188
into
snapcore:master
Jul 10, 2017
4 of 7 checks passed
artful-amd64
autopkgtest running
Details
xenial-i386
autopkgtest running
Details
zesty-amd64
autopkgtest running
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
xenial-amd64
autopkgtest finished (success)
Details
xenial-ppc64el
autopkgtest finished (success)
Details
yakkety-amd64
autopkgtest finished (success)
Details
cjwatson
deleted the
cjwatson:buy-403
branch
Jul 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cjwatson commentedJun 20, 2017
The store's orders endpoint now checks that the customer exists, has a
payment method, and has accepted the terms of service, so
store.Buynolonger needs to make a separate request to confirm this.
I removed "store reported an error: " from
storeErrors.Error, because"cannot buy snap: server says not found: store reported an error: Snap
package not found" was getting a bit excessive.