app/presenters/specialist_document_presenter.rb
def first_public_at
    @first_public_at ||= if facet_values[first_published_at_facet_key]
                           facet_values[first_published_at_facet_key]
                         else
                           changes = reverse_chronological_change_history
                           changes.any? ? changes.last[:timestamp] : nil
                         end
  end
# first_published_at does not have reliable data
# at time of writing dates could be after public_updated_at
# details.first_public_at is not provided
# https://trello.com/c/xCJ3RN6W/
#
# Instead use first date in change history


Instead use first date in change history
Instead use first date in change history
def first_public_at
    @first_public_at ||= if facet_values[first_published_at_facet_key]
                           facet_values[first_published_at_facet_key]
                         else
                           changes = reverse_chronological_change_history
                           changes.any? ? changes.last[:timestamp] : nil
                         end
  end
def first_public_at @first_public_at ||= if facet_values [ first_published_at_facet_key ] facet_values [ first_published_at_facet_key ] else changes = reverse_chronological_change_history changes . any? ? changes . last [ :timestamp ] : nil end end
first_published_at does not have reliable data
at time of writing dates could be after public_updated_at
details.first_public_at is not provided
https://trello.com/c/xCJ3RN6W
first_published_at does not have reliable data at time of writing dates could be after public_updated_at details . first_public_at is not provided https : // trello . com / c / xCJ3RN6W