adobe / adobe/athena

Json array is transformed in map when removing empty elements

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
26
Forks
7
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour
Json array stays as array when removing empty elements

### Actual Behaviour
Json array is transformed in map when removing empty elements

### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce
Set examples/performance/perfRun.yaml to
```
name: "apiKey"
version: "1.0"
description: ""
engine: autocannon
type: perfRun
config:
url: https://api-gateway-qe-d-ue1.adobe.io/test
connections: 2000
duration: 30
method: GET
requests: # Array of objects.
- headers:
host: keepalive-with-upstream-test-stage-service-1.adobe.io
method:
path:
- headers:
host: baseline-performance-testing-stage-service-1.adobe.io
hooks:
onInit:
onDestroy:
onRequest:
```
and run athena

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior with the configuration in examples/performance/perfRun.yaml and running athena. Trace how empty elements are removed from the requests array and where the resulting JSON value is transformed into a map. Done means the array remains an array after empty elements are removed, with the reproduction covered by a regression test if the project provides a suitable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.