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

[PM-14346] Run alias generation on the IO dispatcher #4215

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

SaintPatrck
Copy link
Contributor

@SaintPatrck SaintPatrck commented Oct 31, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-14346

📔 Objective

This commit modifies generateForwardedServiceUsername to run on the IO dispatcher by using withContext. This change ensures that any network calls made by the SDK are not executed on the main thread.

📸 Screenshots

forwarded-email-services-working.mp4

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

This commit modifies `generateForwardedServiceUsername` to run on the IO dispatcher by using `withContext`. This change ensures that any network calls made by the SDK are not executed on the main thread.
Copy link
Collaborator

@dseverns-livefront dseverns-livefront left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SaintPatrck SaintPatrck added this pull request to the merge queue Oct 31, 2024
@SaintPatrck
Copy link
Contributor Author

Thanks @dseverns-livefront

Merged via the queue into main with commit 8f2d55c Oct 31, 2024
7 checks passed
@SaintPatrck SaintPatrck deleted the PM-14346/generate-forwarded-emails-in-io-scope branch October 31, 2024 21:07
SaintPatrck added a commit that referenced this pull request Nov 1, 2024
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