Closed larandersson closed 5 years ago
very nice! perhaps also add new fields to the activation list --full
output for consistency
@mdeuser The added fields are already in the --full output, but in JSON format They were always there (in the API response), but were not used before.
@larandersson - i was thinking about the new Start
column value. i don't think that is explicitly included in the --full
output. but maybe that's ok since it's just some sugar on top of the actual data... although, in the case of a warm
start, there's really no corresponding explicit value in the activation dump.
@mdeuser You're right, the Start column is not in the --full output. But the client can use deduction to figure it out, if needed. So, maybe we don't need to include it in the JSON output as well?
@mdeuser I'd like to get this PR in before the upcoming release I'm working on. Any objections?
@dubee @rabbah I don't minding adding a unit test, if it makes sense. However, based on what kind of unit and integration tests already exist for this package, I don't see how adding a mock test would add any real value. Such a unit test would probably make more sense in the CLI repository.
If you want me to add a unit test in that repository, do you think it would be best to add a new one to https://github.com/apache/incubator-openwhisk-cli/tree/master/tests/src/test/scala/org/apache/openwhisk/core/cli/test, or add the test to the existing one here: https://github.com/apache/incubator-openwhisk-cli/blob/master/tests/src/test/scala/system/basic/WskCliActivationTests.scala?
So, with that being said, maybe this PR could be merged into the master branch and if needed I can open up a new PR against the CLI for the unit test?
@larandersson I'd suggest unit tests for the affected method - no mocking of API calls necessary. I've started a very tiny suite of go unit tests for the CLI but not here.
Looking over the existing tests, since none are affected by the changes one can argue there's already a test gap. I'm going to accept the PR as is and address the rest separately.
@larandersson you'll need to bump the govendor git hash in the cli repo to pick up this change.
Description
Added extra columns for output from 'wsk activation list command'. The output now looks as indicated by the screenshot below.![screenshot from 2019-02-19 20-57-23](https://user-images.githubusercontent.com/8848818/53043781-8ea73f00-3489-11e9-8202-0fc5adb3056d.png)
Compared to current output, the following columns have been added:
I have signed an ICLA.