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-16194] Do not sort Favorite ciphers by last used date #12466

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

shane-melton
Copy link
Member

@shane-melton shane-melton commented Dec 18, 2024

🎟️ Tracking

PM-16194

📔 Objective

Revert the change to favorite item sorting so that favorite items are once again only sorted alphabetically by name.

📸 Screenshots

image

⏰ 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

@shane-melton shane-melton requested a review from a team as a code owner December 18, 2024 18:05
*/
favoriteCiphers$: Observable<PopupCipherView[]> = this.autoFillCiphers$.pipe(
withLatestFrom(this._filteredCipherList$),
map(([autoFillCiphers, ciphers]) =>
ciphers.filter((cipher) => cipher.favorite && !autoFillCiphers.includes(cipher)),
),
map((ciphers) =>
Copy link
Member Author

Choose a reason for hiding this comment

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

ℹ️ The ciphers are already sorted by name via the CipherService.cipherView$ observable and do not need to be sorted again now that we are not sorting by last used.

Copy link
Contributor

github-actions bot commented Dec 18, 2024

Logo
Checkmarx One – Scan Summary & Details1fd2d043-39dc-47c6-a5e9-2cd579fd9bc4

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 50 Attack Vector
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 40 Attack Vector

Fixed Issues

Severity Issue Source File / Package
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 40
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 50

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.49%. Comparing base (d1fe72a) to head (928d60c).
Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12466      +/-   ##
==========================================
- Coverage   33.52%   33.49%   -0.03%     
==========================================
  Files        2913     2917       +4     
  Lines       91086    91162      +76     
  Branches    17338    17348      +10     
==========================================
+ Hits        30533    30534       +1     
- Misses      58146    58228      +82     
+ Partials     2407     2400       -7     

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

Copy link
Collaborator

@nick-livefront nick-livefront left a comment

Choose a reason for hiding this comment

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

✅ Double approving because it means so much more now ✅

@shane-melton shane-melton merged commit 69d42a7 into main Dec 19, 2024
27 checks passed
@shane-melton shane-melton deleted the vault/pm-16194/favorite-sorting branch December 19, 2024 22:48
@RokeJulianLockhart
Copy link
Contributor

#12466 (comment)

@shane-melton, why? I rather like this new sort method. Couldn't you just let us change the sorting method?

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