Skip to content

chore: remove legacy migration code#3845

Merged
nijel merged 1 commit into
mainfrom
legacy
May 26, 2026
Merged

chore: remove legacy migration code#3845
nijel merged 1 commit into
mainfrom
legacy

Conversation

@nijel

@nijel nijel commented May 26, 2026

Copy link
Copy Markdown
Member

Now the data is migrated there is no need to maintain this.

Now the data is migrated there is no need to maintain this.
@nijel nijel requested a review from Copilot May 26, 2026 15:02
@nijel nijel self-assigned this May 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes legacy “migration-era” SAML/user-sync functionality now that hosted-user identifiers are fully migrated, simplifying synchronization logic and associated operational tooling.

Changes:

  • Removed legacy user-linking logic (username/email candidate matching) and the associated ambiguity error handling from SAML sync.
  • Updated user sync tests and CRM tests to rely on external_id/SamlIdentity rather than legacy payload formats.
  • Removed the audit_saml_users management command and trimmed legacy troubleshooting output from sync_hosted_users.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
weblate_web/tests.py Updates API/user-sync tests to use external_id + profile, and drops tests tied to legacy migration/audit behavior.
weblate_web/saml.py Deletes legacy candidate-linking and ambiguity handling; makes external_id required for synchronization.
weblate_web/management/commands/sync_hosted_users.py Removes legacy-candidate reporting and related imports/exception handling.
weblate_web/management/commands/audit_saml_users.py Removes the legacy audit/cleanup command entirely.
weblate_web/crm/views.py Drops handling for the removed ambiguity exception.
weblate_web/crm/tests.py Updates CRM hosted-user linking tests to ensure existing users are linked via SamlIdentity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@argos-ci

argos-ci Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - May 26, 2026, 3:07 PM

@codecov

codecov Bot commented May 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.61538% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.56%. Comparing base (4896675) to head (e0438e1).
⚠️ Report is 9 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3845      +/-   ##
==========================================
+ Coverage   88.54%   88.56%   +0.01%     
==========================================
  Files          72       71       -1     
  Lines       11126    10834     -292     
  Branches     1001      952      -49     
==========================================
- Hits         9852     9595     -257     
+ Misses        931      913      -18     
+ Partials      343      326      -17     
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nijel nijel enabled auto-merge (rebase) May 26, 2026 15:09
@nijel nijel merged commit 2da36a2 into main May 26, 2026
38 of 40 checks passed
@nijel nijel deleted the legacy branch May 26, 2026 15:12
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.

2 participants