Skip to content

Commit

Permalink
Applied PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesnottabs committed Aug 16, 2023
1 parent edf6239 commit 6491dca
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#DC_WEB_LIB_REGISTER_SOURCES_BODS=../register-sources-bods
#DC_WEB_LIB_REGISTER_SOURCES_OC=../register-sources-oc
#DC_WEB_LIB_REGISTER_SOURCES_PSC=../register-sources-psc
#DC_WEB_LIB_REGISTER_SOURCES_SK=../register-sources-sk
#DC_WEB_LIB_REGISTER_SOURCES_DK=../register-sources-dk
ADMIN_EMAILS=
BODS_EXPORT_AWS_REGION=eu-west-1
BODS_EXPORT_AWS_ACCESS_KEY_ID=
Expand Down
2 changes: 1 addition & 1 deletion app/service_objects/bods_statement_sorter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class BodsStatementSorter
def sort_statements(statements)
statements = statements.sort_by { |statement| statement.publicationDetails&.publicationDate }

statements_by_id = statements.map { |statement| [statement.statementID, statement] }.to_h
statements_by_id = statements.to_h { |statement| [statement.statementID, statement] }

used_ids = Set.new
new_statements = []
Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/download.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
%p Links to the most recent files we've exported:
%ul
- @exports.each do |export|
%li= link_to export.created_at.to_date, "https://#{ENV['BODS_EXPORT_S3_BUCKET_NAME']}.s3-eu-west-1.amazonaws.com/#{export.s3_path}", rel: 'nofollow'
%li= link_to export.created_at.to_date, "https://#{ENV.fetch('BODS_EXPORT_S3_BUCKET_NAME')}.s3-eu-west-1.amazonaws.com/#{export.s3_path}", rel: 'nofollow'

%h2{ id: 'what-is-it' } What is this data?
%p
Expand Down
2 changes: 1 addition & 1 deletion bin/configure-dev-lib
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -Eeuo pipefail

libs=(register-common register-sources-bods register-sources-oc register-sources-psc)
libs=(register-common register-sources-bods register-sources-oc register-sources-psc register-sources-sk register-sources-dk)

echo -e "\n=== Configuring dev libs"

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
- ${DC_WEB_LIB_REGISTER_SOURCES_BODS:-.dockerempty}:/home/x/lib/register-sources-bods
- ${DC_WEB_LIB_REGISTER_SOURCES_OC:-.dockerempty}:/home/x/lib/register-sources-oc
- ${DC_WEB_LIB_REGISTER_SOURCES_PSC:-.dockerempty}:/home/x/lib/register-sources-psc
- ${DC_WEB_LIB_REGISTER_SOURCES_DK:-.dockerempty}:/home/x/lib/register-sources-dk
- ${DC_WEB_LIB_REGISTER_SOURCES_SK:-.dockerempty}:/home/x/lib/register-sources-sk
- ./app:/home/x/r/app
- ./bin:/home/x/r/bin
- ./config:/home/x/r/config
Expand Down

0 comments on commit 6491dca

Please sign in to comment.