Skip to content

Add __repr__ methods to serialized classes for better debugging#55860

Merged
kaxil merged 1 commit intoapache:mainfrom
astronomer:add-repr-s10n
Sep 19, 2025
Merged

Add __repr__ methods to serialized classes for better debugging#55860
kaxil merged 1 commit intoapache:mainfrom
astronomer:add-repr-s10n

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Sep 18, 2025

Add descriptive string representations to all serialized classes:

  • SerializedBaseOperator: <SerializedTask(task_type): task_id>
  • SerializedDAG: <SerializedDAG: dag_id>
  • SerializedTaskGroup: <SerializedTaskGroup: group_id>
  • SerializedMappedTaskGroup: <SerializedMappedTaskGroup: group_id>
  • SerializedMappedOperator: <SerializedMappedTask(task_type): task_id>

These representations align with SDK patterns where available and provide consistent, helpful output for debugging and logging. The 'Serialized' prefix clearly distinguishes server-side objects from SDK objects.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Add descriptive string representations to all serialized classes:
- SerializedBaseOperator: <Task(task_type): task_id>
- SerializedDAG: <SerializedDAG: dag_id>
- SerializedTaskGroup: <SerializedTaskGroup: group_id>
- SerializedMappedTaskGroup: <SerializedMappedTaskGroup: group_id>
- MappedOperator: <Mapped(task_type): task_id>

These representations align with SDK patterns where available and provide
consistent, helpful output for debugging and logging. The 'Serialized'
prefix clearly distinguishes server-side objects from SDK objects.
@kaxil kaxil merged commit ac76cee into apache:main Sep 19, 2025
61 checks passed
@kaxil kaxil deleted the add-repr-s10n branch September 19, 2025 00:14
kaxil added a commit that referenced this pull request Sep 19, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Sep 30, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 1, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 2, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 3, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 4, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 5, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 5, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 7, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 8, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 9, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 10, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 11, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 12, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 14, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 15, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 17, 2025
abdulrahman305 bot pushed a commit to qenex-ai/airflow that referenced this pull request Oct 19, 2025
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.

2 participants