Carlos Quintana and Adrià Casajús
a70baad478
Implement Alias Trash ( #2417 )
...
* wip: start implementing alias trash
* Added alias trash dashboard page
* test: delete_alias changes
* Format html
* fix: mailbox deletion
* feat: add delete_alias_action setting in dashboard settings
* chore: disable alias when trashing it
* Add restore tests
* Move tras/restore to alias_actions
* rename alias_actions to alias_delete
* Remove alias_actions
* Send events and alias audit log on alias restore
* feat: adapt queries to trashed alias
* chore: add metrics on alias trash actions
* fix: missing empty arg
* Add rate limit for restore and restore all
* fix: mailbox alias count
* feat: properly handle alias deletion for custom domain deletion
* chore: add error logs
* chore: update alias trash copy + change Trash location
* feat: make can_create_new_alias not take trashed aliases into account
* chore: update mailbox deletion dialog copy
---------
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch >
2025-03-18 10:10:56 +01:00
Adrià Casajús
8d8ca3312a
Send event on account unlink ( #2379 )
...
* Send event on account unlink
* Move unlink to its own module
2025-02-05 09:44:42 +00:00
Adrià Casajús
3c13f1ce20
Have the dead letter also take events to avoid race conditions ( #2267 )
...
* Have the dead letter also take events to avoid race conditions
* Ensure we take the event
* Tests for event taken
* Rename
2024-10-17 09:16:33 +00:00
Adrià Casajús
b8be0f470a
Remove old webhook to send plan changes and rely on events ( #2265 )
2024-10-15 11:01:26 +02:00
Carlos Quintana and Adrià Casajús
bdb0c8bd08
feat: alias audit log ( #2261 )
...
* feat: alias audit log
* feat: crontab to delete old alias_audit_log entries
* Unified messages
---------
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch >
2024-10-14 12:45:00 +02:00
Adrià Casajús
eac73c4e8b
On alias transfer send the proper events ( #2249 )
2024-10-04 13:17:59 +00:00
Adrià Casajús
5301d2410d
Send alias creation time in alias status change event also and rename some proto fields ( #2217 )
2024-09-13 14:25:38 +02:00
Adrià Casajús
486b6a7ad1
Send the alias creation time in the alias creation event ( #2216 )
2024-09-13 13:39:41 +02:00
Adrià Casajús
b61a171de3
Add tests that all events have all the info we need ( #2211 )
...
* Add tests that all events have all the info we need
* Reorder
* Fix import
2024-09-10 11:05:24 +02:00
Carlos Quintana
3e0b7bb369
Add sync events ( #2113 )
...
* feat: add protocol buffers for events
* chore: add EventDispatcher
* chore: add WebhookEvent class
* chore: emit events
* feat: initial version of event listener
* chore: emit user plan change with new timestamp
* feat: emit metrics + add alias status to create event
* chore: add newrelic decorator to functions
* fix: event emitter fixes
* fix: take null end_time into account
* fix: avoid double-commits
* chore: move UserDeleted event to User.delete method
* db: add index to sync_event created_at and taken_time columns
* chore: add index to model
2024-05-23 10:27:08 +02:00