shell icon indicating copy to clipboard operation
shell copied to clipboard

missing badges for actions not created inside the shell

Open rabbah opened this issue 7 years ago • 6 comments

an action not created in the shell will not generate badges:

create a java action in the shell: action create j1 ~/projects/openwhisk/tests/dat/actions/helloJava.jar --main m

screen shot 2018-05-23 at 8 07 59 am

but create the same action from the command line and the rendering is different for

screen shot 2018-05-23 at 8 09 27 am
  • missing badge is due to the lack of annotation on the action that the shell generates
  • different message and font

rabbah avatar May 23 '18 12:05 rabbah

yup, we cannot know that the action is a jar action without some client side help. we could try to interpret the binary blob as any number of types (zip, jar, etc.), and see which works, i suppose.

re: the difference in the body, this is more easily fixable.

starpit avatar May 23 '18 14:05 starpit

The kind and exec info isn’t enough?

ie kind java and binary it’s a jar

rabbah avatar May 23 '18 14:05 rabbah

for java, perhaps

starpit avatar May 23 '18 14:05 starpit

Fair - for java it’s obvious. For the others it may not be clear whether zip or just binary.

rabbah avatar May 23 '18 14:05 rabbah

We could augment the cli to add the same annotation... wdyt?

rabbah avatar May 23 '18 14:05 rabbah

i think this could be valuable.

starpit avatar May 23 '18 14:05 starpit