Skip to content
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

[Feature Request] add command to forcefully sync a field in case project.yaml doesn't pick it up correctly #4126

Closed
RaederDev opened this issue Apr 11, 2019 · 4 comments
Labels
enhancement improvements to existing features project config 🐫 features related to Project config

Comments

@RaederDev
Copy link

I'd like to propose a craft CLI command that can be used to force-sync a project.yaml field. We sometimes run into issues where a newly added field isn't being picked up by craft. It would be really useful if you could force craft to sync those fields by specifying a field handle.

./craft force-sync <handle>

Something like that.

@andris-sevcenko
Copy link
Contributor

We’re exploring the option of forcing Craft treat every second-level entry as changed, forcing a re-save. So, yeah, sounds good to me! That should help alleviate some of the bugs left over from a mishap when syncing.

@andris-sevcenko
Copy link
Contributor

To clarify - adding an option to do that when syncing via CLI.

@brandonkelly brandonkelly added project config 🐫 features related to Project config enhancement improvements to existing features labels Apr 11, 2019
@andris-sevcenko
Copy link
Contributor

andris-sevcenko commented Apr 16, 2019

We've released Craft 3.1.23 with the possibility to do ./craft project-config/sync --force, which would forcibly sync the project.yaml file to already-saved entities.

It ended being unfeasible at the time to add the chance to force-sync just a single path because project config does not yet support delta updates to the serialized config.

The --force option should solve your issue, though.

@ryanpcmcquen
Copy link

@N0ps32, I have found this to be useful when I have syncing issues: #4465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features project config 🐫 features related to Project config
Projects
None yet
Development

No branches or pull requests

4 participants