Timo Klockow
12/28/2022, 1:14 PMDefinition
object? Like with using the @repository
decorator?
In the source code I can see it gets a default value of name=SINGLETON_REPOSITORY_NAME
Can we override it somehow or is this only possible using the decorator?Peter Davidson
12/28/2022, 1:19 PMTimo Klockow
12/28/2022, 1:20 PMrepo.py
file and in dagit it is shown as repo.py
Peter Davidson
12/28/2022, 1:39 PMTimo Klockow
12/28/2022, 2:39 PMdaniel
12/28/2022, 3:19 PMrepo.py
you're describing is actually the name of the code location, not the repository. That name is configurable - what are you using to tell dagit which code locations to load? If it's a workspace.yaml file then there's a location_name key that you can useTimo Klockow
12/28/2022, 3:20 PMdaniel
12/28/2022, 3:20 PM# workspace.yaml
load_from:
- grpc_server:
host: localhost
port: 4266
location_name: "my_grpc_server"
Timo Klockow
12/29/2022, 9:09 AM@repository(
name=f'data_platform_repo_v{get_current_version()}_{STACK}',
same for Description.
Is it possible for you guys to add this to your roadmap to include name and description arguments to Definition?daniel
12/29/2022, 6:12 PMTimo Klockow
12/29/2022, 6:13 PMdaniel
12/29/2022, 6:13 PMTimo Klockow
12/29/2022, 6:17 PMschrockn
12/29/2022, 6:26 PM@repository
for this purpose. Additionally in the next dot release there is a function in dagster._core.definitions.definitions_class
called create_repository_using_definitions_args
that will allow you create a named repository using the definitions argumentsTimo Klockow
12/29/2022, 6:29 PMschrockn
12/29/2022, 6:33 PMTimo Klockow
12/29/2022, 6:40 PMdescription
is nowhere shown in Dagit