Skip to content

Commit

Permalink
Update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Aug 1, 2023
1 parent 8f85c66 commit a00aa02
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/reports/future_content_change_statistics_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def call
government_document_supertype: supertypes(content_item)["government_document_supertype"],
).lists

output_string = "Changes to #{govuk_path} will trigger alerts on these lists:\n"
output_string = change_messages

list_names_array(lists).each { |ln| output_string += " - #{ln}\n" }

Expand All @@ -33,6 +33,20 @@ def call
output_string
end

def change_messages
if draft
[
"Publishing the drafted changes to #{govuk_path} will trigger alerts on these lists:\n",
"(NB: publishing as a minor change will not trigger alerts)",
]
else
[
"Publishing major changes to the information on #{govuk_path} will trigger alerts on these lists:\n",
"(NB: If major changes involve changes to the taxons/links/etc these lists will change)\n",
]
end
end

def content_store_client
return GdsApi.content_store unless draft

Expand Down

0 comments on commit a00aa02

Please sign in to comment.