Skip to content

Disable rendering for doc_md#40522

Merged
ephraimbuddy merged 1 commit into
apache:mainfrom
astronomer:disable-rendering-for-doc-md
Jul 2, 2024
Merged

Disable rendering for doc_md#40522
ephraimbuddy merged 1 commit into
apache:mainfrom
astronomer:disable-rendering-for-doc-md

Conversation

@Lee-W

@Lee-W Lee-W commented Jul 1, 2024

Copy link
Copy Markdown
Member

^ 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 newsfragments.

@Lee-W Lee-W requested review from XD-DENG, ashb and kaxil as code owners July 1, 2024 14:56
Comment thread airflow/models/dag.py Outdated

@hussein-awala hussein-awala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMHO we should add a condition for file paths, like reading the file without render the content

if doc_md.endswith(".md"):
    return open(doc_md, "r").read()

with a try/except in case the file is not found.

@Lee-W Lee-W force-pushed the disable-rendering-for-doc-md branch from f6f0110 to e4d7197 Compare July 1, 2024 15:28
Comment thread airflow/models/dag.py Outdated

@amoghrajesh amoghrajesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Lee-W Lee-W force-pushed the disable-rendering-for-doc-md branch from e4d7197 to 90109c0 Compare July 2, 2024 02:49
@Lee-W Lee-W force-pushed the disable-rendering-for-doc-md branch from 90109c0 to 732a0e2 Compare July 2, 2024 03:42
@Lee-W

Lee-W commented Jul 2, 2024

Copy link
Copy Markdown
Member Author

Changed a test case after approval. I'm planning on merging this late too night. Please let me know if anyone want to take a look

@potiuk potiuk added this to the Airflow 2.9.3 milestone Jul 2, 2024
@potiuk

potiuk commented Jul 2, 2024

Copy link
Copy Markdown
Member

LGTM. Marked it as 2.9.3

@ephraimbuddy ephraimbuddy merged commit 8159f6e into apache:main Jul 2, 2024
@ephraimbuddy ephraimbuddy deleted the disable-rendering-for-doc-md branch July 2, 2024 09:04
utkarsharma2 pushed a commit that referenced this pull request Jul 2, 2024
ephraimbuddy pushed a commit that referenced this pull request Jul 2, 2024
@utkarsharma2 utkarsharma2 added the type:bug-fix Changelog: Bug Fixes label Jul 12, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants