Skip to content

Commit a586170

Browse files
author
stlc-bot
committed
feat(zdr): accept zero data retention on people search and company search (#2852)
Stainless-Generated-From: 54387f75f9dd14d1db58de01943aad49ef25fcaf
1 parent 21aa422 commit a586170

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎pkg/cmd/person.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ var peopleSearch = requestflag.WithInnerFlags(cli.Command{
177177
Usage: "Labels for filtering usage in the dashboard.",
178178
BodyPath: "tags",
179179
},
180+
&requestflag.Flag[string]{
181+
Name: "zdr",
182+
Usage: "`enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.",
183+
BodyPath: "zdr",
184+
},
180185
},
181186
Action: handlePeopleSearch,
182187
HideHelpCommand: true,

‎pkg/cmd/person_test.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func TestPeopleSearch(t *testing.T) {
110110
"--mode", "fast",
111111
"--tag", "production",
112112
"--tag", "team-alpha",
113+
"--zdr", "enabled",
113114
)
114115
})
115116

@@ -130,6 +131,7 @@ func TestPeopleSearch(t *testing.T) {
130131
"--mode", "fast",
131132
"--tag", "production",
132133
"--tag", "team-alpha",
134+
"--zdr", "enabled",
133135
)
134136
})
135137

@@ -146,7 +148,8 @@ func TestPeopleSearch(t *testing.T) {
146148
"mode: fast\n" +
147149
"tags:\n" +
148150
" - production\n" +
149-
" - team-alpha\n")
151+
" - team-alpha\n" +
152+
"zdr: enabled\n")
150153
mocktest.TestRunMockTestWithPipeAndFlags(
151154
t, pipeData,
152155
"--api-key", "string",

0 commit comments

Comments
 (0)