-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Allow changing Task States Colors #9520
Conversation
Once the PR is approved, I will add some docs on changing colors |
Hi @kaxil thanks for your work on this. Quick question from your notes I'm not seeing how to make a colorblind friendly UI here though as a user configuration. If we just have local_configuration, is the idea that we just have this configurable for the webserver for everyone. I thought it was to make it configurable at a per person level. |
Hey, yes this PR won't allow per-user change. It would only allow per deployment change. I wanted to address custom colors per deployment for 1.10.11 and we can take a look at per-user change at a later stage (maybe for 2.0) |
I see makes sense. The colors were hardcoded up to this point and weren't customizable at all - just want to make sure that my understanding is correct. |
airflow/www/views.py
Outdated
@@ -336,6 +337,7 @@ def get_int_arg(value, default=0): | |||
|
|||
state_color_mapping = State.state_color.copy() | |||
state_color_mapping["null"] = state_color_mapping.pop(None) | |||
state_color_mapping.update(STATE_COLORS) |
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.
Isn't this already done from https://github.com/apache/airflow/pull/9520/files#diff-e198cdb4d2a7b4801616a067e6cbd82eR80
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.
Updated
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.
in f9601c2
Rebased on latest master |
Happy with this now @kaxil? |
Yup |
Thanks for this change! |
(cherry picked from commit e1108d4)
Feature was added in apache#9520
(cherry picked from commit e1108d4)
Feature was added in apache#9520 (cherry picked from commit 65855e5)
Feature was added in apache/airflow#9520 (cherry picked from commit 65855e558f9b070004ba817e8cf94fd834d2a67a) GitOrigin-RevId: 1303b858ea6b6bd545b97e6e3ec69614f69d2dd4
Feature was added in apache/airflow#9520 (cherry picked from commit 65855e558f9b070004ba817e8cf94fd834d2a67a) GitOrigin-RevId: 1303b858ea6b6bd545b97e6e3ec69614f69d2dd4
Feature was added in apache/airflow#9520 (cherry picked from commit 65855e558f9b070004ba817e8cf94fd834d2a67a) GitOrigin-RevId: 1303b858ea6b6bd545b97e6e3ec69614f69d2dd4
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
Feature was added in apache/airflow#9520 GitOrigin-RevId: 65855e558f9b070004ba817e8cf94fd834d2a67a
closes #7843
The main purpose of this PR is to allow Colorblind Friendly UI
Stock Screenshots:
Steps to change colors:
Create
airflow_local_settings.py
file and put in on PYTHONPATH. (example put that file under$AIRFLOW_HOME/config/airflow_local_settings.py
with the following contents:Screenshots with the above changes:
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.