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-17921 change the GenerateAccessData method to process lists in parallel #5552

Merged

Conversation

prograhamming
Copy link
Contributor

@prograhamming prograhamming commented Mar 25, 2025

🎟️ Tracking

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

📔 Objective

Testing the performance of the MemberAccessCipherDetailsQuery with an organization with a large amount of members. Found we could reduce the response time of this method by 300ms when processing lists in parallel.

📸 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

@prograhamming prograhamming requested a review from ttalty March 25, 2025 16:48
@prograhamming prograhamming requested a review from a team as a code owner March 25, 2025 16:48
@prograhamming prograhamming changed the title PM-17921 change the GenerateAccessData method to process lists in par… PM-17921 change the GenerateAccessData method to process lists in parallel Mar 25, 2025
Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details0b348e57-3d55-45da-b91a-4447756c6f52

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Mar 25, 2025

Codecov Report

Attention: Patch coverage is 0% with 54 lines in your changes missing coverage. Please review.

Project coverage is 45.65%. Comparing base (56915ec) to head (0aa121d).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...s/ReportFeatures/MemberAccessCipherDetailsQuery.cs 0.00% 54 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5552      +/-   ##
==========================================
- Coverage   45.66%   45.65%   -0.01%     
==========================================
  Files        1597     1597              
  Lines       72490    72502      +12     
  Branches     6495     6493       -2     
==========================================
  Hits        33101    33101              
- Misses      37974    37986      +12     
  Partials     1415     1415              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@ttalty ttalty left a comment

Choose a reason for hiding this comment

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

⛏️ Just removal of the commented code and GenerateAccessData method

Copy link
Contributor

Choose a reason for hiding this comment

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

⛏️ We should also get rid of the GenerateAccessData method itself

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed old method

Copy link

sonarqubecloud bot commented Apr 7, 2025

@prograhamming prograhamming merged commit 1cf9ff3 into main Apr 7, 2025
37 of 38 checks passed
@prograhamming prograhamming deleted the tools/pm-17921/performance-testing-member-access-report branch April 7, 2025 16:26
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.

3 participants