Skip to content

Unnecessary documentId in config sync causing lots off diffs #190

@radoslavzeman

Description

@radoslavzeman

Bug report

Describe the bug

After migrating to Strapi v5 and strapi-plugin-config-sync v3, the plugin started to export documentIds all over the configs.
The problem is that they are often changed, even tho nothing else changes in the config file and it's causing lots of diffs in git and it's hard to check the changes. The changes happen when more people are working on the same strapi/repo. But I'm not sure this is the only way.

Why are documentIds exported, what are they for in configs and why are they changing?

Steps to reproduce the behavior

Try to make some changes in config (e.g. in Configure View) and commit them on two different machines.

Expected behavior

Only real changes are reflected in config files. No documentIds are exported in config files.

Screenshots

For example, simple config file for EN locale:

Image

But also config files witch loads of changed documentIds:

Image

Code snippets

If applicable, add code samples to help explain your problem.

System

  • Node.js version: 20.19.0
  • NPM version: 10.8.1
  • Strapi version: v5.18.0
  • Plugin version: 3.1.2
  • Database: PostgreSQL
  • Operating system: macOS, Windows, Linux

Additional context

I know these are not exact reproduction steps, but it happens during standard development process when people are fetching new commits from master, making PRs etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions