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 2022/05/11 13:11:15 UTC
[GitHub] [airflow] dstandish commented on a diff in pull request #23635: Simplify flash message for _airflow_moved tables
dstandish commented on code in PR #23635:
URL: https://github.com/apache/airflow/pull/23635#discussion_r870283262
##########
airflow/www/templates/airflow/dags.html:
##########
@@ -80,15 +80,27 @@
{% for m in dashboard_alerts %}
{{ show_message(m.message, m.category) }}
{% endfor %}
- {% for original_table_name, moved_table_name in migration_moved_data_alerts %}
- {% call show_message(category='error', dismissible=false) %}
- Airflow found incompatible data in the <code>{{ original_table_name }}</code> table in the
- metadatabase, and has moved them to <code>{{ moved_table_name }}</code> during the database migration
- to upgrade. Please inspect the moved data to decide whether you need to keep them, and manually drop
- the <code>{{ moved_table_name }}</code> table to dismiss this warning. Read more about it
+ {% if migration_moved_data_alerts %}
+ {% call show_message(category='warning', dismissible=false) %}
+ While upgrading the metadatabase, Airflow had to move some bad data in order to apply new constraints.
+ The moved data can be found in the following tables:<br>
+ <table>
+ <tr>
+ <th style="padding-right:10px">Source table</th>
+ <th>Moved data</th>
Review Comment:
```suggestion
<th>Table with moved rows</th>
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org