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

Fix external elasticsearch logs link #16357

Merged
merged 2 commits into from
Jun 15, 2021
Merged

Conversation

jedcunningham
Copy link
Member

During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
[elasticsearch] frontend is set.

This should be a safe change as nothing is currently using ExternalLoggingMixin.

In 1.10.x, the external links were being toggled by the following, which is why we can't simply add ExternalLoggingMixin into the ElasticsearchTaskHandler and need the extra supports_external_link property:

external_logs = conf.get('elasticsearch', 'frontend')

show_external_logs=bool(external_logs))

During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
`[elasticsearch] frontend` is set.
@jedcunningham jedcunningham requested a review from kaxil June 14, 2021 23:52
@kaxil kaxil merged commit e31e515 into apache:main Jun 15, 2021
@kaxil kaxil deleted the elasticsearch_link branch June 15, 2021 15:40
@ianlofs
Copy link

ianlofs commented Jun 17, 2021

Thank you for fixing this @jedcunningham!

@jedcunningham jedcunningham added this to the Airflow 2.1.3 milestone Aug 10, 2021
jhtimmins pushed a commit that referenced this pull request Aug 12, 2021
During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
`[elasticsearch] frontend` is set.

(cherry picked from commit e31e515)
kaxil pushed a commit that referenced this pull request Aug 13, 2021
During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
`[elasticsearch] frontend` is set.

(cherry picked from commit e31e515)
kaxil pushed a commit that referenced this pull request Aug 13, 2021
During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
`[elasticsearch] frontend` is set.

(cherry picked from commit e31e515)
kaxil pushed a commit that referenced this pull request Aug 14, 2021
During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
`[elasticsearch] frontend` is set.

(cherry picked from commit e31e515)
kaxil pushed a commit that referenced this pull request Aug 17, 2021
During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
`[elasticsearch] frontend` is set.

(cherry picked from commit e31e515)
jhtimmins pushed a commit that referenced this pull request Aug 17, 2021
During the 2.0 upgrade, the external log link when using elasticsearch
remote logs was broken. This fixes it, including it only being shown if
`[elasticsearch] frontend` is set.

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

Successfully merging this pull request may close these issues.

3 participants