You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/05/08 13:18:26 UTC

[GitHub] sandrarapp opened a new issue #3623: Inconsistency in response of GET activations API call

sandrarapp opened a new issue #3623: Inconsistency in response of GET activations API call
URL: https://github.com/apache/incubator-openwhisk/issues/3623
 
 
   Performing a GET call on the activations api without including docs (i.e. setting `docs` query parameter to `false`) I receive a statusCode field in the response for each action. But the statusCode information is missing for triggers. For details see the sections below for expected vs. actual results. Is it possible to also provide as statusCode field for triggers from within this call? At the moment I have to issue a separate REST call for every trigger in order to retrieve the statusCode from within the logs.
   
   ## Environment details:
   
   * lBM Cloud 
   
   ## Steps to reproduce the issue:
   
   1.   Issue GET call /api/v1/namespaces/{namespace}/activations?docs=false
   2.   Response contains actions and triggers data but for triggers the statusCode is missing
   
   
   ## Expected results and outputs:
   
   ```
   [
     {
       "statusCode": 0,
       "duration": 56,
       "name": "SandraAction1",
       "activationId": "ce7c776c005c4364bc776c005c636487",
       "publish": false,
       "annotations": [
         {
           "key": "path",
           "value": "mynamespace_dev/SandraAction1"
         },
         {
           "key": "waitTime",
           "value": 16
         },
         {
           "key": "kind",
           "value": "nodejs:6"
         },
         {
           "key": "limits",
           "value": {
             "timeout": 60000,
             "memory": 256,
             "logs": 10
           }
         },
         {
           "key": "initTime",
           "value": 43
         }
       ],
       "version": "0.0.1",
       "end": 1525715007887,
       "start": 1525715007831,
       "namespace": "mynamespace_dev"
     },
     {
       "statusCode": 0,
       "name": "mytrigger",
       "activationId": "855a0f577a1244de9a0f577a1294dea6",
       "publish": false,
       "annotations": [],
       "version": "0.0.1",
       "start": 1525715007814,
       "namespace": "mynamespace_dev"
     }]
   ```
   
   
   ## Actual results and outputs:
   
   ```
   [
     {
       "statusCode": 0,
       "duration": 56,
       "name": "SandraAction1",
       "activationId": "ce7c776c005c4364bc776c005c636487",
       "publish": false,
       "annotations": [
         {
           "key": "path",
           "value": "mynamespace_dev/SandraAction1"
         },
         {
           "key": "waitTime",
           "value": 16
         },
         {
           "key": "kind",
           "value": "nodejs:6"
         },
         {
           "key": "limits",
           "value": {
             "timeout": 60000,
             "memory": 256,
             "logs": 10
           }
         },
         {
           "key": "initTime",
           "value": 43
         }
       ],
       "version": "0.0.1",
       "end": 1525715007887,
       "start": 1525715007831,
       "namespace": "mynamespace_dev"
     },
     {
       "name": "mytrigger",
       "activationId": "855a0f577a1244de9a0f577a1294dea6",
       "publish": false,
       "annotations": [],
       "version": "0.0.1",
       "start": 1525715007814,
       "namespace": "mynamespace_dev"
     }]
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services