Skip to content

Commit

Permalink
Add CKAN maintenance page
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsanggds committed Aug 25, 2020
1 parent b0b61a8 commit cfeaac4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ def dashboard
@datafiles_count_by_format = Dataset.datafiles["formats"]["buckets"]
end

def ckan_maintenance
render "ckan_maintenance", status: :service_unavailable
end

private

def get_datasets_count
Expand Down
22 changes: 22 additions & 0 deletions app/views/pages/ckan_maintenance.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<% content_for :page_title do %>
CKAN maintenance
<% end %>

<main role="main" id="content">

<div class="text">
<h1 class="heading-large">
Data.gov.uk publishing freeze
</h1>

<p>data.gov.uk publishing freeze – 6:30am on Thursday 27 August to 11:59pm on Friday 28 August 2020</p>
<p>We’re making some improvements to your data.gov.uk publishing account.</p>
<p>You will not be able to publish, edit or delete datasets while we upgrade the data publishing tool.</p>
<p>There will not be any downtime for visitors to data.gov.uk – only publishing will be affected.</p>
<h2 class="heading-medium">Why we need to upgrade</h2>
<p>We’re upgrading to CKAN 2.8. This will make data.gov.uk more stable for users and publishers. It will also allow us to make further improvements to the publishing tool later this year.</p>
<p>You can see a detailed list of the CKAN 2.8 changes at: <a href="https://github.com/ckan/ckan/blob/2.8/CHANGELOG.rst#v283-2019-07-03">https://github.com/ckan/ckan/blob/2.8/CHANGELOG.rst#v283-2019-07-03</a></p>

<p>If you have any questions or concerns about the upgrade, please let us know: <a href="https://data.gov.uk/support">https://data.gov.uk/support</a></p>
</div>
</main>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
get 'site-changes', to: :site_changes
get 'support'
get 'terms'
get 'ckan_maintenance'
end

match "404", to: "errors#not_found", via: :all
Expand Down

0 comments on commit cfeaac4

Please sign in to comment.