Skip to content
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

[AIRFLOW-5658] Fix broken links when running behind reverse proxy #6374

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

osule
Copy link
Contributor

@osule osule commented Oct 19, 2019

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title.
    • https://issues.apache.org/jira/browse/AIRFLOW-5658
    • In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.
    • In case you are proposing a fundamental code change, you need to create an Airflow Improvement Proposal (AIP).
    • In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

Description

  • Here are some details about my PR, including screenshots of any UI changes:

This fixes broken links to Configurations and Versions page when running Airflow behind reverse proxy.

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason: No fundamental changes to code.

Commits

  • My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does
    • If you implement backwards incompatible changes, please leave a note in the Updating.md so we can assign it to a appropriate release

@@ -3252,7 +3252,8 @@ tbody.collapse.in {
content: "\e223";
}
.glyphicon-duplicate:before {
content: "\e224";
font-family: "FontAwesome";
Copy link
Member

@mik-laj mik-laj Oct 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unrelated change. Can you revert it? We are working on full migration to font-awesome: #6254

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I wasn't aware this was taken care of already in a different PR

Configuration and Version links are broken when running airflow
behind reverse proxy.
Registering navigation links through their respective views
ensure that correct links are rendered in the menu.
@codecov-io
Copy link

Codecov Report

Merging #6374 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6374      +/-   ##
==========================================
+ Coverage   80.39%   80.41%   +0.01%     
==========================================
  Files         616      616              
  Lines       35804    35804              
==========================================
+ Hits        28783    28790       +7     
+ Misses       7021     7014       -7
Impacted Files Coverage Δ
airflow/www/app.py 96.49% <100%> (-0.07%) ⬇️
airflow/www/views.py 75.22% <100%> (+0.03%) ⬆️
airflow/models/taskinstance.py 93.79% <0%> (+0.5%) ⬆️
airflow/jobs/local_task_job.py 90% <0%> (+5%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c19a60c...011ad08. Read the comment docs.

@OmerJog
Copy link
Contributor

OmerJog commented Nov 5, 2019

Ready to merge?

@ashb ashb merged commit 5096fa3 into apache:master Nov 5, 2019
kaxil pushed a commit that referenced this pull request Dec 17, 2019
Configuration and Version links are broken when running airflow
behind reverse proxy.

Registering navigation links through their respective views
ensure that correct links are rendered in the menu.
ashb pushed a commit that referenced this pull request Dec 19, 2019
Configuration and Version links are broken when running airflow
behind reverse proxy.

Registering navigation links through their respective views
ensure that correct links are rendered in the menu.
kaxil pushed a commit to astronomer/airflow that referenced this pull request Jul 16, 2020
Configuration and Version links are broken when running airflow
behind reverse proxy.

Registering navigation links through their respective views
ensure that correct links are rendered in the menu.

(cherry picked from commit e77fa1a)
kaxil pushed a commit to astronomer/airflow that referenced this pull request Jul 16, 2020
Configuration and Version links are broken when running airflow
behind reverse proxy.

Registering navigation links through their respective views
ensure that correct links are rendered in the menu.

(cherry picked from commit e77fa1a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants