-
Notifications
You must be signed in to change notification settings - Fork 16.4k
[AIRFLOW-3959] [AIRFLOW-4026] Add filter by DAG tags #6489
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
Conversation
0d817ea to
a49807e
Compare
turbaszek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of tagging DAGs. I found few nits and also, shouldn't we add more tests?
|
@nuclearpinguin Since most of this change is UI related except checking the cookie part (and come to think of it - I should separate the filter part to another function and write a small test for it, will do), not sure which tests I should add. |
cef89e3 to
23eeb44
Compare
|
@zacharya19 There is an error with the test you added |
|
@OmerJog I don't get those errors locally, weird, checking this. |
f679e2b to
886935d
Compare
feluelle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zacharya19 This seems to be related to https://issues.apache.org/jira/browse/AIRFLOW-4026. WDYT? Should we display these tags as labels next to the dag_id ?
|
@feluelle Yes, look like it's also related to this task. I can add display the tags next to the dag_id, but what will happen if a dag has a lot of labels? |
Since you also added consistency for tags (in the db) I would mention that or remove the UI part of it. Like:
It could happen and I think it should be handled. I suggest to just wrap the line? |
|
Note that we also need to update the commit message to include both tickets so that both Jira tickets get linked to this PR. But it can also be done by the committer who merges it if the PR is already ready to be merged. But in your case I see you need to do some fixes first ;) |
fde98f6 to
cc18ee3
Compare
fc32758 to
d26ecd4
Compare
Hi @taxpon , as mentioned in http://airflow.apache.org/blog/airflow-1.10.8-1.10.9/#use-airflow-rbac-ui We are deprecating the old Flask-based UI and will be completely removed in the next major release. We backport all the security updates to the old UI but all the new features are only applied to RBAC UI. We had already removed the old flask-based from the Master for a long time now. |
|
@zacharya19 is there a way to control over the colours of the tags? |
|
Is there a way to auto generate permissions based on tags? e.g. currently only the it would be good if i can do something like thanks in advance! |
|
@JeffryMAC The colors right now are hardcoded, what will be the motivation of controlling the color? if you want, it will be possible to add a config param to change the color, like we do in the menu bar color for example. @xuejunteo That actually sounds like a great feature, I suggest you open a github issue and hopefully someone will pick it up (I'll try to get to it if I've time :)). |
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
We miss add some dag tag in apache/airflow#6489 This patch to add dag tag for all others GitOrigin-RevId: 941a070578bc7d9410715b89658548167352cc4d
Make sure you have checked all steps below.
Jira
Description
In order to allow multiple teams and users to use the same Airflow instance, I've added a tagging option for DAGs.
Each dag can have one, a few or none tags, then the user can filter in the homepage specific tags.
The filtering is saved in a cookie to save the user preferences.
Before:
After:

Tests
test_home_filter_tags in view tests, to check if the cookie is set properly.
Commits
Documentation