-
Notifications
You must be signed in to change notification settings - Fork 0
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
Does not work with nested fields #4
Comments
I think I understand the issue. Basically I don't interpret the nested fields correctly (because it uses
So this is what you really need right? I'll see what I can do. It might be a while, but I don't mind you nagging me if I seem to have forgotten about it. |
Correct.
Yes that's the blocking point; and also there should also be a way to configure this deserialization behaviour in a single place instead of in two different controllers ( |
Okay :)
…On Sun, 3 Nov 2019, 15:24 Sébastien Dubois, ***@***.***> wrote:
Basically I don't interpret the nested fields correctly (because it uses
field_attributes instead of field)?
Correct.
So this is what you really need right?
Yes that's the blocking point; and also there should also be a way to
configure this deserialization behaviour in a single place instead of in
two different controllers (Admin::PostsController and
Admin::Post::TranslationsController).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=AAO7SWCBTJUFROANIP3OCTLQR3NJRA5CNFSM4JHMVPR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5TXXY#issuecomment-549141471>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO7SWBS2EEKX4B3VZUYHOLQR3NJRANCNFSM4JHMVPRQ>
.
|
This gem looks helpful to solve the issue described in codica2/administrate-field-jsonb#1, thanks!
However it does not seem to support nested fields. I have a Post dashboard configured as follows (schema was configured by globalize):
The aim is to apply
deserialize_json_fields
to thetags
field of the post translation.NB:
NestedHasMany
is a modification ofField::NestedHasMany
to support namespaced models, as shown here.There are two problems:
deserialize_json_fields
on the controller, but bothAdmin::Post::TranslationsController
andAdmin::PostsController
will potentially need to handle the submission oftags
(respectively either being a direct property of the resource associated to the controller, or as a property of the nested sub-resource through the has-many relation)tags
, but on the form'stranslations_attributes
value which looks like this:The text was updated successfully, but these errors were encountered: