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

[SM-1275] Update AccessTokenLogin to LoginAccessToken for SM #953

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

coltonhurst
Copy link
Member

@coltonhurst coltonhurst commented Aug 12, 2024

๐ŸŽŸ๏ธ Tracking

https://bitwarden.atlassian.net/browse/SM-1275

๐Ÿ“” Objective

As requested internally, this updates AccessTokenLogin to LoginAccessToken for all SM language bindings. This will break functionality for each binding on main until they are each updated (or unless they are already updated). We are reviewing all bindings now and updates for all are on deck. There are a total of ~8 bindings to verify and update for SM, so the only alternative is including all changes in one PR, which would be nice to avoid.

@Hinton please let us know if there is anything we are missing with this PR, besides subsequent PR's to fix this for each binding. Is there anything else that should be updated?

Note: we should not merge this if we plan to release any bindings before the subsequent updates come through.

โฐ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) 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

@coltonhurst coltonhurst changed the title SM-1275: Update AccessTokenLogin to LoginAccessToken for SM items SM-1275: Update AccessTokenLogin to LoginAccessToken for SM Aug 12, 2024
Copy link
Contributor

github-actions bot commented Aug 12, 2024

Logo
Checkmarx One โ€“ Scan Summary & Details โ€“ c37b1f46-4e3e-423f-9a49-d92bf2e2d297

No New Or Fixed Issues Found

Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 58.45%. Comparing base (4be1e09) to head (92078c1).
Report is 1 commits behind head on main.

Files Patch % Lines
crates/bitwarden-json/src/client.rs 0.00% 1 Missing โš ๏ธ
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #953   +/-   ##
=======================================
  Coverage   58.45%   58.45%           
=======================================
  Files         194      194           
  Lines       13358    13358           
=======================================
  Hits         7808     7808           
  Misses       5550     5550           

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

@coltonhurst coltonhurst changed the title SM-1275: Update AccessTokenLogin to LoginAccessToken for SM [SM-1275] Update AccessTokenLogin to LoginAccessToken for SM Aug 13, 2024
@coltonhurst coltonhurst requested review from Hinton, dani-garcia and a team August 14, 2024 00:10
@coltonhurst coltonhurst self-assigned this Aug 14, 2024
@coltonhurst coltonhurst marked this pull request as ready for review August 14, 2024 00:12
@coltonhurst coltonhurst merged commit cafdb79 into main Aug 15, 2024
94 of 105 checks passed
@coltonhurst coltonhurst deleted the sm/sm-1275 branch August 15, 2024 15:33
coltonhurst added a commit that referenced this pull request Aug 20, 2024
## ๐ŸŽŸ๏ธ Tracking

https://bitwarden.atlassian.net/browse/SM-1413

## ๐Ÿ“” Objective

### The Issue

Through the C FFI, we were running into concurrency issues with multiple
Tokio runtimes.

A draft PR showing the concurrency issue with instructions can be found
[here](#955).

### The Fix

This PR fixes this issue for `bitwarden-c` and `bitwarden-py`, by
preserving the runtime. Thanks @dani-garcia for the fix and working
together on this one!

### Extra

This also refactors the `AccessTokenLogin` type as a follow up for
testing purposes for Go as initiated by
[this](#953) PR.

## โฐ Reminders before review

- Contributor guidelines followed
- All formatters and local linters executed and passed
- Written new unit and / or integration tests where applicable
- Protected functional changes with optionality (feature flags)
- Used internationalization (i18n) for all UI strings
- CI builds passed
- Communicated to DevOps any deployment requirements
- Updated any necessary documentation (Confluence, contributing docs) or
informed the documentation
  team

## ๐Ÿฆฎ Reviewer guidelines

<!-- Suggested interactions but feel free to use (or not) as you desire!
-->

- ๐Ÿ‘ (`:+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
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