Skip to content

Update edit settings to remove unused string list setting #1117

Merged
kumare3 merged 1 commit into
flyteorg:mainfrom
afbrock:main
May 29, 2026
Merged

Update edit settings to remove unused string list setting #1117
kumare3 merged 1 commit into
flyteorg:mainfrom
afbrock:main

Conversation

@afbrock
Copy link
Copy Markdown
Contributor

@afbrock afbrock commented May 27, 2026

This change also improves string map handling.
The label setting changed types from string list to map, and was the only instance of a string list. This change removes the unused type. It also improves how maps display entries from different scopes. Each entry is displayed on its own line with a comment as to its source scope.

Comment thread src/flyte/cli/_edit.py
except Exception as e:
console.print(f"[red]Error fetching settings:[/red] {e}")
raise click.Abort
settings = remote.Settings.get_settings_for_edit(project=project, domain=domain)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove the Abort?

Copy link
Copy Markdown
Contributor Author

@afbrock afbrock May 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When dogfood was misconfigured i actually got an exception while trying to test, and this re-throwing of an error hides the exception. The exception gets displayed with less noise if there isnt a re-throw.
what it says is that during the handling of the exception, another error was thrown - so you get two stacks, and it isnt clear that they have anything to do with each other.

@kumare3
Copy link
Copy Markdown
Contributor

kumare3 commented May 28, 2026

you will have to signoff on dco and also make fmt

@afbrock afbrock force-pushed the main branch 4 times, most recently from cf12959 to a56ee1a Compare May 28, 2026 18:56
… maps

The label setting changed types from string list to map, and was the only
instance of a string list.  This change removes the unused type.  It also
improves how maps display entries from different scopes.  Each entry is
displayed on its own line with a comment as to its source scope.

Signed-off-by: Adam Brock <adam@union.ai>
@kumare3 kumare3 merged commit 93bdde1 into flyteorg:main May 29, 2026
39 checks passed
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