-
Notifications
You must be signed in to change notification settings - Fork 63
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
Use suppression of notifications if configured #611
base: v13/main
Are you sure you want to change the base?
Conversation
Hi, I think we didn't use this in the end because the suppressesion all notifications, including ones that Umbraco needs to fire for things to be updates (e.g models builder and examine and the nucache all use notifications to update things when you update content types and content) and that can cause unintended issues with some core things. I will double check this though - but i am fairy sure it messes up new syncs on clean sites, and when you change some of the fundimental stuff (like a doctype's properties. At the moment Notifications are batched* because the scope provide has a there is an option to let you push those notifications into a background thread (some docs). which means they still all happen but they are not in the UI thread so you can carry on with your buisness while umbraco sorts them out. The thing we didn't leave in (and maybe we should have?). Is the 'old' behavior where the items fire right after they are imported, this is no quicker - its probably slower - but you wouldn't just see a 'processing notification' message because it would happen with each media item. but i will double check, what the implications of this change are , i don't mind it being in but we probibly need to full understand what can break if you turn it on (only because we will get people raising issues, even if we warn them, and it would be good for us to know what they can be beforehand). *not all notifications are batched, Umbraco will fire some as they happen regardless of what you do with a Notification Publisher |
Hi @KevinJump, I had a deep dive into this when the "Processing Notifications (X)" was hanging on the My understanding is that the Based on that logic, I believe the With my change there will be no notifications published, both cancellable and ones fired off at the end of the scope, only if the I would completely agree that using this setting should be exercised with extreme caution and that end users should understand the risks of suppressing the notifications. Developers that have experience using the Alternatively could change this functionality to do one of the following:
|
…ations to not process.
based on your note above I've added a "SuppressNamedNotifications" option here, so you can choose a notification not to process. e.g "SuppressNamedNotifications": [ "ContentTreeChangeNotification" ] I am not sure if this now makes the full suppression option less attractive / redundant, we could always add a 'All' to this option ? intrested to know what you think ? Worth noting that suppressing "ContentTreeChangeNotification" actually breaks the next sync, as the content hasn't been updated, so probably not the best example. |
This enables the notification suppression functionality hidden in the
uSyncSettings
.The XML documentation has been updated to reflect the purpose of the flag.
Currently we have a large import (~7000) media items that is hanging on processing the
MediaTreeChangedNotification
, we are not concerned for these at the moment and would prefer skipping entirely.Risks: