-
Notifications
You must be signed in to change notification settings - Fork 77
Add file latest and file md5 latest to south API router #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
test this please |
1 similar comment
|
test this please |
| var query = req.params.filename; | ||
|
|
||
| return fileService.verify(query) | ||
| .then(function(metadata) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to metadata[metadata.length - 1] to return the latest file. Similar to #222
|
Still 👍 |
|
Thanks @iceiilin, just see your PR merged. |
|
+1 after changing the index |
|
@WangWinson suggest adding unittests for these two routers |
05ef9f2 to
1a8ddab
Compare
|
@iceiilin @yyscamper comments addressed |
|
Looks good to me 👍 |
|
@WangWinson can we please include the unit tests with this fix? It would also likely have a positive impact to the coveralls decreased coverage noted above. thanks! |
|
@amymullins yes, I would like to. I would try best to complete my current story first. |
|
@WangWinson These are the coverage/unittest rules Felix has posted for me in the past: +1 after the PR is amended to meet these criteria, -1 otherwise. |
|
@amymullins @zyoung51 : I had talked about the unit-test with @WangWinson, since there is a history debt that this file doesn't have any unit-test before (see https://github.com/RackHD/on-http/blob/master/spec%2Flib%2Fapi%2F1.1%2Ffiles-spec.js) and considering the priority that this will impact multiple P1 issues that related with firmware update, so I'm acceptable to create another PR to compensate the unit-testing. Anyway, I will be very appreciated if the unit-test can be ready in this PR. |
|
@yyscamper ok by me if you need/want to track in a separate story but IMO it should be of equal priority. If we had these test cases covered, we may not have had multiple P1 issues to resolve. :) |
|
@amymullins : I agree. |
d1ced4c to
4758efd
Compare
|
|
|
👍 |
1 similar comment
|
👍 |
To solve issue https://github.com/RackHD/on-http/issues/215
@RackHD/corecommitters @cgx027