[PR #1713] [MERGED] Fix and test for delete user #16011

Closed
opened 2025-11-02 12:00:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1713
Author: @ethantkoenig
Created: 5/12/2017
Status: Merged
Merged: 5/20/2017
Merged by: @lunny

Base: masterHead: delete_user


📝 Commits (3)

📊 Changes

11 files changed (+160 additions, -68 deletions)

View changed files

integrations/delete_user_test.go (+41 -0)
📝 models/consistency.go (+13 -13)
📝 models/fixtures/follow.yml (+10 -0)
📝 models/fixtures/user.yml (+6 -3)
models/main_test.go (+26 -0)
📝 models/unit_tests.go (+2 -21)
📝 models/user.go (+24 -20)
📝 models/user_test.go (+31 -0)
📝 vendor/github.com/go-xorm/builder/cond_in.go (+2 -4)
📝 vendor/github.com/go-xorm/builder/cond_notin.go (+2 -4)
📝 vendor/vendor.json (+3 -3)

📄 Description

Fix bug where num_following fields were not correctly updated on user delete.

Also add an integration test for deleting users.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1713 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 5/12/2017 **Status:** ✅ Merged **Merged:** 5/20/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `delete_user` --- ### 📝 Commits (3) - [`86e03ca`](https://github.com/go-gitea/gitea/commit/86e03ca5229a5eb0f8e5d2b31b75e72a87094921) Fix and test for delete user - [`969c552`](https://github.com/go-gitea/gitea/commit/969c5526366935175f4fed2029eea30449ceca21) Run updates in batches - [`cca3e9e`](https://github.com/go-gitea/gitea/commit/cca3e9ecad2e8f70249bfb85b11f29ebfefbd3ac) Unit test ### 📊 Changes **11 files changed** (+160 additions, -68 deletions) <details> <summary>View changed files</summary> ➕ `integrations/delete_user_test.go` (+41 -0) 📝 `models/consistency.go` (+13 -13) 📝 `models/fixtures/follow.yml` (+10 -0) 📝 `models/fixtures/user.yml` (+6 -3) ➕ `models/main_test.go` (+26 -0) 📝 `models/unit_tests.go` (+2 -21) 📝 `models/user.go` (+24 -20) 📝 `models/user_test.go` (+31 -0) 📝 `vendor/github.com/go-xorm/builder/cond_in.go` (+2 -4) 📝 `vendor/github.com/go-xorm/builder/cond_notin.go` (+2 -4) 📝 `vendor/vendor.json` (+3 -3) </details> ### 📄 Description Fix bug where `num_following` fields were not correctly updated on user delete. Also add an integration test for deleting users. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:00:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16011