Skip to content

Examples: add measurement correction storyline DAGs (continuation of #61953) - #66257

Merged
potiuk merged 3 commits into
apache:mainfrom
andreahlert:pr-61953
May 10, 2026
Merged

potiuk merged 3 commits into
apache:mainfrom
andreahlert:pr-61953

Conversation

@andreahlert

@andreahlert andreahlert commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Picking up #61953, which @Chandanakt opened in February for the measurement correction example DAG. The PR was marked as draft over static-check failures and got auto-closed by the bot a few weeks later when she didn't come back. Since #52482 is part of the Examples Refurbish epic and the storyline is going to need this DAG eventually, brought it back, rebased on main, and got the checks green.

Her two commits are preserved. On top I added one commit with the fixes that were needed to ship: ruff import order and format, trailing newlines, and replacing the deprecated from airflow import DAG / airflow.operators.python imports with the current airflow.sdk.DAG / airflow.providers.standard.operators.python paths so the operator example actually loads on Airflow 3.x.

Both DAGs parse cleanly and prek is fully green now. The original PR never got a maintainer review so this would be the first pass.

@jscheffl since you've been driving the Examples Refurbish epic, would you mind taking a look?

closes: #52482


Was generative AI tooling used to co-author this PR?
  • Yes

Chandanakt and others added 3 commits May 2, 2026 05:12
Address the static-check failures that left the original PR in draft:
- replace from airflow import DAG / airflow.operators.python with the
  current locations (airflow.sdk.DAG and airflow.providers.standard.
  operators.python) so the operator example loads on Airflow 3.x;
- apply ruff import sort and ruff format fixes flagged by prek;
- ensure trailing newline on both files.

Signed-off-by: André Ahlert <[email protected]>
@potiuk
potiuk merged commit 0f98f88 into apache:main May 10, 2026
141 checks passed

@jscheffl jscheffl 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.

Oh sorry, this got lost in my review queue. Would have had some comments but now I am too late :-(

Aim was:

  • Take the new example also in the current Airflow docs as an example documentation
  • Remove and consolidate with this some other of the pre-existing artificial examples
  • Double-check best practices documentation and if all is in. E.g. this Dag is simple but misses Dag Markdown Documentation and Pydoc at the task level.

jscheffl pushed a commit that referenced this pull request May 11, 2026
…e Dags (#66707)

Follow-up to #66257 addressing review feedback from @jscheffl:

- Expand module docstrings on both example Dags with storyline, scope and
  no-external-dependencies notes.
- Add a Dag-level doc_md so the storyline shows up in the UI Dag details
  page.
- Add task-level docstrings explaining what each step does and how it
  would map to a production pipeline.
- Reference both example Dags from the Example Dag Review Checklist as
  canonical templates for new tutorial-style examples.

Signed-off-by: André Ahlert <[email protected]>
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.

New example along storyline: Measurement correction

4 participants