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
ConditionalField plugin doesn't work with dato migration #58
Comments
Could it be that the API client automatically transforms |
We've faced the same issue today and I can confirm that eventually, it works with both The returned object I got back for
What happens after is really weird, going back to the UI and either refreshing the page or going to check (manually) in the settings if the plugin setup worked, I see the
|
Hi @arakoczy,
This is not possible with our node client. The creation of the plugin works only with the camelized key Try using this code:
Let me know :) I will close this issue for now, and re-open if not solved. |
Hello @souljuse, Couldn't find any other answer where this problem is discussed/solved. This is what I did to make things work, pay attention to the "targetFieldsApiKey" written in camelCase.
and the surprise is on DatoCMS directly where I can't see nothing, except in the request that there is the field "target_fields_api_key" written in snake case. Obviously, I'd like to point out that it works through the interface the field is transformed into "targetFieldsApiKey" and the behaviour is perfect after that, |
@Faxxiz we need more info to be able to reproduce.
|
v3.5.21, I think it's the latest one |
The latest version of |
Oh okay the legacy client is still written in all documentation pages, I wasn't aware we needed to stop using it. |
Where did you find those links exactly? We should correct them.. thanks! |
I took it from the people talking about the plugin here : https://community.datocms.com/t/conditional-fields-plugin-does-not-work-with-migrations/3570. If I'm not mistaking there is no documentation in the plugin so this is all I've got, and the request when I do it manually from the interface. And as they were using in the first line And as the legacy JS client is part of every page of the documentation, I didn't think it could fail. |
Updated the discussion on the forum, thanks! And the Docs offers the new client by default, but we'll add a deprecation notice for the legacy one! video1.mp4 |
I'm trying to run a migration with your plugin, the addon is being installed perfectly but somehow it won't implement the plugin to the specific
targetFieldsApiKey
.I've also tried manually adding it to dato and the addons was exactly the same as the code above.
Thanks in advanced!
ConditionalFields
The text was updated successfully, but these errors were encountered: