tractr / directus-sync

A CLI tool for synchronizing the schema and configuration of Directus across various environments.
GNU General Public License v3.0
211 stars 8 forks source link

Project logo, public foreground and background #8

Closed scott-lucius-space closed 10 months ago

scott-lucius-space commented 10 months ago

Any suggestions on an easy way to null out specific fields via configuration?

Specifically looking at:

    "project_logo": null,
    "public_foreground": null,
    "public_background": null,

in the settings.json collection file which were in my case set to UUIDs from the media library. Or are you considering situations like this with the custom data backup you mentioned in Discord? Thanks for such a great tool!

EdouardDem commented 10 months ago

@scott-lucius-space Thank you. That's a good point. Ultimately I would like to also synchronise the assets referenced by the settngs. Meanwhile, we could just ignore these fields. There is no point to syncrhonise the values of the fields without the assets. I will push a quickfix to discard these 3 fields.

EdouardDem commented 10 months ago

Or are you considering situations like this with the custom data backup you mentioned in Discord?

Yes I'm working on an advanced configuration that will allow this.

EdouardDem commented 10 months ago

I've done a PR #11 . I will test this tomorrow morning and merge it.

EdouardDem commented 10 months ago

The PR has been merged