mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 06:26:15 +02:00
feat: add status notes to force delete notifications
- Add notes parameter to force delete interactions to provide more context - Include company registry status in force delete notifications - Add status mapping constants for better readability - Move status note assignment before save in force delete process Technical details: - Add notes field to Domains::ForceDelete::Base interaction - Update force delete notifications to include status notes - Add REGISTRY_STATUSES mapping in CompanyRegisterStatusJob - Update tests to verify new notification format
This commit is contained in:
parent
45c77f7052
commit
2ec545b3aa
7 changed files with 22 additions and 9 deletions
|
@ -47,9 +47,9 @@ module Domain::ForceDelete
|
|||
statuses.include?(DomainStatus::FORCE_DELETE)
|
||||
end
|
||||
|
||||
def schedule_force_delete(type: :fast_track, notify_by_email: false, reason: nil, email: nil)
|
||||
def schedule_force_delete(type: :fast_track, notify_by_email: false, reason: nil, email: nil, notes: nil)
|
||||
Domains::ForceDelete::SetForceDelete.run(domain: self, type: type, reason: reason,
|
||||
notify_by_email: notify_by_email, email: email)
|
||||
notify_by_email: notify_by_email, email: email, notes: notes)
|
||||
end
|
||||
|
||||
def cancel_force_delete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue