dagster-io / dagster

An orchestration platform for the development, production, and observation of data assets.
https://dagster.io
Apache License 2.0
11.69k stars 1.48k forks source link

Partitions Tab in Dagit: Provide ability to provide a more descriptive label besides the word "Partition" in Charts #4152

Open pybokeh opened 3 years ago

pybokeh commented 3 years ago

Hello! Since we can use non-time based partitions or general string labels for partitions, it would be nice to be able to pass in a "label" or "partition_label" parameter in the partitions definition so that we can provide a more descriptive label to the accompanying chart titles and x-axis labels in the Partitions tab.

For example, let's say I have a pipeline that runs for each of my company's manufacturing plants which I have defined as partitions. I would like to be able to override or change the label "Partition" to something like "Plants" or "Plant Code". image

So the words "Partition" that I have enclosed in red rectangles, could instead show something like "Plant Code".

bengotow commented 3 years ago

Hey folks! Ahh this is a great idea @pybokeh - @sryza I think this is something we should likely support on the Python side? I think this also ties into a conversation we had earlier about non-time-series partition sets. If we had both a partition_label and a partition_is_non_series (?) attribute, I think we could do a better job in the UI. (Ideally I think we'd show a bar chart here and not a line chart if we knew the data wasn't a series!)

sryza commented 3 years ago

@bengotow - agreed. This will likely require a Python-side change before it can be implemented in Dagit.