guardian / grid

The Guardian’s image management system
https://www.theguardian.com/info/developer-blog/2015/aug/12/open-sourcing-grid-image-service
Apache License 2.0
1.43k stars 119 forks source link

Fix issue that stopped Global Errors and Notification Banner displaying correctly simultaneously #4265

Closed AndyKilmory closed 2 months ago

AndyKilmory commented 2 months ago

What does this change?

Fixes the problem identified with the Notification Banner control and its 'interaction' with the Global Errors control. It was found that the presence of the Notification Banner control in the main.scala.html file caused the Global Errors to fail to display - all code ran correctly and there were no console errors but the error messages and other user banners did not appear in the browser.

It was found that if the order of the controls was reversed in main.scala.html then the Error control worked correctly but the Notification Banner failed to display.

This was some complex cross interaction between the two components at an AngularJS level. The code has been simplified to ensure full separation of the two controls and the Notification Banner has been wrapped in its own div - this has resulted in the controls workig correctly together.

Who should look at this?

Tested? Documented?

AndyKilmory commented 2 months ago

Hi Phillip, Thanks for the review and approval - please could you also merge the branch as I don't have write access and so can't complete that step. Thanks Andy

prout-bot commented 2 months ago

Seen on auth, usage, image-loader, metadata-editor, thrall, leases, cropper, collections, media-api (created by @AndyKilmory and merged by @paperboyo 9 minutes and 34 seconds ago) Please check your changes!

prout-bot commented 2 months ago

Seen on kahuna (created by @AndyKilmory and merged by @paperboyo 9 minutes and 41 seconds ago) Please check your changes!