Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
storeapi: improve the error message for the case the Store answers an upload needs manual review. #1261
Conversation
sergiusens
requested a review
from
elopio
Apr 18, 2017
elopio
requested changes
Apr 19, 2017
I like the message a lot more now. Thanks @facundobatista.
What I don't like is that no test failed. We are missing tests here. I know this bumps a lot the time you assigned for this task, but could you work on the tests?
| - 'Use devmode in the edge or beta channels to disable confinement.') | ||
| + "The Store automatic review failed.\n" | ||
| + "A human will soon review your snap, but if you can't wait please " | ||
| + "write to the snapcraft mailing list asking for the manual review " |
|
Thanks @elopio ! There I changed the text to mention the forum, not the mailing list. Regarding the test case, I don' t think there is value in providing a test for just a simple text (with "simple" meaning that the text is not built or constructed in any way) as we have in this case. Imagine how the test for this constant would be, just the text repeated in the code and the test, and if a change needed, the change is reproduced in both places, no really asserting nothing. IMO constants are not to be tested, is like testing specific values of settings or configs. Thanks again! |
codecov-io
commented
Apr 20, 2017
Codecov Report
@@ Coverage Diff @@
## master #1261 +/- ##
==========================================
- Coverage 96.38% 95.35% -1.04%
==========================================
Files 194 218 +24
Lines 17811 20252 +2441
Branches 1370 1611 +241
==========================================
+ Hits 17168 19312 +2144
- Misses 435 667 +232
- Partials 208 273 +65
Continue to review full report at Codecov.
|
|
@facundobatista I agree more or less about the text. At some point I would love to have tests specifying the UX, instead of google docs, but we are not close to that yet. As we are usually at least checking parts of the message, I thought that we didn't even have a test for the exception. But I checked and we have test_upload_requires_review. All good, +1 |
facundobatista commentedApr 18, 2017
LP: #1670471