Skip to content
Snippets Groups Projects

batches: Debug message when namespace deleted

Merged Warren Gifford requested to merge rc/batch-change-owner-deleted into main

Created by: Piszmog

Closes #39723 (closed).

When calling GetBatchChange, removed the requirement to that the org and user deleted_at be null. Instead, during the scan call, setting the deleted_at values into 2 variables. If these variables are not "zero," then a new error (ErrDeletedNamespace) is returned to signify that the namespace has been deleted.

With this error, we can now check if the error is ErrDeletedNamespace and log a debug message saying that the changeset is being skipped.

Test plan

Added Go Unit Tests

Merge request reports

Merged by avatar (Jul 13, 2025 9:14am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading