Skip to content

[PM-13274] [Unified] Add integration tests for creating and updating collections #5814

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

Conversation

eliykat
Copy link
Member

@eliykat eliykat commented May 13, 2025

🎟️ Tracking

Main ticket: https://bitwarden.atlassian.net/browse/PM-21799

Relates to:

📔 Objective

I was unable to reproduce the linked issues, however I took the opportunity to add db integration tests (which run on all our db providers) to confirm this. No other changes at this stage.

Vault changes are just moving the CollectionRepositoryTests into AC Team ownership.

📸 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

@eliykat eliykat requested review from a team as code owners May 13, 2025 04:48
Copy link

codecov bot commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.78%. Comparing base (1ec06fa) to head (4f88257).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5814      +/-   ##
==========================================
+ Coverage   47.54%   50.78%   +3.24%     
==========================================
  Files        1651     1651              
  Lines       74814    74814              
  Branches     6724     6724              
==========================================
+ Hits        35569    37994    +2425     
+ Misses      37787    35301    -2486     
- Partials     1458     1519      +61     

☔ 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

github-actions bot commented May 13, 2025

Logo
Checkmarx One – Scan Summary & Details48ce8296-8c4f-4e24-8146-7b9698559212

New Issues (1)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CSRF /src/Billing/Controllers/PayPalController.cs: 70
detailsMethod PostIpn at line 70 of /src/Billing/Controllers/PayPalController.cs gets a parameter from a user request from Body. This parameter value fl...
ID: HIRv8XJ2uwImOjFqQXDx3QjwhSo%3D
Attack Vector
Fixed Issues (2)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
MEDIUM CSRF /src/Api/Tools/Controllers/SendsController.cs: 196
MEDIUM CSRF /src/Billing/Controllers/FreshdeskController.cs: 43

@eliykat eliykat changed the title Ac/pm 13274/unified adding a group to a collection returns 500 error but works [PM-13274] [Unified] Integration tests for creating/updating collections May 13, 2025
@eliykat eliykat marked this pull request as draft May 13, 2025 05:07
@eliykat eliykat changed the title [PM-13274] [Unified] Integration tests for creating/updating collections [PM-13274] [Unified] Fix creating and updating collections with EF May 13, 2025
@eliykat eliykat changed the title [PM-13274] [Unified] Fix creating and updating collections with EF [PM-13274] [Unified] Add integration tests for creating and updating collections May 19, 2025
@eliykat eliykat marked this pull request as ready for review May 19, 2025 22:26
@eliykat eliykat requested review from jrmccannon and r-tome May 22, 2025 02:07
Copy link

@eliykat eliykat merged commit 83478f9 into main May 23, 2025
55 checks passed
@eliykat eliykat deleted the ac/pm-13274/unified-adding-a-group-to-a-collection-returns-500-error---but-works branch May 23, 2025 01:27
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