Skip to content

Commit

Permalink
Add system_archive event for authorization requests
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Apr 10, 2024
1 parent 86a1180 commit 65fc584
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/authorization_request_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class AuthorizationRequestEvent < ApplicationRecord
instructor_message

system_reminder
system_archive
].freeze

belongs_to :user, optional: true
Expand Down
3 changes: 3 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,3 +484,6 @@ fr:
system_reminder:
text: Une relance a été envoyé au demandeur

system_archive:
text: L'habilitation a été archivée par le système
8 changes: 8 additions & 0 deletions spec/factories/authorization_request_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,13 @@

user { nil }
end

trait :system_archive do
name { 'system_archive' }

entity_is_authorization_request

user { nil }
end
end
end

0 comments on commit 65fc584

Please sign in to comment.