growthbook / growthbook/cli

metric-groups create over-requires projects/description (spec/back-end)

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1
Forks
0
Avg merge
1d 5h
Merged PRs (30d)
18

Description

**Behavior:** `postMetricGroup` specs `projects` and `description` as required (no sibling create does), so `metric-groups create` demands both flags; an org-wide group needed `--body '{"projects":[],...}'` because a stringArray flag couldn't express `[]`.

**Mitigation in place:** the stringArray JSON-expansion patch (PR #48, tracked in #51) makes `--projects '[]'` expressible, so this is now a paper cut rather than a blocker. No overlay carried.

**Retire when:** the back-end Zod validator makes `projects`/`description` optional on metric-group create (growthbook repo fix).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the postMetricGroup spec in the spec/back-end area and compare its required projects and description fields with sibling create specs. Then inspect the growthbook repo's back-end Zod validator; done means metric-group creation accepts omitted projects and description while --projects '[]' remains expressible.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.