Skip to content

Toggle Wrap on DAG code page is broken #17047

@bartelemi

Description

@bartelemi

Apache Airflow version: apache/airflow:2.1.2-python3.9 and 2.1.0-python3.8

Environment:

  • Cloud provider or hardware configuration: Docker for Windows, AWS ECS
  • OS (e.g. from /etc/os-release): Windows 10, AWS ECS Fargate
  • Install tools: docker compose, ECS
  • Others: Web browsers: tested this on Chrome and Brave.

What happened:

The Toggle Wrap button on the DAG code page is not working.

What you expected to happen:

It should toggle between wrapped/unwrapped code blocks.

How to reproduce it:

  1. Spin up an airflow environment using the official docker compose file with DAG examples enabled.
  2. Open code page for any DAG that uses the [START xyz] [END xyz] blocks in its source code.
  3. Click on the Toggle Wrap button in the top right corner of the code.

airflow@chrome

Additional remarks

This feature seems to be working totally fine on the TI logs, and by looking at the code they are re-using the same function.

Metadata

Metadata

Assignees

Labels

affected_version:2.1Issues Reported for 2.1area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions