apache / apache/openwhisk

Inconsistency in response of GET activations API call

Open
#3,623 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

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"
}]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.