Skip to content

fix: correct user deletion - #10385

Merged
SchrodingersGat merged 3 commits into
inventree:masterfrom
matmair:matmair/issue10384
Sep 24, 2025
Merged

SchrodingersGat merged 3 commits into
inventree:masterfrom
matmair:matmair/issue10384

Conversation

@matmair

@matmair matmair commented Sep 23, 2025

Copy link
Copy Markdown
Member

In edge cases there can be user sessions with FK that do not properly resolve, this fix ensures any sessions are cleared.
Also fixes the double warning on the user deletion dialog.

Closes #10384

@matmair matmair added this to the 1.0.2 milestone Sep 23, 2025
@matmair matmair self-assigned this Sep 23, 2025
@matmair matmair added bug Identifies a bug which needs to be addressed User Interface Related to the frontend / User Interface labels Sep 23, 2025
@netlify

netlify Bot commented Sep 23, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 61963db
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/68d32bad3b97490008ce19d4
😎 Deploy Preview https://deploy-preview-10385--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94 (no change from production)
Accessibility: 81 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@SchrodingersGat SchrodingersGat added backport Apply this label to a PR to enable auto-backport action backport-to-1.0.x api Relates to the API labels Sep 23, 2025
@SchrodingersGat

Copy link
Copy Markdown
Member

Thanks for the quick fix @matmair

@codecov

codecov Bot commented Sep 23, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.43%. Comparing base (4681cbb) to head (61963db).
⚠️ Report is 308 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10385   +/-   ##
=======================================
  Coverage   87.43%   87.43%           
=======================================
  Files        1266     1266           
  Lines       56641    56645    +4     
  Branches     2059     2059           
=======================================
+ Hits        49523    49527    +4     
  Misses       6611     6611           
  Partials      507      507           
Flag Coverage Δ
backend 89.14% <25.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 91.67% <25.00%> (-0.01%) ⬇️
Backend General 93.66% <ø> (ø)
Frontend 70.03% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit 4794d69 into inventree:master Sep 24, 2025
@SchrodingersGat
SchrodingersGat deleted the matmair/issue10384 branch September 24, 2025 00:22
github-actions Bot pushed a commit that referenced this pull request Sep 24, 2025
* Ensure all user sessions are cleared

* remove double warning text on user delete

(cherry picked from commit 4794d69)
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.0.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

SchrodingersGat pushed a commit that referenced this pull request Sep 24, 2025
* Ensure all user sessions are cleared

* remove double warning text on user delete

(cherry picked from commit 4794d69)

Co-authored-by: Matthias Mair <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API backport Apply this label to a PR to enable auto-backport action bug Identifies a bug which needs to be addressed User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Cannot delete user (foreign key violation on session)

2 participants