-
Notifications
You must be signed in to change notification settings - Fork 8
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
Skip alert type postsave during config sync and skip type of alert in block if not present #252
Conversation
Fix #251 During config sync operations, if creating a new alert banner type the visibility field will try to be created, even though that is part of config. This checks if the isSyncing flag is set and skips over the postSave actions as we assume they are part of the config being imported.
Hi Andy,
|
Thanks for testing @Adnan-cds |
Just the localgov_alert_banner module and its related configs. The themes got installed earlier as part of the localgov profile during a fresh site install. |
Just did a quick test and I noticed the type of alert field is installed after the block.
|
@Adnan-cds I've posted an additional fix to try and address this. Its beacuse the This should allow your import to work, and then we can consider the issues this has raised. |
…ent banners During import, and in times where the type_of_alert field has been deleted, the getCurrentBanners method will try to perform an entity query, but it needs to check the field is present before adding a sort.
7063c6d
to
da51533
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. Many thanks for the prompt fix :)
Fix #251
During config sync operations, if creating a new alert banner type the visibility field will try to be created, even though that is part of config.
This checks if the isSyncing flag is set and skips over the postSave actions as we assume they are part of the config being imported.