[IMPLEMENTED] Enrich not working as expected

I have…

  • Read the following guideline: Troubleshooting and Support | Squidex. I understand that my support request might get deleted if I do not follow the guideline.
  • Used code blocks with ``` to format my code examples like JSON or logs properly.

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • Bug report
  • Performance issue
  • Documentation issue or request

Current behavior

  • I created a schema, added a few records to the content, then updated the schema with a new field with default data. When I called ./sq contents enrich-defaults schema_a -u, the data was not updated in the Squidex.

Expected behavior

  • Data should be updated on the UI after calling the enrich-defaults command via CLI.

Minimal reproduction of the problem

  1. Create schema Item.
  2. Add content to the Item schema.
  3. Update the schema with a new field with a default value.
  4. Call enrich-defaults command via CLI.

Environment

App Name:

  • Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Version: 7.13

Browser:

  • Chrome (desktop)
  • Chrome (Android)
  • Chrome (iOS)
  • Firefox
  • Safari (desktop)
  • Safari (iOS)
  • IE
  • Edge

Others:
Nothing

I finally found the problem.

In the API there is a dedicated setting to ignore required fields. This was a big difference between my tests and your tests. I don’t remember the reason and details.

I can add an additional parameter to the API to change that, because I don’t want to change the existing the behavior without knowing the details of the decision making.

Would be nice add additional parameter, so could you please ping me when fix will be ready

Thanks, I really appreciate it

Hi, Could you please ping me when additional parameter was add?

I have pushed it to master and released new CLI version.

Amazing, thanks, I’ll check

1 Like