Skip to content

fix: send a single group parameter as an ordinary parameter - #1043

Merged
gibiw merged 1 commit into
mainfrom
fix/commons-single-group-param
Nov 2, 2026
Merged

gibiw merged 1 commit into
mainfrom
fix/commons-single-group-param

Conversation

@gibiw

@gibiw gibiw commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Commons 2.9.9. Found while verifying #1042 against Qase.

qase.groupParameters({ env: 'staging' }) (or a single @QaseGroupParameters key) was sent as param_groups: [["env"]]. The v2 API answers 400 param_groups.0 must have at least 2 items, and a 400 fails the whole batch: every other result in it is lost and the run is left open. Affects every reporter.

Now a one-item group is dropped (its value is already in params), and only parameters with a value go into a group.

Test plan

  • Unit: 3 new tests in result-transformer.test.ts; commons 717 pass; all 9 reporters' unit tests pass against the rebuilt commons
  • Qase TestOps, project DEVX, verified via Qase MCP — jest file with three tests: one group param, two group params, a plain neighbour:
    • before (run 916): 400 param_groups.0 must have at least 2 items, all 3 results lost, run left open
    • after (run 917): 3/3 passed, run completed; case 18551 has browser + env as single params; case 18552 keeps env/region as a group; the neighbour (18553) has its comment

A single group parameter (qase.groupParameters({ env: 'staging' })) was
sent as param_groups [["env"]]. The v2 API rejects a group of fewer than
two items with 400, which fails the whole batch, so the neighbouring
tests' results were lost and the run was left open.

A one-item group is now dropped (the value is already in params), and
only parameters with a value are put into a group.
@gibiw
gibiw merged commit e094d50 into main Nov 2, 2026
56 checks passed
@gibiw
gibiw deleted the fix/commons-single-group-param branch November 2, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants