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

[Bug]: Notifications are not showing up as expected, errors appearing in the console, notification page is not loading #25877

Closed
sleepytanya opened this issue Jul 16, 2024 · 3 comments
Labels
regression-beta-12.0.0 Regression bug that was found in beta in release 12.0.0 release-blocker This bug is blocking the next release Sev2-normal Normal severity; minor loss of service or inconvenience. team-notifications Notifications team type-bug

Comments

@sleepytanya
Copy link
Contributor

Describe the bug

I don't have exact steps to reproduce, seems like the bug is easy to repro, it happens after some interactions with the extension (probably I was interacting more with the notifications) . At some point notifications are not showing up as expected (red badge doesn't appear), alongside some errors appearing in the console and issues with the notification page loading properly. Issue resolves by reloading the extension.

Probably related:
#25748
#25749
#25754
#25750

Expected behavior

Notifications work as expected.

Screenshots/Recordings

notif.mov
notif1.mov
Screenshot 2024-07-16 at 19 37 47 Screenshot 2024-07-16 at 19 31 26 Screenshot 2024-07-16 at 18 26 05 Screenshot 2024-07-16 at 18 26 20 Screenshot 2024-07-16 at 18 26 37

Steps to reproduce

  1. Send transaction
  2. Check for notifications

Error messages or log output

No response

Detection stage

In production (default)

Version

v12.0.0

Build type

Beta

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

@sleepytanya sleepytanya added type-bug team-notifications Notifications team regression-beta-12.0.0 Regression bug that was found in beta in release 12.0.0 labels Jul 16, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Jul 16, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Jul 16, 2024
@Prithpal-Sooriya Prithpal-Sooriya added the release-blocker This bug is blocking the next release label Jul 17, 2024
@Prithpal-Sooriya
Copy link
Contributor

Prithpal-Sooriya commented Jul 17, 2024

This has been noted and added to our teams board.

Posting for visibility. From some investigations, there seems to be a couple of things we can do to improve performance and also reliability.

Snap Issues:
We have a pre-installed snap that we use for logging in and also for creating keys for profile syncing. We are doing this too much, which is slowing down and also throwing errors in the snap environment. We can cache the snap results and don't need to re-call as often.

Excessive API Calls:
On the settings page, we are calling our APIs too many times. For each account, we re-call some APIs. We don't need to do this, so deduping and ensuring we call the minimal amount of APIs. Effects are ran at the account components, we should lift this to the single parent/root.

Storage Setup:
Profile syncing secures user data by creating a client side encryption key. Generating this key (KDF) takes time (up to 5 seconds). This is in-memory cached, but does mean we need to eat slow initial loads. We can explore persisting this KDF Key, but will need additional eyes/investigations.

@Prithpal-Sooriya
Copy link
Contributor

Prithpal-Sooriya commented Jul 22, 2024

Errors have been fixed and cherry-picked into v12.0.0:

#25946

#25979

There is still some slowness in enabling/disabling notifications. This seems to be from the number of API calls required to setup notifications. Discussing with our backend team to see if we can alleviate some slowness.

@gauthierpetetin gauthierpetetin added the Sev2-normal Normal severity; minor loss of service or inconvenience. label Jul 22, 2024
@Prithpal-Sooriya
Copy link
Contributor

Prithpal-Sooriya commented Jul 23, 2024

I have tested this on v12. This has been fixed. Notifications are a little slow when enabling/disabling - this is being worked on in a separate issue #25754

@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by severity Jul 23, 2024
@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by team Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-beta-12.0.0 Regression bug that was found in beta in release 12.0.0 release-blocker This bug is blocking the next release Sev2-normal Normal severity; minor loss of service or inconvenience. team-notifications Notifications team type-bug
Projects
Archived in project
Development

No branches or pull requests

3 participants