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

[docs-beta] tweaks to configuring assets page #23969

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions docs/docs-beta/docs/guides/data-modeling/configuring-assets.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Configuring assets via the UI
sidebar_label: Configuring assets via the UI
title: Configuring assets using the Dagster UI
sidebar_label: Configuring assets using the Dagster UI
sidebar_position: 50
---

Expand All @@ -10,9 +10,8 @@ Often, you will want to be able to tweak some parameters when materializing thes

## What you'll learn

- How to add configuration to your assets
- How to modify the configuration when launching a run
- When to use asset configuration vs. [resources](/docs/concepts/resources)
- How to make your assets configurable
- How to provide configuration when launching a run

---

Expand All @@ -28,13 +27,13 @@ To follow the steps in this guide, you'll need:

---

## Adding configuration to assets
## Making assets configurable

For an asset to be configurable, you must first define a schema that inherits from the Dagster `Config` class. For example, let's say we want to allow users to change the lookback time window for an asset:
For an asset to be configurable, you must first define a schema that inherits from the Dagster `Config` class. For example, let's say we want to allow users to change the lookback time window for the computation that materializes an asset:

<CodeExample filePath="guides/data-modeling/configuring-assets/config-schema.py" language="python" title="Adding configuration" />

## Modifying the configuration when launching a run
## Providing configuration when launching a run

When launching a run using Dagster's Launchpad, you can provide a run config file as YAML or JSON that overrides the default configuration for your asset:

Expand Down
Loading