This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-7-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit a887f92f698addad464ae2b805862981ea957e1f
Author: fritz-astronomer <[email protected]>
AuthorDate: Sat Aug 5 15:30:07 2023 -0400

    Add links to DAGRun / DAG / Task in templates-ref.rst (#33013)
    
    * Revert "Revert "Add links to DAGRun / DAG / Task in templates-ref.rst 
(#32245)" (#33010)"
    
    This reverts commit 9fb26db0e766d22cd67d0ed1124dd97a91b519bd.
    
    * PR feedback
    
    * correct class references in Templates doc
    
    * use short name for model link
    
    (cherry picked from commit 7dc01d8d7f3ed56f725974640dc5bd2ef7e6e807)
---
 docs/apache-airflow/templates-ref.rst | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/apache-airflow/templates-ref.rst 
b/docs/apache-airflow/templates-ref.rst
index 34ba7d2ece..bfb3cad9eb 100644
--- a/docs/apache-airflow/templates-ref.rst
+++ b/docs/apache-airflow/templates-ref.rst
@@ -47,16 +47,16 @@ Variable                                    Type            
      Description
                                                                   | Example: 
``20180101T000000+0000``.
 ``{{ ts_nodash }}``                         str                   | Same as 
``{{ dag_run.logical_date | ts_nodash }}``.
                                                                   | Example: 
``20180101T000000``.
-``{{ prev_data_interval_start_success }}``  `pendulum.DateTime`_  | Start of 
the data interval of the prior successful DAG run.
+``{{ prev_data_interval_start_success }}``  `pendulum.DateTime`_  | Start of 
the data interval of the prior successful 
:class:`~airflow.models.dagrun.DagRun`.
                                             | ``None``            | Added in 
version 2.2.
-``{{ prev_data_interval_end_success }}``    `pendulum.DateTime`_  | End of the 
data interval of the prior successful DAG run.
+``{{ prev_data_interval_end_success }}``    `pendulum.DateTime`_  | End of the 
data interval of the prior successful :class:`~airflow.models.dagrun.DagRun`.
                                             | ``None``            | Added in 
version 2.2.
-``{{ prev_start_date_success }}``           `pendulum.DateTime`_  Start date 
from prior successful DAG run (if available).
+``{{ prev_start_date_success }}``           `pendulum.DateTime`_  Start date 
from prior successful :class:`~airflow.models.dagrun.DagRun` (if available).
                                             | ``None``
-``{{ dag }}``                               DAG                   The 
currently running DAG.
-``{{ task }}``                              BaseOperator          | The 
currently running task.
+``{{ dag }}``                               DAG                   The 
currently running :class:`~airflow.models.dag.DAG`. You can read more about 
DAGs in :doc:`DAGs <core-concepts/dags>`.
+``{{ task }}``                              BaseOperator          | The 
currently running :class:`~airflow.models.baseoperator.BaseOperator`. You can 
read more about Tasks in :doc:`core-concepts/operators`
 ``{{ macros }}``                                                  | A 
reference to the macros package. See Macros_ below.
-``{{ task_instance }}``                     TaskInstance          The 
currently running task instance.
+``{{ task_instance }}``                     TaskInstance          The 
currently running :class:`~airflow.models.taskinstance.TaskInstance`.
 ``{{ ti }}``                                TaskInstance          Same as ``{{ 
task_instance }}``.
 ``{{ params }}``                            dict[str, Any]        | The 
user-defined params. This can be overridden by the mapping
                                                                   | passed to 
``trigger_dag -c`` if ``dag_run_conf_overrides_params``
@@ -68,8 +68,8 @@ Variable                                    Type              
    Description
                                                                   | 
``{dag_id}__{task_id}__{ds_nodash}``.
 ``{{ conf }}``                              AirflowConfigParser   | The full 
configuration object representing the content of your
                                                                   | 
``airflow.cfg``. See :mod:`airflow.configuration.conf`.
-``{{ run_id }}``                            str                   The 
currently running DAG run's run ID.
-``{{ dag_run }}``                           DagRun                The 
currently running DAG run.
+``{{ run_id }}``                            str                   The 
currently running :class:`~airflow.models.dagrun.DagRun` run ID.
+``{{ dag_run }}``                           DagRun                The 
currently running :class:`~airflow.models.dagrun.DagRun`.
 ``{{ test_mode }}``                         bool                  Whether the 
task instance was run by the ``airflow test`` CLI.
 ``{{ expanded_ti_count }}``                 int | ``None``        | Number of 
task instances that a mapped task was expanded into. If
                                                                   | the 
current task is not mapped, this should be ``None``.

Reply via email to