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-13673] Require UserId In CompareHash Method #11568

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

justindbaur
Copy link
Member

🎟️ Tracking

📔 Objective

Main goal is to require UserId on the existing compareAndUpdateKeyHash function. When working on that method though it had a callout to remove the update and server compare part. While here I decided to remove that.

I also refactored it to be flatter, all tests were added before the function changed to ensure equal behavior.

📸 Screenshots

⏰ 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

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 46.66667% with 8 lines in your changes missing coverage. Please review.

Project coverage is 33.17%. Comparing base (32d12b3) to head (6e37096).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ibs/common/src/platform/services/crypto.service.ts 50.00% 3 Missing and 1 partial ⚠️
...ault/src/components/password-reprompt.component.ts 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11568      +/-   ##
==========================================
+ Coverage   33.15%   33.17%   +0.01%     
==========================================
  Files        2779     2779              
  Lines       86310    86314       +4     
  Branches    16445    16447       +2     
==========================================
+ Hits        28618    28631      +13     
+ Misses      55418    55405      -13     
- Partials     2274     2278       +4     

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

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsdcde7965-ffa5-4aff-a051-7b1bf6b73228

Fixed Issues

Severity Issue Source File / Package
MEDIUM Unpinned Actions Full Length Commit SHA /release-web.yml: 57
MEDIUM Unpinned Actions Full Length Commit SHA /crowdin-pull.yml: 35
MEDIUM Unpinned Actions Full Length Commit SHA /build-browser.yml: 367
MEDIUM Unpinned Actions Full Length Commit SHA /release-browser.yml: 96
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 201
MEDIUM Unpinned Actions Full Length Commit SHA /publish-cli.yml: 104
MEDIUM Unpinned Actions Full Length Commit SHA /release-desktop-beta.yml: 248
MEDIUM Unpinned Actions Full Length Commit SHA /release-web.yml: 41
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 499
MEDIUM Unpinned Actions Full Length Commit SHA /retrieve-current-desktop-rollout.yml: 23
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 48
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 507
MEDIUM Unpinned Actions Full Length Commit SHA /crowdin-pull.yml: 41
MEDIUM Unpinned Actions Full Length Commit SHA /release-desktop-beta.yml: 51
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 194
MEDIUM Unpinned Actions Full Length Commit SHA /build-web.yml: 297
MEDIUM Unpinned Actions Full Length Commit SHA /publish-desktop.yml: 245
MEDIUM Unpinned Actions Full Length Commit SHA /build-web.yml: 342
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 162
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 82
MEDIUM Unpinned Actions Full Length Commit SHA /release-desktop.yml: 44
MEDIUM Unpinned Actions Full Length Commit SHA /release-cli.yml: 59
MEDIUM Unpinned Actions Full Length Commit SHA /publish-web.yml: 44
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 247
MEDIUM Unpinned Actions Full Length Commit SHA /release-desktop.yml: 94
MEDIUM Unpinned Actions Full Length Commit SHA /release-desktop.yml: 71
MEDIUM Unpinned Actions Full Length Commit SHA /version-auto-bump.yml: 21
MEDIUM Unpinned Actions Full Length Commit SHA /build-desktop.yml: 891
MEDIUM Unpinned Actions Full Length Commit SHA /publish-desktop.yml: 122
MEDIUM Unpinned Actions Full Length Commit SHA /publish-cli.yml: 141
MEDIUM Unpinned Actions Full Length Commit SHA /release-desktop-beta.yml: 668
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 515
MEDIUM Unpinned Actions Full Length Commit SHA /release-cli.yml: 44
MEDIUM Unpinned Actions Full Length Commit SHA /build-cli.yml: 405
MEDIUM Unpinned Actions Full Length Commit SHA /staged-rollout-desktop.yml: 29
MEDIUM Unpinned Actions Full Length Commit SHA /deploy-web.yml: 270
MEDIUM Unpinned Actions Full Length Commit SHA /release-browser.yml: 44
MEDIUM Unpinned Actions Full Length Commit SHA /build-desktop.yml: 288
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 187
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 359
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 297
MEDIUM Unpinned Actions Full Length Commit SHA /publish-cli.yml: 181
MEDIUM Unpinned Actions Full Length Commit SHA /deploy-web.yml: 191
MEDIUM Unpinned Actions Full Length Commit SHA /brew-bump-desktop.yml: 26
MEDIUM Unpinned Actions Full Length Commit SHA /build-desktop.yml: 1293
MEDIUM Unpinned Actions Full Length Commit SHA /deploy-web.yml: 222
MEDIUM Unpinned Actions Full Length Commit SHA /build-web.yml: 267
MEDIUM Unpinned Actions Full Length Commit SHA /build-web.yml: 191
MEDIUM Unpinned Actions Full Length Commit SHA /build-desktop.yml: 1339
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 523
MEDIUM Unpinned Actions Full Length Commit SHA /build-browser.yml: 408
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 180
MEDIUM Unpinned Actions Full Length Commit SHA /publish-desktop.yml: 196

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.

4 participants