Skip to content

Add OrganizationUserInviteQuery#7915

Open
bnagawiecki wants to merge 1 commit into
mainfrom
seeder-add-org-invite-link-query
Open

Add OrganizationUserInviteQuery#7915
bnagawiecki wants to merge 1 commit into
mainfrom
seeder-add-org-invite-link-query

Conversation

@bnagawiecki

@bnagawiecki bnagawiecki commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

📔 Objective

  • Add query to get a user's organization invite link

📸 Screenshots

@bnagawiecki bnagawiecki added the t:tech-debt Change Type - Tech debt label Jul 2, 2026
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.34%. Comparing base (a96e6cd) to head (caed67e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7915      +/-   ##
==========================================
- Coverage   61.37%   61.34%   -0.03%     
==========================================
  Files        2226     2236      +10     
  Lines       98321    98517     +196     
  Branches     8894     8907      +13     
==========================================
+ Hits        60343    60437      +94     
- Misses      35841    35943     +102     
  Partials     2137     2137              

☔ View full report in Codecov by Harness.
📢 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.

@theMickster theMickster added the ai-review Request a Claude code review label Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

Reviewed the new OrganizationUserInviteQuery added to the Seeder utility, which retrieves the accept-organization invite URL for a given email and organization. The query faithfully mirrors the canonical BuildInvitationUrl logic in HandlebarsMailService.cs (identical query-parameter order, naming, and orgUserHasExistingUser email-based lookup) and follows the existing EmergencyAccessInviteQuery pattern. Token minting correctly routes through IOrgUserInviteTokenableFactory per the auth-tokenables rule, and all constructor dependencies resolve via the Seeder startup (AddTokenizers, AddDatabaseRepositories, AddQueries).

No blocking issues found.

Code Review Details

No findings. The change is consistent with the established Seeder query pattern, reproduces the reference invite-URL construction accurately, and mints its tokenable through the required factory.

@MGibson1 MGibson1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same fragility as other link queries, but we're accepting that for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review t:tech-debt Change Type - Tech debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants