Skip to content

[SG-773][SG-777] Duplicate passwordless login requests#2160

Merged
andrebispo5 merged 7 commits intomasterfrom
bugfix/SG-773-duplicate-requests
Oct 31, 2022
Merged

[SG-773][SG-777] Duplicate passwordless login requests#2160
andrebispo5 merged 7 commits intomasterfrom
bugfix/SG-773-duplicate-requests

Conversation

@andrebispo5
Copy link
Contributor

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Fix bug where in certain conditions multiple login request modals could appear to the user.

Code changes

Due to the nature of broadcast receiver, async messages can arrive at the same time causing racing problems. A lock was added to prevent multiple executions of passwordless login requests. The lock object was made static because of android notification clicks firing a new app instance.

Screenshots

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

@andrebispo5 andrebispo5 requested a review from fedemkr October 31, 2022 15:07
@andrebispo5 andrebispo5 merged commit 9baa79e into master Oct 31, 2022
@andrebispo5 andrebispo5 deleted the bugfix/SG-773-duplicate-requests branch October 31, 2022 15:57
@andrebispo5 andrebispo5 changed the title [SG-773][SG-775] Duplicate passwordless login requests [SG-773][SG-777] Duplicate passwordless login requests Oct 31, 2022
trmartin4 pushed a commit that referenced this pull request Oct 31, 2022
* [SG-773] Change method call to message send

* [SG-773] Introduce lock to avoid concurrent executions of login requests

* [SG-773][SG-775] add comment

* [SSG-773][SG-775] Refactor passwordlessLoginRequest string to constant

(cherry picked from commit 9baa79e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants