Skip to content

"Mark state as..." button options grayed out #36219

Closed

Description

@internetcoffeephone

Apache Airflow version

2.7.3

If "Other Airflow 2 version" selected, which one?

No response

What happened?

Since a few versions ago, the button to mark a task state as success is grayed out when the task is in a success state. Conversely, whenever a task is in a failed state, the mark button as failed is grayed out.
Screenshot 2023-12-14 at 11 15 31

What you think should happen instead?

This is inconvenient. These buttons bring up another dialog where you may select past/future/downstream/upstream tasks. These tasks may not match the state of the task you currently have selected. Frequently it is useful to be able to set all downstream tasks of an already succeeded task to success.
Screenshot 2023-12-14 at 11 21 01

The current workaround is to first set the task to the opposite of the desired state, then to mark it as the desired state with added past/future/downstream/upstream tasks. This is clunky.

The buttons should not be grayed out depending on the current task state.

How to reproduce

Mark a task as success. Then try to do it again.

Operating System

n/a

Versions of Apache Airflow Providers

No response

Deployment

Other Docker-based deployment

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    area:UIRelated to UI/UX. For Frontend Developers.
    and removed
    needs-triagelabel for new issues that we didn't triage yet
    on Dec 14, 2023
  2. bbovenzi commented on Dec 14, 2023

    @bbovenzi
    Contributor

    Good call. This should be a one line change to just remove a disabled prop if you want to do it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.good first issuekind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions