Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

altText lost during dataset import #196

Open
sourceful-david opened this issue Nov 9, 2023 · 0 comments
Open

altText lost during dataset import #196

sourceful-david opened this issue Nov 9, 2023 · 0 comments

Comments

@sourceful-david
Copy link

Describe the bug
When running a dataset import the altText and description fields don't get preserved. The altText is definitely there in the tar.gz file we're importing - it can be seen in the assets.json file of the unpacked tar.gz.

Screenshot 2023-11-09 at 14 57 11

To Reproduce
Steps to reproduce the behavior:

  1. Run sanity dataset export [source-dataset] on a dataset that has image assets with altText
  2. Run sanity dataset import [file] [target-dataset] --replace
  3. Find the imported asset in the target dataset and notice that the altText has been lost in the image asset data.

Expected behavior
I know the media plugin is not part of the core sanity sdk but it is heavily promoted and it would be nice for dataset imports to preserve the altText field.

Screenshots

Plugin and environment information:

  • Plugin version 2.2.4
  • Sanity version @sanity/cli (global) 3.19.1 (latest: 3.19.2)
  • Operating system and version macOS 11.5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant