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

EXT-1434: Removing data.language. #148

Merged
merged 8 commits into from
Apr 27, 2023

Conversation

johannes-lindgren
Copy link
Contributor

@johannes-lindgren johannes-lindgren commented Apr 26, 2023

What?

Removing data.language from the field plugin data.

This is a breaking change that requires the library version to be bumped, which in turn requires the templates to be updated and the CLI version to be bumped.

As a replacement of data.language, use data.story.lang.

Why?

When introduced, the thought was that this property contains the language of the Storyblok application as configured by the user's preferences. Instead, it turns out that this contains the content language. As such, use data.story.lang as a replacement.

@vercel
Copy link

vercel bot commented Apr 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
field-plugin-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2023 8:38am

@johannes-lindgren johannes-lindgren marked this pull request as ready for review April 26, 2023 09:13
@johannes-lindgren johannes-lindgren requested review from a team, BibiSebi and eunjae-lee and removed request for a team April 26, 2023 09:13
@johannes-lindgren
Copy link
Contributor Author

@eunjae-lee @BibiSebi the build fails. I guess this is because yarn install is trying to resolve the @storyblok/field-plugin version 0.0.1-alpha.3 locally before the library has been built?

@eunjae-lee
Copy link
Contributor

@eunjae-lee @BibiSebi the build fails. I guess this is because yarn install is trying to resolve the @storyblok/field-plugin version 0.0.1-alpha.3 locally before the library has been built?

Yeah can you revert the version changes? Let's just remove data.language in this PR, and deploy the library and the CLI separately. Let me guide you through that.

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

The content itself looks good except for the versions to be reverted

# Conflicts:
#	packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StoryData.test.ts
Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@johannes-lindgren johannes-lindgren merged commit 9d68655 into main Apr 27, 2023
11 checks passed
@johannes-lindgren johannes-lindgren deleted the EXT-1434-remove-data-language branch April 27, 2023 09:26
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

Successfully merging this pull request may close these issues.

None yet

3 participants