#3412 Add file_extension, enable_legacy_filename fields to BlobType
Pull request opened by
ddl-rliu
Upstream
#3406
Tracking issue
Closes
flyteorg/flyte#7024
Why are the changes needed?
What changes were proposed in this pull request?
Add file_extension, enable_legacy_filename fields to BlobType. Add annotation "FileDownloadConfig".
The annotation "FileDownloadConfig" is used to annotate a FlyteFile when we want to download the file with a specific extension. For example,
# ContainerTask
def t1(file: Annotated[FlyteFile, FileDownloadConfig(file_extension="csv")]):
... # copilot downloads the file to e.g. /inputs/file.csv
versus...
def t1(file: FlyteFile["csv"]):
... # copilot downloads the file to e.g. /inputs/file
Under the hood, this sets
file_extension, enable_legacy_filename
in BlobType, and depends on
flyteorg/flyte#7009
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Docs link
flyteorg/flytekit