Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented May 2, 2023

The Airflow models have been accidentally removed from the docs when #28300 was implemented. The whole models documentation have been removed accidentally, even if there were references to the actual classes and packages used as the models package was entirely excluded.

This PR fixes it by selectively including the models that should be included and by linking the package indexes directly in the public interface documentation.


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

@potiuk
Copy link
Member Author

potiuk commented May 2, 2023

References to the modules are added to the public interface docs now (to make sure they are linked to from somewhere):

image

And they have API generated:

image

I hand-picked those models that are truly public:

    "baseoperator.py",
    "connection.py",
    "dag.py",
    "dagbag.py",
    "param.py",
    "taskinstance.py",
    "variable.py",
    "xcom.py",

The Airflow models have been accidentally removed from the docs
when apache#28300 was implemented. The whole models documentation have
been removed accidentally, even if there were references to the
actual classes and packages used as the models package was
entirely excluded.

This PR fixes it by selectively including the models that should
be included and by linking the package indexes directly in
the public interface documentation.
@potiuk potiuk force-pushed the fix-missing-models-in-documentation branch from ede42de to 03762ee Compare May 2, 2023 17:26
@potiuk potiuk merged commit 6720a90 into apache:main May 2, 2023
@potiuk potiuk deleted the fix-missing-models-in-documentation branch May 2, 2023 17:50
ephraimbuddy pushed a commit that referenced this pull request May 2, 2023
The Airflow models have been accidentally removed from the docs
when #28300 was implemented. The whole models documentation have
been removed accidentally, even if there were references to the
actual classes and packages used as the models package was
entirely excluded.

This PR fixes it by selectively including the models that should
be included and by linking the package indexes directly in
the public interface documentation.

(cherry picked from commit 6720a90)
@ephraimbuddy ephraimbuddy added this to the Airflow 2.6.1 milestone May 8, 2023
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:documentation type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants