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

Unable to dismiss UI notifications #8865

Open
hkhatri2 opened this issue Jul 21, 2023 · 5 comments
Open

Unable to dismiss UI notifications #8865

hkhatri2 opened this issue Jul 21, 2023 · 5 comments
Assignees

Comments

@hkhatri2
Copy link

hkhatri2 commented Jul 21, 2023

Notifications appearing in the ToastList (toast-list.jsx) are not disappearing automatically as they should be. Not only that, but the notifications that don't disappear cannot be closed with the notification close button (class: button.bx--toast-notification__close-button). This results in a flood of notifications covering the screen. It should be mentioned that the notifications can be cleared using the 'Clear All' button (id: clearAllBtn) in the notification drawer, or by hard refreshing the page, but the issue has every chance of occurring again.

The problem here is that the bug is intermittent so we're not really sure of the main cause. For these issues, we speculate that the notificationReducer (notification-reducer.js) is not working as it should be or that the removeToastNotification() method is bugged in some way. All in all though, the javascript is a bit of a blackbox for us.

The issue is occurring on manageiq najdorf-1.3.

@hkhatri2
Copy link
Author

hkhatri2 commented Jul 21, 2023

Here's some logs directly following the bug occurring:

Logs:

INFO -- production: NotificationChannel stopped streaming from notifications_6281 
INFO -- production: Finished "/ws/notifications/" [WebSocket] for 10.122.156.72 at 2023-07-21 16:42:40 +0000 
WARN -- production: Scoped order is ignored, it's forced to be batch order. 
INFO -- api: MIQ(Api::NotificationsController.log_request) Parameters: {"action"=>"index", "controller"=>"api/notifications", "format"=>"json", "body"=>{}} 
INFO -- api: MIQ(Api::NotificationsController.log_request_initiated) 
INFO -- production: Parameters: {"expand"=>"resources", "attributes"=>"details", "sort_by"=>"id", "sort_order"=>"desc", "limit"=>"100"} 
INFO -- production: Started GET "/api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100" for 127.0.0.1 at 2023-07-21 16:42:41 +0000 
INFO -- production: Started GET "/ws/notifications" for 127.0.0.1 at 2023-07-21 16:42:41 +0000 
INFO -- api: MIQ(Api::NotificationsController.log_request) Parameters: {"expand"=>"resources", "attributes"=>"details", "sort_by"=>"id", "sort_order"=>"desc", "limit"=>"100", "action"=>"index", "controller"=>"api/notifications", "format"=>"json", "body"=>{}}
INFO -- api: MIQ(Api::NotificationsController.log_request) Authorization: {:user=>"user@email.com", :group=>"group", :role=>"user", :tenant=>"tenant"} 
INFO -- api: MIQ(Api::NotificationsController.log_request) Authentication: {:type=>"ui_session", :token=>nil, :x_miq_group=>nil, :user=>"user@email.com"} 
INFO -- api: MIQ(Api::NotificationsController.log_request) Request:        {:method=>:get, :action=>"read", :fullpath=>"/api/notifications", :url=>"hostname/api/notifications", :base=>"hostname", :path=>"/api/notifications", :prefix=>"/api", :version=>"4.4.0-pre", :api_prefix=>"hostname/api", :collection=>"notifications", :c_suffix=>nil, :collection_id=>nil, :subcollection=>nil, :subcollection_id=>nil}
INFO -- api: MIQ(Api::NotificationsController.log_request) API Request: {:requested_at=>"2023-07-21 16:42:41 UTC", :method=>"GET", :url=>"hostname/api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100"} 
INFO -- api: MIQ(Api::NotificationsController.log_request_initiated) 
INFO -- production: Processing by Api::NotificationsController#index as JSON 
INFO -- production: Started GET "/api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100" for 127.0.0.1 at 2023-07-21 16:42:41 +0000 
INFO -- production: Started GET "/ws/notifications" for 127.0.0.1 at 2023-07-21 16:42:41 +0000

@DavidResende0 DavidResende0 self-assigned this Aug 16, 2023
@miq-bot miq-bot added the stale label Nov 20, 2023
@miq-bot
Copy link
Member

miq-bot commented Nov 20, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot
Copy link
Member

miq-bot commented Feb 26, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

@jeffibm
Copy link
Member

jeffibm commented Feb 26, 2024

I guess we can close this issue. Toast notification components and their logic were refactored In here - #8867

@miq-bot
Copy link
Member

miq-bot commented May 27, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants