Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Release Candidate v1.8.0 #134

Merged
merged 37 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
633da60
adds underline to links
DanielCouzens Aug 6, 2024
7e42ef7
updates version cadence
DanielCouzens Aug 6, 2024
0aaf0d6
Updates readme
DanielCouzens Aug 6, 2024
7743b5d
updates scss format
DanielCouzens Aug 6, 2024
c7eda07
Merge pull request #127 from epimorphics/issue/126-landing-ensure-lin…
DanielCouzens Aug 6, 2024
17ba4de
updates gemfile
DanielCouzens Aug 19, 2024
13aae40
updates changelog
DanielCouzens Aug 19, 2024
239b267
Merge pull request #128 from epimorphics/spike/update-gemfile
DanielCouzens Aug 19, 2024
86865ff
build: updated .gitignore
jonrandahl Aug 21, 2024
906f8aa
build: updated makefile
jonrandahl Aug 21, 2024
a3a774e
feat: addition of metrics to landing app
jonrandahl Aug 21, 2024
b26f50b
refactor: additional a11y improvements
jonrandahl Aug 21, 2024
27af4de
feat: prometheus metrics
jonrandahl Aug 28, 2024
ccf39ad
style: rubocop linting fixes
jonrandahl Aug 28, 2024
9b4c5d6
refactor: expand argument name for readability
jonrandahl Aug 28, 2024
698a509
build: update to assets target
jonrandahl Aug 28, 2024
16fcc29
build: incremented updated version minor cadence
jonrandahl Aug 28, 2024
d576621
docs: Updated CHANGELOG
jonrandahl Aug 28, 2024
1116336
Fixes landing page application error
bogdanadrianmarc Sep 3, 2024
b27def7
Removed /doc/ from accessibility and privacy routes
bogdanadrianmarc Sep 3, 2024
78e2238
Set the correct a11y and privacy statement routes for testing
bogdanadrianmarc Sep 3, 2024
27524be
Set the correct a11y and privacy statement routes for development
bogdanadrianmarc Sep 3, 2024
8a0cf82
Fixed wording and formatting errors in changelog entry
bogdanadrianmarc Sep 3, 2024
801584e
Added changelog entry
bogdanadrianmarc Sep 3, 2024
e6dfb89
Small typo fix
bogdanadrianmarc Sep 3, 2024
af6f5e4
Merge pull request #131 from epimorphics/issue/130-routing-issues-fix
bogdanadrianmarc Sep 3, 2024
48845ea
build: Updated `LR_Common_Styles.gem` to v.1.9.7
jonrandahl Sep 4, 2024
9546d9d
Merge pull request #132 from epimorphics/spike/update-common-styles-g…
jonrandahl Sep 4, 2024
a14e09b
Moved all README information into the wiki
bogdanadrianmarc Sep 4, 2024
e786512
Added short description about the project to the README
bogdanadrianmarc Sep 5, 2024
2dcb574
README rewording
bogdanadrianmarc Sep 5, 2024
bbacd57
Update README.md
bogdanadrianmarc Sep 5, 2024
3d07c67
build: application configuration unification
jonrandahl Sep 5, 2024
e689999
docs: Updated CHANGELOG
jonrandahl Sep 5, 2024
d3fa71d
build: update to `lr_common_styles` gem v1.9.8
jonrandahl Sep 5, 2024
b9e1a14
Merge pull request #133 from epimorphics/spike/application-configurat…
jonrandahl Sep 5, 2024
425fa53
Merge branch 'preprod' into task/release-candidate-1.8.0
jonrandahl Sep 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 39 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,51 @@
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

!/log/.keep
.byebug_history
.github-token
.npmrc
.tags
# Ignore vscode config
.vscode
.yarn-integrity

## Ignore bundler configuration:
/.bundle
/vendor/bundle
/lib/bundler/man/

# Ignore all logfiles and tempfiles.
/log/*
/node_modules
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore Byebug command history file.
.byebug_history

# Ignore node_modules
node_modules/

# Ignore precompiled javascript packs
/public/packs
/public/packs-test
/tmp
coverage
fc_simple.json
/public/assets

# Ignore uploaded files in development
/storage/*
!/storage/.keep
/public/uploads

### Rails specific ###
.byebug_history
/public/system
/coverage/
tmp

# Ignore files specific to the development environment
fc.json
fc_simple.json
index-names.txt
index.json
node_modules/
public/assets
tags
yarn-debug.log*
yarn-error.log

# Ignore dot files used by environment or IDE tools
.tags
.tool-versions
.github-token
.npmrc
34 changes: 31 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@
This app presents the landing page experience for landregistry.data.gov.uk,
including the SPARQL Qonsole

## 1.8.0 - 2024-09

- (Jon) Moved all mirrored configuration settings from individual environments
into the application configuration to reduce the need to manage multiple
sources of truth
- (Bogdan) Fixed a bug where the language selector was not working correctly
when the user was on the accessibility or privacy pages
[GH-130](https://github.com/epimorphics/lr-landing/issues/130)
- (Jon) Implemented improved boilerplate metrics integration to offer analysis
of current application usage stats
- (Jon) Implemented the dynamic page title approach used in the other suite apps
to the accessibility and privacy translation templates
- (Jon) Converted the privacy templates to match the same haml formatting
language used in the app
- (Jon) Tweaked the application controller to improve selected language option
to be applied for the pages
- (Jon) Reorganised makefile targets alphabetically as well as mirrored other
improvements from the other applications in the suite
- (Jon) Updated .gitignore file to mirror the current approach in the other HMLR
apps

## 1.7.7 - 2024-08

- (Dan) Updates gemfile to use v1.9.5 lr_common_styles
- (Dan) Adds underlines to links in body text to meet WCAG 2.2 accessibility
requirements [GH-126](https://github.com/epimorphics/lr-landing/issues/126)

## 1.7.6 - 2024-06

- (Jon) - Updated the deployment.yaml file to mirror the new branch names post
Expand All @@ -26,7 +53,8 @@ including the SPARQL Qonsole

- (Jon) Updated the `app/controllers/application_controller.rb` to include the
`before_action` for the `change_default_caching_policy` method to ensure the
default `Cache-Control` header for all requests is set to 5 minutes (300 seconds).
default `Cache-Control` header for all requests is set to 5 minutes (300
seconds).

## 1.7.3 - 2023-06-07

Expand Down Expand Up @@ -55,8 +83,8 @@ including the SPARQL Qonsole
- (Jon) Updated and improved the build files for the new infrastructure use.
- (Jon) Minor text changes to the `Gemfile` to include instructions for running
Epimorphics specific gems locally during the development of those gems.
- (Jon) Updated the production `json_rails_logger` gem version to be at least the
current version `~>0.3.5` (this is to cover out of sync release versions)
- (Jon) Updated the production `json_rails_logger` gem version to be at least
the current version `~>0.3.5` (this is to cover out of sync release versions)
- (Jon) Updated the production `lr_common_styles` gem version to be at least the
current version `~>1.9.1` (this is to cover out of sync release versions)
- (Jon) Refactored the version cadence creation to include a SUFFIX value if
Expand Down
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gem 'jquery-rails'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'

gem 'get_process_mem', '~> 0.2.7'
gem 'haml-rails', '~> 2.0.0'
gem 'http_accept_language'
gem 'prometheus-client', '~> 4.0'
Expand All @@ -37,7 +38,7 @@ end
# ! These "local" paths do not work with a docker image - use the repo instead
# gem 'qonsole-rails', path: '~/Epimorphics/clients/land-registry/projects/qonsole-rails'
# gem 'json_rails_logger', '~> 1.0.0', path: '~/Epimorphics/shared/json-rails-logger/'
# gem 'lr_common_styles', '~> 1.9.3', path: '~/Epimorphics/clients/land-registry/projects/lr_common_styles/'
# gem 'lr_common_styles', '~> 1.9.0', path: '~/Epimorphics/clients/land-registry/projects/lr_common_styles/'
# rubocop:enable Layout/LineLength

# TODO: In production you want to set this to the gem from the epimorphics github repo
Expand All @@ -46,5 +47,5 @@ gem 'qonsole-rails', git: 'https://github.com/epimorphics/qonsole-rails'
# TODO: In production you want to set this to the gem from the epimorphics package repo
source 'https://rubygems.pkg.github.com/epimorphics' do
gem 'json_rails_logger', '~> 1.0.0'
gem 'lr_common_styles', '~> 1.9.3'
gem 'lr_common_styles', '~> 1.9.0'
end
13 changes: 8 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ GEM
tzinfo (~> 1.1)
arel (9.0.0)
ast (2.4.2)
autoprefixer-rails (10.4.16.0)
autoprefixer-rails (10.4.19.0)
execjs (~> 2)
bindex (0.8.1)
bootstrap-sass (3.4.1)
Expand All @@ -85,6 +85,8 @@ GEM
ffi (1.15.5)
font-awesome-rails (4.7.0.8)
railties (>= 3.2, < 8.0)
get_process_mem (0.2.7)
ffi (~> 1.0)
globalid (1.0.1)
activesupport (>= 5.0)
govuk_elements_rails (2.0.0)
Expand Down Expand Up @@ -155,7 +157,7 @@ GEM
parser (3.1.1.0)
ast (~> 2.4.1)
prometheus-client (4.0.0)
puma (5.6.7)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.6.2)
rack (2.2.8)
Expand Down Expand Up @@ -263,14 +265,14 @@ GEM
json
lograge
railties
lr_common_styles (1.9.3)
lr_common_styles (1.9.8)
bootstrap-sass (~> 3.4.0)
font-awesome-rails (~> 4.7.0.1)
govuk_elements_rails (~> 2.0.0)
govuk_frontend_toolkit (~> 4.18.1)
govuk_template (~> 0.18.1)
haml-rails (~> 2.0.0)
jquery-rails (~> 4.3.5)
jquery-rails (>= 4.3.5, < 4.7.0)
lodash-rails (~> 4.17.14)
modernizr-rails (~> 2.7.1)
modulejs-rails (~> 2.2.0.0)
Expand All @@ -285,12 +287,13 @@ PLATFORMS

DEPENDENCIES
byebug
get_process_mem (~> 0.2.7)
haml-rails (~> 2.0.0)
http_accept_language
jbuilder (~> 2.0)
jquery-rails
json_rails_logger (~> 1.0.0)!
lr_common_styles (~> 1.9.3)!
lr_common_styles (~> 1.9.0)!
prometheus-client (~> 4.0)
puma
qonsole-rails!
Expand Down
31 changes: 24 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: assets clean image lint publish realclean run tag test vars
.PHONY: assets auth check clean image lint local publish realclean run tag test vars

ACCOUNT?=$(shell aws sts get-caller-identity | jq -r .Account)
ALPINE_VERSION?=3.13
Expand Down Expand Up @@ -27,23 +27,27 @@ REPO?=${ECR}/${IMAGE}
GITHUB_TOKEN=.github-token
BUNDLE_CFG=.bundle/config

all: image

${BUNDLE_CFG}: ${GITHUB_TOKEN}
@./bin/bundle config set --local rubygems.pkg.github.com ${GPR_OWNER}:`cat ${GITHUB_TOKEN}`

${GITHUB_TOKEN}:
@echo ${PAT} > ${GITHUB_TOKEN}

assets:
@./bin/bundle config set --local without 'development'
all: image

assets: auth
@./bin/bundle config set --local without 'development test'
@./bin/bundle install
@./bin/rails assets:clean assets:precompile

auth: ${GITHUB_TOKEN} ${BUNDLE_CFG}

check: lint test
@echo "All checks passed."

clean:
@[ -d public/assets ] && ./bin/rails assets:clobber || :
@@ rm -rf bundle coverage log node_modules

image: auth
@echo Building ${REPO}:${TAG} ...
Expand All @@ -63,6 +67,12 @@ image: auth
lint: assets
@./bin/bundle exec rubocop

local:
@echo "Installing all packages ..."
@./bin/bundle install
@echo "Starting local server ..."
@./bin/rails server -p ${PORT}

publish: image
@echo Publishing image: ${REPO}:${TAG} ...
@docker push ${REPO}:${TAG} 2>&1
Expand All @@ -71,16 +81,23 @@ publish: image
realclean: clean
@rm -f ${GITHUB_TOKEN} ${BUNDLE_CFG}

run:
run: start
@if docker network inspect dnet > /dev/null 2>&1; then echo "Using docker network dnet"; else echo "Create docker network dnet"; docker network create dnet; sleep 2; fi
@docker run -p ${PORT}:3000 -e API_SERVICE_URL=${API_SERVICE_URL} --network dnet --rm --name ${SHORTNAME} ${REPO}:${TAG}

server: assets start
@export SECRET_KEY_BASE=$(./bin/rails secret)
@API_SERVICE_URL=${API_SERVICE_URL} ./bin/rails server -p ${PORT}

start:
@docker stop ${SHORTNAME} > /dev/null 2>&1 || :
@echo "Starting ${SHORTNAME} ..."
@docker run -p ${PORT}:3000 --network dnet --rm --name ${SHORTNAME} ${REPO}:${TAG}

tag:
@echo ${TAG}

test: assets
@echo "Running unit tests ..."
@./bin/rails test

vars:
Expand Down
Loading