[SOLVED] Does not update 'partitioning' field in JSON schema

Hi,

I have see an ‘old’ issue about the fact that the JSON schema is not updated for some fields.
( https://support.squidex.io/t/solved-does-not-update-pattern-field-in-json-schema/1955 )
I have try the following:

{
    ...

    "fields": [

       ....

        {
            "name": "BackgroundImage",
            "properties": {
                "fieldType": "Assets"
            },
            "partitioning": "language"
        }
    ]
}

Then I try to remove the localization from the ‘asset’ field ‘BackgroundImage’, but the change is not detected at all.

Noticed that I’m testing Squidex and using the last docker image.

Thanks

I need a concrete example and also the information from the bug template such as version number.

If you change the localization of the fields the field is recreated and old data might get lost. Therefore you have to toggle the checkbox.

Thx,

Yes I have try the “recreate” option, but it does not change anything !

For docker, I use the “latest” tag (in theory should be 4.4.0 ?)

You need the full JSON ?

{
    "properties": {},
    "scripts": {},
    "fieldsInLists": [],
    "fieldsInReferences": [],
    "fields": [
        {
            "name": "Title",
            "properties": {
                "fieldType": "String",
                "editor": "Input"
            },
            "partitioning": "language"
        },
        {
            "name": "SubTitle",
            "properties": {
                "fieldType": "String",
                "editor": "Input"
            },
            "partitioning": "language"
        },
        {
            "name": "Content",
            "properties": {
                "fieldType": "String",
                "editor": "Input"
            },
            "partitioning": "language"
        },
        {
            "name": "BackgroundImage",
            "properties": {
                "fieldType": "Assets"
            },
            "partitioning": "language"
        }
    ],
    "isPublished": true
}
1 Like

Please format the code examples properly, it is mentioned in the template.

You said “then”, therefore i thought you are talking about other properties as well.

1 Like

Done. Also I have update to version 4.4.0 and the error is still there.

Okay, I will have a look.

1 Like

I have fixed it. The problem was just the checkbox.

1 Like

Just for my information, I suppose you don’t create a new docker image at each fix :stuck_out_tongue:

So, when does this fix will be available then ?

Thx

I do not create the image, but the build server does :wink: … it is the current dev tag.

Thanks, so I used the dev-4444 but the problem persist :frowning:

It worked for me with the checkbox checked.

Here is what I do,
1 - I remove the ‘partitioning’ property
2 - I check recreate

On the right, it says “nothing has changed” :frowning:

What was the partitioning before? I am not 100% sure anymore how the backend behaves and have not tested your case but partitioning is a required property, so you can change it to invariant.

But anyway, the json view is only an additional option to manage fields, nothing important.

it was : “partitioning”: “language”

I wish a non-localizable image, the same image/asset for any language

I tried it again and it worked totally fine locally. Either the build is broken or you update of the docker instance has not worked.

Hi,

I tried with the last version and got a server error.

I have first

  • delete the “Title” with the “fields tab”
  • with the “JSon tab” I change “SubTitle” to “Title” and remove the “partitioning” from the image.

Sorry :frowning:

Please check the logs and and send me the error.

Hum, I checked… and the log level is always “information” ! I don’t see any error !

Reproduced and fix pushed (but build is pending ofc)

https://build.squidex.io/Squidex/squidex/4462

1 Like