-
Notifications
You must be signed in to change notification settings - Fork 0
New and Modified Headings
Tiffany Chan edited this page Mar 21, 2023
·
1 revision
You can use FAST updater to automatically update modified headings in your repository and/or replace hard-coded strings with new FAST URIs. By default, FAST updater will parse an Excel spreadsheet for new/modified headings and search your repository for any applicable changes. You can run this command from the rails console:
# https://github.com/UVicLibrary/fast_update/blob/main/app/jobs/fast_update/parse_changes_job.rb
# filepaths = array of paths of the .xlsx files you want to parse. You can download these from
# http://fast.oclc.org/fastChanges/ or run FastUpdate::DownloadXlsxFilesJob
# This runs in the console
FastUpdate::ParseChangesJob(filepaths).perform_now
# This runs in the background
FastUpdate::ParseChangesJob(filepaths).perform_laterInstalling the sidekiq-cron gem allows you to schedule automatic updates. For example, you can schedule it to run once a month by creating a config/schedule.yml file as described in the gem's documentation. (There are many free sites available for generating the necessary cron expression.)
# All times must be converted to UTC
download_xlsx_files_job:
cron: "0 2 1 * *" # At 2 AM (6 PM PST/5 PM PDT) on the 1st of every month
class: "FastUpdate::DownloadXlsxFilesJob"
queue: default