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

Upgrade myjobs #2032

Merged
merged 3 commits into from
May 20, 2022
Merged
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
12 changes: 4 additions & 8 deletions apps/myjobs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.2.7.1'
gem 'rails', '6.0.5'
# Use sqlite3 as the database for Active Record
# Note that the version has been fixed due to an incompatibilty
# https://github.com/rails/rails/issues/35153
gem 'sqlite3', '1.3.13'
gem 'sqlite3', '1.4.2'
Oglopf marked this conversation as resolved.
Show resolved Hide resolved
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
Expand Down Expand Up @@ -60,13 +60,9 @@ gem "local_time", "~> 1.0.3"
gem 'dotenv-rails', '~> 2.1'
gem 'jquery-datatables-rails', '~> 3.4'
gem "js-routes", "~> 1.2.4"
gem 'osc_machete_rails', '~> 1.3.0'
gem 'osc_machete_rails', '~> 2.1.2'
gem 'pbs', '~> 2.2.1'
gem 'ood_appkit', '~> 1.1.4'

# thor > 0.19.1 prints some warnings to stderr which will require changes
# https://github.com/erikhuda/thor/issues/538
gem 'thor', '0.19.1'
gem 'ood_appkit', '~> 2.0'

# we have to lock rdoc because 6.4 depends on psych 4.0 which breaks with
# Psych::BadAlias: Cannot load database configuration: Unknown alias: default
Expand Down
129 changes: 72 additions & 57 deletions apps/myjobs/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,50 +1,63 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.7.1)
actionpack (= 5.2.7.1)
actioncable (6.0.5)
actionpack (= 6.0.5)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.7.1)
actionpack (= 5.2.7.1)
actionview (= 5.2.7.1)
activejob (= 5.2.7.1)
actionmailbox (6.0.5)
actionpack (= 6.0.5)
activejob (= 6.0.5)
activerecord (= 6.0.5)
activestorage (= 6.0.5)
activesupport (= 6.0.5)
mail (>= 2.7.1)
actionmailer (6.0.5)
actionpack (= 6.0.5)
actionview (= 6.0.5)
activejob (= 6.0.5)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.7.1)
actionview (= 5.2.7.1)
activesupport (= 5.2.7.1)
actionpack (6.0.5)
actionview (= 6.0.5)
activesupport (= 6.0.5)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.7.1)
activesupport (= 5.2.7.1)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.0.5)
actionpack (= 6.0.5)
activerecord (= 6.0.5)
activestorage (= 6.0.5)
activesupport (= 6.0.5)
nokogiri (>= 1.8.5)
actionview (6.0.5)
activesupport (= 6.0.5)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.7.1)
activesupport (= 5.2.7.1)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (6.0.5)
activesupport (= 6.0.5)
globalid (>= 0.3.6)
activemodel (5.2.7.1)
activesupport (= 5.2.7.1)
activerecord (5.2.7.1)
activemodel (= 5.2.7.1)
activesupport (= 5.2.7.1)
arel (>= 9.0)
activestorage (5.2.7.1)
actionpack (= 5.2.7.1)
activerecord (= 5.2.7.1)
marcel (~> 1.0.0)
activesupport (5.2.7.1)
activemodel (6.0.5)
activesupport (= 6.0.5)
activerecord (6.0.5)
activemodel (= 6.0.5)
activesupport (= 6.0.5)
activestorage (6.0.5)
actionpack (= 6.0.5)
activejob (= 6.0.5)
activerecord (= 6.0.5)
marcel (~> 1.0)
activesupport (6.0.5)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
arel (9.0.0)
autoprefixer-rails (8.6.5)
execjs
bootstrap-sass (3.4.1)
Expand Down Expand Up @@ -98,7 +111,7 @@ GEM
activesupport (>= 4)
railties (>= 4)
request_store (~> 1.0)
loofah (2.17.0)
loofah (2.18.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
Expand All @@ -114,41 +127,43 @@ GEM
nokogiri (1.13.6)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
ood_appkit (1.1.5)
ood_appkit (2.1.0)
addressable (~> 2.4)
lograge (~> 0.3)
ood_core (~> 0.1)
rails (> 4.0.7, < 6.0)
rails (>= 6.0.0, < 7)
redcarpet (~> 3.2)
ood_core (0.19.0)
ffi (~> 1.9, >= 1.9.6)
ood_support (~> 0.0.2)
ood_support (0.0.3)
osc-machete (1.2.2)
osc-machete (2.0.0)
mustache
pbs (~> 2.0)
osc_machete_rails (1.3.1)
osc-machete (~> 1.2.0)
rails (~> 5.0, >= 5.0.0)
osc_machete_rails (2.1.2)
osc-machete (~> 2.0)
rails (>= 5.0.0)
pbs (2.2.1)
ffi (~> 1.9, >= 1.9.6)
public_suffix (4.0.7)
racc (1.6.0)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.7.1)
actioncable (= 5.2.7.1)
actionmailer (= 5.2.7.1)
actionpack (= 5.2.7.1)
actionview (= 5.2.7.1)
activejob (= 5.2.7.1)
activemodel (= 5.2.7.1)
activerecord (= 5.2.7.1)
activestorage (= 5.2.7.1)
activesupport (= 5.2.7.1)
rails (6.0.5)
actioncable (= 6.0.5)
actionmailbox (= 6.0.5)
actionmailer (= 6.0.5)
actionpack (= 6.0.5)
actiontext (= 6.0.5)
actionview (= 6.0.5)
activejob (= 6.0.5)
activemodel (= 6.0.5)
activerecord (= 6.0.5)
activestorage (= 6.0.5)
activesupport (= 6.0.5)
bundler (>= 1.3.0)
railties (= 5.2.7.1)
railties (= 6.0.5)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
Expand All @@ -159,12 +174,12 @@ GEM
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.2)
loofah (~> 2.3)
railties (5.2.7.1)
actionpack (= 5.2.7.1)
activesupport (= 5.2.7.1)
railties (6.0.5)
actionpack (= 6.0.5)
activesupport (= 6.0.5)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
thor (>= 0.20.3, < 2.0)
rake (13.0.6)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
Expand All @@ -186,7 +201,7 @@ GEM
tilt (>= 1.1, < 3)
sassc (2.4.0)
ffi (~> 1.9)
sdoc (2.3.2)
sdoc (2.4.0)
rdoc (>= 5.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
Expand All @@ -195,8 +210,8 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.19.1)
sqlite3 (1.4.2)
thor (1.2.1)
thread_safe (0.3.6)
tilt (2.0.10)
timecop (0.9.5)
Expand All @@ -207,6 +222,7 @@ GEM
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.5.4)

PLATFORMS
ruby
Expand All @@ -226,16 +242,15 @@ DEPENDENCIES
js-routes (~> 1.2.4)
local_time (~> 1.0.3)
mocha (~> 1.1)
ood_appkit (~> 1.1.4)
osc_machete_rails (~> 1.3.0)
ood_appkit (~> 2.0)
osc_machete_rails (~> 2.1.2)
pbs (~> 2.2.1)
rails (= 5.2.7.1)
rails (= 6.0.5)
rails-controller-testing
rdoc (= 6.3.3)
sass-rails (~> 5.0)
sdoc
sqlite3 (= 1.3.13)
thor (= 0.19.1)
sqlite3 (= 1.4.2)
timecop (~> 0.9)
uglifier (>= 1.3.0)

Expand Down
2 changes: 1 addition & 1 deletion apps/myjobs/app/assets/javascripts/workflows.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(window).focus ->
if id?
$.ajax
type: 'GET'
url: Routes.workflow_path(id)
url: Routes.workflow_path(id, format: 'json')
contentType: "application/json; charset=utf-8"
dataType: "json"
error: (jqXHR, textStatus, errorThrown) ->
Expand Down
19 changes: 14 additions & 5 deletions apps/myjobs/config/application.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
require_relative 'boot'

require 'active_record/railtie'
require 'action_controller/railtie'
require 'action_view/railtie'
require 'rails/test_unit/railtie'
require 'sprockets/railtie'
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
# require "active_job/railtie"
require "active_record/railtie"
# require "active_storage/engine"
require "action_controller/railtie"
# require "action_mailer/railtie"
# require "action_mailbox/engine"
# require "action_text/engine"
require "action_view/railtie"
# require "action_cable/engine"
require "sprockets/railtie"
require "rails/test_unit/railtie"


# Require the gems listed in Gemfile, including any gems
Expand Down
21 changes: 7 additions & 14 deletions apps/myjobs/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false

# Eager load code on boot, necessary for
# OscMacheteRails::update_status_of_all_active_jobs_on_each_request
# Do not eager load code on boot.
config.eager_load = false

# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Show full error reports.
config.consider_all_requests_local = true

# Enable/disable caching. By default caching is disabled.
# Run rails dev:cache to toggle caching.
if Rails.root.join('tmp', 'caching-dev.txt').exist?
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true

config.cache_store = :memory_store
config.public_file_server.headers = {
Expand All @@ -29,14 +28,6 @@
config.cache_store = :null_store
end

# Store uploaded files on the local file system (see config/storage.yml for options)
# config.active_storage.service = :local

# Don't care if the mailer can't send.
# config.action_mailer.raise_delivery_errors = false

# config.action_mailer.perform_caching = false

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

Expand All @@ -54,10 +45,12 @@
# Suppress logger output for asset requests.
config.assets.quiet = true

# Raises error for missing translations
# Raises error for missing translations.
# config.action_view.raise_on_missing_translations = true

# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker

config.hosts = nil
end
25 changes: 4 additions & 21 deletions apps/myjobs/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,19 @@

# Compress JavaScripts and CSS.
config.assets.js_compressor = Uglifier.new(harmony: true)
# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false

# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb

# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com'

# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX

# Store uploaded files on the local file system (see config/storage.yml for options)
# we don't use or depend on active_storage so we can't enable the config
# config.active_storage.service = :local

# Mount Action Cable outside main process or domain
# config.action_cable.mount_path = nil
# config.action_cable.url = 'wss://example.com/cable'
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true

Expand All @@ -55,21 +45,14 @@
config.log_level = :debug

# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]
config.log_tags = [ :request_id ]

# Use a different cache store in production.
# config.cache_store = :mem_cache_store

# Use a real queuing backend for Active Job (and separate queues per environment)
# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "job_constructor_#{Rails.env}"

# we don't use or depend on action_mailer so we can't enable these configs
# config.action_mailer.perform_caching = false

# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false
# config.active_job.queue_name_prefix = "job_constructor_production"

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
Expand Down
Loading