Skip to content

Commit

Permalink
Merge pull request #122 from epimorphics/dev-infrastructure
Browse files Browse the repository at this point in the history
Release Candidate - v1.7.6
  • Loading branch information
jonrandahl authored Mar 15, 2024
2 parents ad417ed + 0c71a8d commit 4ddf6f7
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
This app presents the landing page experience for landregistry.data.gov.uk,
including the SPARQL Qonsole

## 1.7.6 - 2024-03-12

- (Jon) Reconfigured the `detailed documentation` links, both english and welsh,
to point to the `app/doc/ppd` path; alongside adding tests querying the new
route to ensure the route is valid and contains the expected content. All
redirections for any old routes will now handled by the proxy server.

## 1.7.5 - 2023-11-23

- (Jon) Updated the `lr_common_styles` gem to the latest 1.9.3 patch release.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apk add --update \
nodejs \
tzdata \
&& rm -rf /var/cache/apk/* \
&& gem update --system \
&& gem update --system 3.4.22 \
&& gem install bundler:$BUNDLER_VERSION \
&& bundle config --global frozen 1

Expand Down
1 change: 0 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ def set_locale
def change_default_caching_policy
expires_in 5.minutes, public: true, must_revalidate: true if Rails.env.production?
end

end
2 changes: 1 addition & 1 deletion app/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Version
MAJOR = 1
MINOR = 7
REVISION = 5
REVISION = 6
SUFFIX = nil
VERSION = "#{MAJOR}.#{MINOR}.#{REVISION}#{SUFFIX && ".#{SUFFIX}"}"
end
3 changes: 1 addition & 2 deletions app/views/landing/_index_cy.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
%h3.heading-small Gwybodaeth bellach
%ul.list.list-bullet
%li
= link_to( ppd_doc_path ) do
dogfennaeth fanwl
= link_to('dogfennaeth fanwl', '/app/doc/ppd')
am y Data Pris a Dalwyd, y model data, a defnyddio’r data.

%h2#standard-reports.heading-medium Lluniwr Adroddiad Safonol
Expand Down
3 changes: 1 addition & 2 deletions app/views/landing/_index_en.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
%h3.heading-small Further information
%ul.list.list-bullet
%li
= link_to( ppd_doc_path ) do
detailed documentation
= link_to('detailed documentation', '/app/doc/ppd')
about the Price Paid Data, the data model, and using the data.

%h2#standard-reports.heading-medium Standard Report Builder
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/sentry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if ENV['SENTRY_API_KEY']
Sentry.init do |config|
config.dsn = ENV['SENTRY_API_KEY']
config.environment = ENV['DEPLOYMENT_ENVIRONMENT'] || Rails.env
config.environment = ENV.fetch('DEPLOYMENT_ENVIRONMENT') { Rails.env }
config.enabled_environments = %w[production]
config.release = Version::VERSION
config.breadcrumbs_logger = %i[active_support_logger http_logger]
Expand Down
10 changes: 8 additions & 2 deletions test/integration/documentation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ class DocumentationTest < ActionDispatch::IntegrationTest
assert_equal(302, response.status)
end

test 'PPD docs page' do
get '/doc/ppd'
test 'ppd_doc_path variable links correctly' do
get ppd_doc_path
assert_response :success
end

test 'ppd doc loads correctly' do
get ppd_doc_path
assert_select 'h1', 'Price Paid Linked Data'
assert_select 'h2', 'What does the Price Paid Dataset consist of?'
end
end

0 comments on commit 4ddf6f7

Please sign in to comment.