Skip to content

Can Delete on Task Instances permission is required to clear task #34092

@Raul824

Description

@Raul824

Apache Airflow version

Other Airflow 2 version (please specify below)

What happened

I was changing the roles to remove all delete access. But as soon as I remove permission "Can Delete on Task Instances" clear task takes to a blank page.

Shouldn't clear task access work without Delete access?

What you think should happen instead

Can Delete Task Instance should not affect clear task access.

How to reproduce

Copy the Op role and remove all Can Delete and assign that role to a user.
That user will not be able to clear task instance now.
add "Can Delete on Task Instances" permission to the role and user will now have access to clear task instances page.

Operating System

Redhat 8

Versions of Apache Airflow Providers

2.6.1

Deployment

Docker-Compose

Deployment details

airflow 2.6.1 running on Docker with postgres 13 and pgbouncer.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions