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-14186] Update SDK to make SSH key properties required #4200

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

SaintPatrck
Copy link
Contributor

@SaintPatrck SaintPatrck commented Oct 30, 2024

🎟️ Tracking

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

📔 Objective

Update Bitwarden SDK to the latest version.

This change updates the handling of SSH key fields (publicKey, privateKey, fingerprint) to treat them as non-nullable.

⏰ 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 change updates the handling of SSH key fields (publicKey, privateKey, fingerprint) to treat them as non-nullable.
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.06%. Comparing base (56367cc) to head (520894b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4200      +/-   ##
==========================================
- Coverage   89.09%   89.06%   -0.03%     
==========================================
  Files         445      445              
  Lines       38645    38642       -3     
  Branches     5406     5403       -3     
==========================================
- Hits        34430    34418      -12     
- Misses       2343     2351       +8     
- Partials     1872     1873       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

fingerprint = "fingerprint".takeUnless { isEmpty },
privateKey = "privateKey".takeUnless { isEmpty } ?: "",
publicKey = "publicKey".takeUnless { isEmpty } ?: "",
fingerprint = "fingerprint".takeUnless { isEmpty } ?: "",
Copy link
Collaborator

Choose a reason for hiding this comment

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

So is the SshKeyView requiring the values to be nonnull too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, can we use orEmpty()?

@SaintPatrck SaintPatrck changed the title [PM-14186] Make SSH key properties required [PM-14186] Update SDK to make SSH key properties required Oct 30, 2024
@SaintPatrck SaintPatrck enabled auto-merge October 30, 2024 18:34
@SaintPatrck SaintPatrck added this pull request to the merge queue Oct 30, 2024
Merged via the queue into main with commit eaa7923 Oct 30, 2024
9 checks passed
@SaintPatrck SaintPatrck deleted the PM-14186/ssh-key-fields-required branch October 30, 2024 19:08
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