Skip to content

Commit

Permalink
Add disability_disclosure to timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed Oct 17, 2023
1 parent dbcfe7d commit d9aceff
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def timeline_events
interview_preference_events,
personal_information_events,
science_gcse_events,
disability_disclosure_events,
contact_information_events,
change_course_events,
interview_events].flatten.sort_by(&:date).reverse
Expand Down Expand Up @@ -167,6 +168,21 @@ def contact_information_events
end
end

def disability_disclosure_events
disability_disclosure, @activity_log_events = @activity_log_events.partition do |e|
e.audit.audited_changes.key?('disability_disclosure')
end
disability_disclosure.map do |event|
Event.new(
'Disability Disclosure',
actor_for(event),
event.created_at,
'View Application',
provider_interface_application_choice_path(application_choice),
)
end
end

def science_gcse_events
attributes = %w[
award_year
Expand Down

0 comments on commit d9aceff

Please sign in to comment.