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

DEPRECATED: Handle Remediated Subject Headings #29

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
40 changes: 40 additions & 0 deletions .github/workflows/update_sh_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update subject headings config file

on:
workflow_dispatch:
schedule:
- cron: '0 8 1 * *' #8AM first of the month


jobs:
update_subject_headings:
runs-on: ubuntu-latest
outputs:
sha: ${{ steps.cpr.outputs.pull-request-head-sha }}
steps:
- uses: actions/checkout@v4
- name: Create .env file
run: cat env.* > .env
- name: Load .env file
uses: xom9ikk/dotenv@v2
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: set path
run: |
echo "$GITHUB_WORKSPACE/exe" >> $GITHUB_PATH
- name: get update
env:
ALMA_API_KEY: ${{ secrets.ALMA_API_KEY }}
SUBJECT_HEADING_REMEDIATION_SET_ID: ${{ vars.SUBJECT_HEADING_REMEDIATION_SET_ID }}

run: browse subjects generate_remediated_authorities_file
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
commit-message: "update remediated subject headings config file"
title: Update remediated subject headings config file
reviewers: niquerio
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ authority_browse.zip
reports/
*.db
.solargraph.yml
*.sql

tmp/*
!tmp/.keep
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.2 AS development
FROM ruby:3.3 AS development

# Check https://rubygems.org/gems/bundler/versions for the latest version.
ARG UNAME=app
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ gem "canister"
gem "rubyzip"
gem "semantic_logger"
gem "thor"
gem "marc"
gem "solr_cloud-connection", ">= 0.4.0"
gem "alma_rest_client", github: "mlibrary/alma_rest_client", tag: "v2.0.0"
gem "library_stdnums"

gem "sqlite3", "~> 1.4", platforms: :mri
gem "jdbc-sqlite3", "~> 3.28", platforms: :jruby
Expand Down
204 changes: 140 additions & 64 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,126 +1,200 @@
GIT
remote: https://github.com/mlibrary/alma_rest_client.git
revision: 9606225d82480b6d1568902813ae9018dd8c1acc
tag: v2.0.0
specs:
alma_rest_client (2.0.0)
activesupport (~> 7.0, >= 4.2)
faraday
faraday-retry
httpx
rexml

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
activesupport (7.1.3.4)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.4)
bigdecimal (3.1.8)
byebug (11.1.3)
canister (0.9.2)
coderay (1.1.3)
concurrent-ruby (1.2.2)
crack (0.4.5)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
diff-lcs (1.5.0)
diff-lcs (1.5.1)
docile (1.4.0)
dotenv (2.8.1)
faraday (2.7.12)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
dotenv (3.1.2)
drb (2.2.1)
faraday (2.10.0)
faraday-net_http (>= 2.0, < 3.2)
logger
faraday-follow_redirects (0.3.0)
faraday (>= 1, < 3)
faraday-net_http (3.0.2)
ffi (1.16.3)
ffi-icu (0.5.2)
faraday-net_http (3.1.0)
net-http
faraday-retry (2.2.1)
faraday (~> 2.0)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-aarch64-linux-musl)
ffi (1.17.0-arm-linux-gnu)
ffi (1.17.0-arm-linux-musl)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86-linux-gnu)
ffi (1.17.0-x86-linux-musl)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.0-x86_64-linux-musl)
ffi-icu (0.5.3)
ffi (~> 1.0, >= 1.0.9)
hashdiff (1.0.1)
http-2-next (1.0.1)
httpx (1.1.5)
http-2-next (>= 1.0.1)
json (2.7.1)
hashdiff (1.1.0)
http-2 (1.0.0)
httpx (1.3.0)
http-2 (>= 1.0.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
library_stdnums (1.6.0)
lint_roller (1.1.0)
method_source (1.0.0)
logger (1.6.0)
marc (1.2.0)
rexml
scrub_rb (>= 1.0.1, < 2)
unf
method_source (1.1.0)
milemarker (1.0.0)
mysql2 (0.5.5)
parallel (1.23.0)
parser (3.2.2.4)
minitest (5.24.1)
mutex_m (0.2.0)
mysql2 (0.5.6)
net-http (0.4.1)
uri
parallel (1.25.1)
parser (3.3.4.0)
ast (~> 2.4.1)
racc
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (5.0.4)
racc (1.7.3)
public_suffix (6.0.0)
racc (1.8.0)
rainbow (3.1.1)
regexp_parser (2.8.3)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
regexp_parser (2.9.2)
rexml (3.3.2)
strscan
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.57.2)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.64.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-prof (1.6.3)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-performance (1.21.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-prof (1.7.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
semantic_logger (4.15.0)
scrub_rb (1.0.1)
semantic_logger (4.16.0)
concurrent-ruby (~> 1.0)
sequel (5.75.0)
sequel (5.82.0)
bigdecimal
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
solr_cloud-connection (0.4.0)
faraday (~> 2.7.12)
httpx (~> 1.1.5)
rubyzip (~> 2.3.0)
sqlite3 (1.6.9-x86_64-linux)
standard (1.32.1)
solr_cloud-connection (0.5.0)
faraday (~> 2.0)
httpx (~> 1.0)
rubyzip (~> 2.0)
sqlite3 (1.7.3-aarch64-linux)
sqlite3 (1.7.3-arm-linux)
sqlite3 (1.7.3-arm64-darwin)
sqlite3 (1.7.3-x86-linux)
sqlite3 (1.7.3-x86_64-darwin)
sqlite3 (1.7.3-x86_64-linux)
standard (1.39.2)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.57.2)
rubocop (~> 1.64.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.2)
standard-performance (~> 1.4)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.2.1)
standard-performance (1.4.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.19.1)
rubocop-performance (~> 1.21.0)
standardrb (1.0.1)
standard
thor (1.3.0)
strscan (3.1.0)
thor (1.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.9.1)
unicode-display_width (2.5.0)
webmock (3.19.1)
uri (0.13.0)
webmock (3.23.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zinzout (0.1.1)

PLATFORMS
x86_64-linux
aarch64-linux
aarch64-linux-gnu
aarch64-linux-musl
arm-linux
arm-linux-gnu
arm-linux-musl
arm64-darwin
x86-linux
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
alma_rest_client!
byebug
canister
concurrent-ruby (~> 1.1)
Expand All @@ -130,6 +204,8 @@ DEPENDENCIES
ffi-icu
httpx
jdbc-sqlite3 (~> 3.28)
library_stdnums
marc
milemarker (~> 1.0)
mysql2
pry (~> 0.14)
Expand All @@ -147,4 +223,4 @@ DEPENDENCIES
zinzout (~> 0.1)

BUNDLED WITH
2.4.22
2.5.15
Loading
Loading