Skip to content

Commit

Permalink
Release 154
Browse files Browse the repository at this point in the history
  • Loading branch information
mec committed Dec 5, 2024
2 parents 2b74b26 + d8fe035 commit ba727b6
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 139 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

[Full changelog][unreleased]

## Release 154 - 2024-12-05

[Full changelog][154]

- Remove Spring from development
- Switch to the Zeitwerk autoloader
- Use Rails 6.1 default configuration

## Release 153 - 2024-12-02

[Full changelog][153]
Expand Down Expand Up @@ -1719,7 +1727,8 @@
- Planned start and end dates are mandatory
- Actual start and end dates must not be in the future

[unreleased]: https://github.com/UKGovernmentBEIS/beis-report-official-development-assistance/compare/release-153...HEAD
[unreleased]: https://github.com/UKGovernmentBEIS/beis-report-official-development-assistance/compare/release-154...HEAD
[154]: https://github.com/UKGovernmentBEIS/beis-report-official-development-assistance/compare/release-153...release-154
[153]: https://github.com/UKGovernmentBEIS/beis-report-official-development-assistance/compare/release-152...release-153
[152]: https://github.com/UKGovernmentBEIS/beis-report-official-development-assistance/compare/release-151...release-152
[151]: https://github.com/UKGovernmentBEIS/beis-report-official-development-assistance/compare/release-150...release-151
Expand Down
5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ruby File.read(".ruby-version").strip
gem "acts_as_tree"
gem "addressable"
gem "audited", "~> 5.4"
gem "aws-sdk-s3", "~> 1.174"
gem "aws-sdk-s3", "~> 1.176"
gem "bootsnap", ">= 1.1.0", require: false
gem "cssbundling-rails", "~> 1.4"
gem "csv-safe"
Expand Down Expand Up @@ -67,9 +67,6 @@ group :development do
gem "better_errors"
gem "html2haml"
gem "listen", ">= 3.0.5", "< 3.10"
gem "spring"
gem "spring-commands-rspec"
gem "spring-watcher-listen", "~> 2.1.0"
gem "rails_layout"
gem "web-console", ">= 3.3.0"
end
Expand Down
27 changes: 9 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ GEM
activerecord (>= 5.0, < 7.2)
request_store (~> 1.2)
aws-eventstream (1.3.0)
aws-partitions (1.1013.0)
aws-partitions (1.1017.0)
aws-sdk-core (3.214.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
Expand All @@ -80,7 +80,7 @@ GEM
aws-sdk-kms (1.96.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.174.0)
aws-sdk-s3 (1.176.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -285,14 +285,14 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.4)
nokogiri (1.16.7)
nokogiri (1.16.8)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.7-arm64-darwin)
nokogiri (1.16.8-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
nokogiri (1.16.8-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
nokogiri (1.16.8-x86_64-linux)
racc (~> 1.4)
notifications-ruby-client (6.2.0)
jwt (>= 1.5, < 3)
Expand Down Expand Up @@ -354,9 +354,9 @@ GEM
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
rails-html-sanitizer (1.6.1)
loofah (~> 2.21)
nokogiri (~> 1.14)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
rails-i18n (7.0.10)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
Expand Down Expand Up @@ -479,12 +479,6 @@ GEM
slim (4.1.0)
temple (>= 0.7.6, < 0.9)
tilt (>= 2.0.6, < 2.1)
spring (4.2.1)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
spring-watcher-listen (2.1.0)
listen (>= 2.7, < 4.0)
spring (>= 4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand Down Expand Up @@ -547,7 +541,7 @@ DEPENDENCIES
acts_as_tree
addressable
audited (~> 5.4)
aws-sdk-s3 (~> 1.174)
aws-sdk-s3 (~> 1.176)
better_errors
binding_of_caller
bootsnap (>= 1.1.0)
Expand Down Expand Up @@ -608,9 +602,6 @@ DEPENDENCIES
sidekiq (~> 7)
simplecov (~> 0.22.0)
simplecov-lcov (~> 0.8.0)
spring
spring-commands-rspec
spring-watcher-listen (~> 2.1.0)
standard
strip_attributes
tzinfo-data
Expand Down
1 change: 0 additions & 1 deletion bin/rails
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'
1 change: 0 additions & 1 deletion bin/rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require_relative "../config/boot"
require "rake"
Rake.application.run
5 changes: 0 additions & 5 deletions bin/rspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

begin
load File.expand_path('spring', __dir__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require 'bundler/setup'
load Gem.bin_path('rspec-core', 'rspec')
14 changes: 0 additions & 14 deletions bin/spring

This file was deleted.

2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Application < Rails::Application
end

# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0
config.load_defaults 6.1

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
Expand Down
6 changes: 1 addition & 5 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

config.cache_classes = !(defined?(Spring::Env) && Spring::Env.new.server_running?)
config.cache_classes = false

config.action_view.cache_template_loading = true

# Prevent 'reloading is disabled' errors from Spring
# https://github.com/rails/spring/issues/598
config.autoloader = :classic

# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
Expand Down
67 changes: 0 additions & 67 deletions config/initializers/new_framework_defaults_6_1.rb

This file was deleted.

16 changes: 0 additions & 16 deletions config/spring.rb

This file was deleted.

13 changes: 8 additions & 5 deletions doc/background-jobs.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Background jobs

We use Sidekiq (backed by Redis) to handle sending emails. See
We use Sidekiq (backed by Redis) to handle sending emails and other asynchronous
jobs. See
[ADR9](/doc/architecture/decisions/0009-use-sidekiq-and-redis-to-send-emails.md).
This might be expanded to handle other asynchronous jobs in the future.

The container which runs Sidekiq and processes 'jobs' taken from the
Redis queue is defined in AWS task definitions as a "sideCar" container.

## Debugging via console
## Sidekiq UI

The application provides the Sidekiq UI at `/sidekiq` for service owner users.

### Connect to the instance
## Debugging via console

Currently, dxw developers don't have access to the live application console.
You will first need to get a console on the environment, see the
[documentation](/doc/console-access.md) for details.

### See overview of jobs

Expand Down
2 changes: 1 addition & 1 deletion spec/models/guidance_url_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

RSpec.describe Activity::GuidanceUrl, type: :model do
RSpec.describe GuidanceUrl, type: :model do
describe "#to_s" do
it "returns a url if one exists" do
url = GuidanceUrl.new(:activity, :programme_status)
Expand Down

0 comments on commit ba727b6

Please sign in to comment.