jira/apps/api/plane/db/management/commands
Nikhil 1ed664e8f8
[WEB-8512] feat: add workspace member reactivation command (#9520)
* feat: add command to reactivate workspace members with error handling

* fix: address review comments on reactivate command

- normalize email input to match User.save lowercasing
- fix grammar in error messages
- limit save to is_active so audit fields are not clobbered

Claude-Session: https://claude.ai/code/session_01NGjXVUi4D8JGWy7b7KDNaN

* fix: normalize inputs before validation and report partial reactivation

- strip slug/email before the required checks so whitespace-only args are rejected
- bump updated_at and pass disable_auto_set_user so the audit fields survive
- report the restored role, inactive project memberships, and inactive accounts

Claude-Session: https://claude.ai/code/session_01NGjXVUi4D8JGWy7b7KDNaN

---------

Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2026-08-02 03:17:23 +05:30
..
__init__.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
activate_user.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
clear_cache.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
copy_issue_comment_to_description.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
create_bucket.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
create_dummy_data.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
create_instance_admin.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
create_project_member.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
fix_duplicate_sequences.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
reactivate_workspace_member.py [WEB-8512] feat: add workspace member reactivation command (#9520) 2026-08-02 03:17:23 +05:30
reset_password.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
sync_issue_description_version.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
sync_issue_version.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
test_email.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
update_bucket.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
update_deleted_workspace_slug.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
wait_for_db.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
wait_for_migrations.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30