feat: record application deleted event for statistics
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
/**
|
||||
* What became of an application that was hard deleted.
|
||||
*
|
||||
* Applications are removed on the way to a placement just as they are removed when they come
|
||||
* to nothing, and the row is gone either way. Without this, staffing somebody would read as
|
||||
* an application being thrown away, and "how many applications did we lose" would count every
|
||||
* success along with every loss.
|
||||
*/
|
||||
enum ApplicationDeletionOutcome: string
|
||||
{
|
||||
/** It became a placement: a disposition was created from it in the same flush. */
|
||||
case DISPOSED = 'disposed';
|
||||
|
||||
/** Nobody was staffed from it - withdrawn by the teamer, deleted by the office, or purged. */
|
||||
case REMOVED = 'removed';
|
||||
}
|
||||
@@ -19,6 +19,7 @@ enum StatisticsEventName: string
|
||||
case DISPOSITION_CALLED_OFF = 'disposition.called_off';
|
||||
case DISPOSITION_DELETED = 'disposition.deleted';
|
||||
case APPLICATION_CREATED = 'application.created';
|
||||
case APPLICATION_DELETED = 'application.deleted';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
@@ -28,6 +29,7 @@ enum StatisticsEventName: string
|
||||
self::DISPOSITION_CALLED_OFF => 'Einsatz abgesagt',
|
||||
self::DISPOSITION_DELETED => 'Einteilung gelöscht',
|
||||
self::APPLICATION_CREATED => 'Bewerbung eingegangen',
|
||||
self::APPLICATION_DELETED => 'Bewerbung gelöscht',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user