You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main purpose of thise flag is so that when doing a bulk flag
flip in production, one can go and re-pull just tasks that still
needh to be modified.
And my reasoning is that if I'm going and setting a flag like
`no_foobar` in prod, there are three cases:
- A task has no feature flag setting for `foobar`. These are
the ones we want to modify.
- A task has setting `no_foobar`. These don't need to be touched
since they already have the value we want.
- A task has setting `foobar`. These _really_ shouldn't be
touched since somebody has explicitly indicated that they
want the opposite of what we're doing.
Previously the 'missing flag' logic was written such that one
might go `--missing=no_foobar` to get all tasks without the
specific flag setting `no_foobar` in their feature flags. And
since that's still the typical desire and it's weird to have
to write `--missing=foobar` and then `--set_flag=no_foobar`
for different commands and one could easily screw that up,
the logic also normalizes so `--missing=no_foobar` and
`--missing=foobar` do the same thing.
Copy file name to clipboardexpand all lines: scripts/list-tasks/main.go
+20-11
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,6 @@ import (
26
26
"os"
27
27
"os/exec"
28
28
"path"
29
-
"slices"
30
29
"sort"
31
30
"strings"
32
31
@@ -48,7 +47,7 @@ var (
48
47
taskType=flag.String("type", "", "The type of catalog spec to list (typically 'capture' or 'materialization'). If unspecified the task listing will not be filtered by type.")
49
48
imageName=flag.String("connector", "", "The connector image name to filter on. Can be a full URL like 'ghcr.io/estuary/source-mysql' or a short name like 'source-mysql', and in the latter case the name will be expanded into a full URL including all variants. If unspecified the task list will not be filtered by connector.")
50
49
namePrefix=flag.String("prefix", "", "The task name prefix to filter on. If unspecified the task listing will not be filtered by name.")
51
-
missingFlags=flag.String("missing", "", "A comma-separated list of feature flag settings. If specified only tasks missing one or more flag settings will be listed/pulled.")
50
+
missingFlags=flag.String("missing", "", "A comma-separated list of feature flags. If specified only tasks with one or more flags unset will be listed/pulled.")
52
51
53
52
addToDraft=flag.Bool("draft", false, "When true, all listed tasks will be added to the active flowctl draft.")
0 commit comments