Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cli option to update workflow #98

Merged
merged 4 commits into from
Apr 3, 2020
Merged

Add cli option to update workflow #98

merged 4 commits into from
Apr 3, 2020

Conversation

katrogan
Copy link
Contributor

@katrogan katrogan commented Apr 2, 2020

TL;DR

This change allows a user to update workflow state using the flyte-cli

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Tested on flyte staging and checked on portal that the state was correctly modified.

Tracking Issue

flyteorg/flyte#235

Follow-up issue

NA

"--state",
type=_click.Choice(["active", "archived"]),
required=True,
help="Whether or not to set a workflow as actively visible in the UI."
Copy link
Contributor

Choose a reason for hiding this comment

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

actively visible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

trying to tie it back to 'active'... i'll reword

Copy link
Contributor

Choose a reason for hiding this comment

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

We should say Ui/ cli. Default is active only

This updates the state of the workflow specified by the ID.
:param id: flytekit.models.core.identifier.Identifier id: The ID representing a given task.
:param int state: Enum value from flytekit.models.workflow.WorkflowState
:return:
Copy link
Contributor

Choose a reason for hiding this comment

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

if this passes the return type from raw, can you copy paste here too?

@katrogan katrogan merged commit 607222e into master Apr 3, 2020
katrogan added a commit that referenced this pull request Apr 3, 2020
max-hoffman pushed a commit to dolthub/flytekit that referenced this pull request May 11, 2021
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.

3 participants