You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/11 15:12:53 UTC

[GitHub] [airflow] KostyaEsmukov opened a new pull request #8252: RBAC ui: fix missing Y-axis labels with units in plots

KostyaEsmukov opened a new pull request #8252: RBAC ui: fix missing Y-axis labels with units in plots
URL: https://github.com/apache/airflow/pull/8252
 
 
   In RBAC ui there's a bug in the Task Duration and Landing Times plots: Y-axis label (with the time units) is not visible:
   
   <img width="946" alt="Screenshot 2020-04-11 at 17 12 34" src="https://user-images.githubusercontent.com/2418596/79047325-92160080-7c1e-11ea-88ea-ebf18f303a7d.png">
   
   In the legacy flask-admin UI there's no such issue (don't mind the different data on the plots, these are two different installations):
   
   <img width="975" alt="Screenshot 2020-04-11 at 17 13 00" src="https://user-images.githubusercontent.com/2418596/79047329-96dab480-7c1e-11ea-81c5-9986f82e525f.png">
   
   (Notice that the `y`-offset in the object inspector is different).
   
   This PR fixes the issue by changing the offset, making it the same as it was in the legacy UI:
   
   <img width="1011" alt="Screenshot 2020-04-11 at 17 12 48" src="https://user-images.githubusercontent.com/2418596/79047327-95a98780-7c1e-11ea-917b-27dba08c38f4.png">
   
   I suppose the reason why this broke is that in flask-admin the `d3` js library is vendored and has not been updated since 2016: https://github.com/apache/airflow/commits/v1-10-test/airflow/www/static/d3.v3.min.js , but in RBAC a newer version of d3 is installed via package.json. Perhaps the interpretation of `axisLabelDistance` has changed in the newer versions of d3?
   
   I have tested this patch on Airflow 1.10.10. Didn't test on master yet, but I'm going to if I manage to get along with the breeze environment.
   
   
   ---
   Make sure to mark the boxes below before creating PR: [x]
   
   - [x] Description above provides context of the change
   - [ ] ~~Unit tests coverage for changes (not needed for documentation changes)~~
   - [x] Commits follow "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
   - [ ] ~~Relevant documentation is updated including usage instructions.~~
   - [ ] I will engage committers as explained in [Contribution Workflow Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
   
   ---
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   Read the [Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines) for more information.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow] KostyaEsmukov commented on issue #8252: RBAC ui: fix missing Y-axis labels with units in plots

Posted by GitBox <gi...@apache.org>.
KostyaEsmukov commented on issue #8252: RBAC ui: fix missing Y-axis labels with units in plots
URL: https://github.com/apache/airflow/pull/8252#issuecomment-612447155
 
 
   Tested on master with Breeze.
   
   master branch (no units):
   <img width="1285" alt="Screenshot 2020-04-11 at 18 28 35" src="https://user-images.githubusercontent.com/2418596/79047926-52511800-7c22-11ea-9b1c-f22407fe684d.png">
   
   This branch (units are visible):
   <img width="1268" alt="Screenshot 2020-04-11 at 18 25 23" src="https://user-images.githubusercontent.com/2418596/79047921-4f562780-7c22-11ea-9103-2e3ab8b4e239.png">
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow] boring-cyborg[bot] commented on issue #8252: RBAC ui: fix missing Y-axis labels with units in plots

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #8252: RBAC ui: fix missing Y-axis labels with units in plots
URL: https://github.com/apache/airflow/pull/8252#issuecomment-612442999
 
 
   Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
   Here are some useful points:
   - Pay attention to the quality of your code (flake8, pylint and type annotations). Our [pre-commits]( https://github.com/apache/airflow/blob/master/STATIC_CODE_CHECKS.rst#prerequisites-for-pre-commit-hooks) will help you with that.
   - In case of a new feature add useful documentation (in docstrings or in `docs/` directory). Adding a new operator? Check this short [guide](https://github.com/apache/airflow/blob/master/docs/howto/custom-operator.rst) Consider adding an example DAG that shows how users should use it.
   - Consider using [Breeze environment](https://github.com/apache/airflow/blob/master/BREEZE.rst) for testing locally, itโ€™s a heavy docker but it ships with a working Airflow and a lot of integrations.
   - Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
   - Be sure to read the [Airflow Coding style]( https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#coding-style-and-best-practices).
   Apache Airflow is a community-driven project and together we are making it better ๐Ÿš€.
   In case of doubts contact the developers at:
   Mailing List: dev@airflow.apache.org
   Slack: https://apache-airflow-slack.herokuapp.com/
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow] kaxil merged pull request #8252: RBAC ui: fix missing Y-axis labels with units in plots

Posted by GitBox <gi...@apache.org>.
kaxil merged pull request #8252: RBAC ui: fix missing Y-axis labels with units in plots
URL: https://github.com/apache/airflow/pull/8252
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services