Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[components][docs] Add components doc on moving definitions into components #27721

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

benpankow
Copy link
Member

@benpankow benpankow commented Feb 10, 2025

Summary

Adds some brief, tested docs which migrate existing definitions module into a component.

One snag I hit here is that relative imports are not possible in a component folder, so it becomes pretty tricky to migrate any submodule which has multiple files.

https://dagster-docs-eanwjgfbu-elementl.vercel.app/guides/preview/components/migrating-definitions

Test Plan

See rendered docs, new test.

@benpankow benpankow requested a review from neverett as a code owner February 10, 2025 21:25
@benpankow
Copy link
Member Author

benpankow commented Feb 10, 2025

@benpankow benpankow changed the title [components][docs] Add components doc on moving definitions into componentw [components][docs] Add components doc on moving definitions into componentx Feb 10, 2025
@benpankow benpankow changed the title [components][docs] Add components doc on moving definitions into componentx [components][docs] Add components doc on moving definitions into components Feb 10, 2025
<CliInvocationExample path="docs_beta_snippets/docs_beta_snippets/guides/components/migrating-definitions/4-scaffold.txt" />


This creates a new folder in `my_existing_project/components/elt-definitions`, with a `component.yaml` file. This component is rather simple, it just points to a file which contains a `Definitions` object.
Copy link

Choose a reason for hiding this comment

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

Replace 'simple' with more specific descriptive language like 'straightforward' or describe its single responsibility, as per style guide requirements

Spotted by Graphite Reviewer (based on CI logs)

Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant