Skip to content

Commit

Permalink
Adds Cloudflare R2 kinds tag (#27911)
Browse files Browse the repository at this point in the history
## Summary & Motivation

Resolves #27882.

## How I Tested These Changes

Built UI locally and ran example snippet:

```
import dagster as dg


@dg.asset(kinds={"r2"})
def asset():
    pass


defs = dg.Definitions(assets=[asset])
```

<img width="434" alt="image"
src="https://github.com/user-attachments/assets/3b151767-475d-477f-8722-037c78fcb569"
/>


## Changelog

- [ui] adds kinds tag for Cloudflare R2
  • Loading branch information
cmpadden authored Feb 19, 2025
1 parent 1f06938 commit b818758
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js_modules/dagster-ui/packages/ui-core/src/graph/OpTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ import python from './kindtag-images/tool-python-color.svg';
import pytorch from './kindtag-images/tool-pytorch-color.svg';
import pytorchlightning from './kindtag-images/tool-pytorchlightning-color.svg';
import r from './kindtag-images/tool-r-color.svg';
import r2 from './kindtag-images/tool-r2-color.svg';
import rabbitmq from './kindtag-images/tool-rabbitmq-color.svg';
import ray from './kindtag-images/tool-ray-color.svg';
import react from './kindtag-images/tool-react-color.svg';
Expand Down Expand Up @@ -335,6 +336,7 @@ export type KnownTagType =
| 'papertrail'
| 'plural'
| 'prefect'
| 'r2'
| 'react'
| 'reddit'
| 'redshift'
Expand Down Expand Up @@ -740,6 +742,10 @@ export const KNOWN_TAGS: Record<KnownTagType, KnownTag> = {
content: 'Ray',
blackAndWhite: true,
},
r2: {
icon: r2,
content: 'R2',
},
axioma: {
icon: axioma,
content: 'Axioma',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit b818758

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-nj37r78oy-elementl.vercel.app

Built with commit b818758.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.