Skip to content

Commit

Permalink
[docs-beta] configuring assets tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sryza committed Aug 27, 2024
1 parent 0cd2bfd commit 82da205
Showing 1 changed file with 7 additions and 8 deletions.
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

0 comments on commit 82da205

Please sign in to comment.