Skip to content

Commit

Permalink
Merge pull request #547 from better-together-org/wip/new-to-nl
Browse files Browse the repository at this point in the history
Merges in work targeting the new to nl project. better_together v0.60
  • Loading branch information
rsmithlal authored Sep 11, 2024
2 parents 0f75cb3 + 14cecaa commit 9689bc6
Show file tree
Hide file tree
Showing 22 changed files with 555 additions and 55 deletions.
2 changes: 2 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ALLOWED_HOSTS=http://localhost:3001
APP_HOST=http://localhost:3001
BASE_URL=http://localhost:3001
ES_PORT='9202'
ES_HOST='http://elasticsearch'
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_HOST=better-together-db
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@ jobs:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
elasticsearch:
image: elasticsearch:7.17.23
ports:
- "9200:9200"
env:
"node.name": elasticsearch
"cluster.name": better-together-es
"discovery.seed_hosts": elasticsearch
"discovery.type": single-node
"bootstrap.memory_lock": true
"ES_JAVA_OPTS": "-Xms512m -Xmx512m"
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
ES_HOST: "http://localhost"
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
7 changes: 5 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ gem 'asset_sync'
gem 'aws-sdk-s3', require: false

# Use the published version of better_together for production
gem 'better_together', '~> 0.5.0',
gem 'better_together', '~> 0.6.0',
github: 'better-together-org/community-engine-rails',
branch: 'main'

# Use the local development version of better_together
# gem 'better_together', '~> 0.4.1', path: '/community-engine'
# gem 'better_together', path: '/community-engine'

# bcrypt for secure password handling
gem 'bcrypt', '~> 3.1.20'
Expand Down Expand Up @@ -45,6 +45,9 @@ gem 'sentry-rails'
gem 'sentry-ruby'
gem 'stackprof'

# Storext for easier json attributes, custom fork for Better Together
gem 'storext', github: 'better-together-org/storext'

# Uglifier for JavaScript compression
gem 'uglifier', '>= 1.3.0'

Expand Down
87 changes: 73 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
GIT
remote: https://github.com/better-together-org/community-engine-rails.git
revision: 145ad3890b26954e1ff247ed2c48ff9520d8a718
revision: 28d4080a4334a66e64eacab251186b737085cd17
branch: main
specs:
better_together (0.5.0)
better_together (0.6.0)
active_storage_validations
activerecord-import
activerecord-postgis-adapter
bootstrap (~> 5.3.2)
dartsass-sprockets (~> 3.1)
devise
devise-i18n
devise-jwt
elasticsearch-model (~> 7)
elasticsearch-rails (~> 7)
font-awesome-sass (~> 6.5)
friendly_id (>= 5.2, < 5.6)
friendly_id-mobility (~> 1.0.4)
Expand All @@ -20,6 +23,8 @@ GIT
jsonapi-resources (>= 0.10.0)
mobility (>= 1.0.1, < 2.0)
mobility-actiontext (~> 1.1)
noticed
premailer-rails
pundit (>= 2.1, < 2.5)
pundit-resources
rack-cors (>= 1.1.1, < 2.1.0)
Expand All @@ -28,6 +33,7 @@ GIT
rswag (>= 2.3.1, < 2.15.0)
sprockets-rails
stimulus-rails (~> 1.3)
storext
translate_enum
turbo-rails (~> 2.0)

Expand All @@ -41,6 +47,14 @@ GIT
pundit
rails (>= 4.2.1, < 7.2)

GIT
remote: https://github.com/better-together-org/storext.git
revision: 1d7c3707b3e412fece0022c16cc6f51564969d2c
specs:
storext (3.3.0)
activerecord (>= 4.0, < 8)
virtus

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -93,6 +107,11 @@ GEM
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
active_storage_validations (1.1.4)
activejob (>= 5.2.0)
activemodel (>= 5.2.0)
activestorage (>= 5.2.0)
activesupport (>= 5.2.0)
activejob (7.1.4)
activesupport (= 7.1.4)
globalid (>= 0.3.6)
Expand Down Expand Up @@ -149,6 +168,10 @@ GEM
aws-sigv4 (~> 1.5)
aws-sigv4 (1.9.1)
aws-eventstream (~> 1, >= 1.0.2)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
base64 (0.2.0)
bcrypt (3.1.20)
better_errors (2.10.1)
Expand Down Expand Up @@ -181,6 +204,8 @@ GEM
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
coderay (1.1.3)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
coveralls (0.7.1)
Expand All @@ -190,6 +215,8 @@ GEM
term-ansicolor
thor
crass (1.0.6)
css_parser (1.19.0)
addressable
dartsass-sprockets (3.1.0)
railties (>= 4.0.0)
sassc-embedded (~> 1.69)
Expand All @@ -205,6 +232,8 @@ GEM
date (3.3.4)
debug_inspector (1.2.0)
declarative (0.0.20)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
devise (4.9.4)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
Expand Down Expand Up @@ -232,6 +261,20 @@ GEM
dry-core (1.0.1)
concurrent-ruby (~> 1.0)
zeitwerk (~> 2.6)
elasticsearch (7.17.11)
elasticsearch-api (= 7.17.11)
elasticsearch-transport (= 7.17.11)
elasticsearch-api (7.17.11)
multi_json
elasticsearch-model (7.2.1)
activesupport (> 3)
elasticsearch (~> 7)
hashie
elasticsearch-rails (7.2.1)
elasticsearch-transport (7.17.11)
base64
faraday (>= 1, < 3)
multi_json
erubi (1.13.0)
excon (0.111.0)
execjs (2.9.1)
Expand All @@ -242,7 +285,11 @@ GEM
railties (>= 5.0.0)
faker (3.4.2)
i18n (>= 1.8.11, < 2)
ffi (1.17.0)
faraday (2.11.0)
faraday-net_http (>= 2.0, < 3.4)
logger
faraday-net_http (3.3.0)
net-http
ffi (1.17.0-x86_64-linux-gnu)
fog-aws (3.26.0)
base64 (~> 0.2.0)
Expand Down Expand Up @@ -273,12 +320,11 @@ GEM
ruby-progressbar (~> 1.4)
globalid (1.2.1)
activesupport (>= 6.1)
google-protobuf (4.28.0)
bigdecimal
rake (>= 13)
google-protobuf (4.28.0-x86_64-linux)
bigdecimal
rake (>= 13)
hashie (5.0.0)
htmlentities (4.3.4)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
Expand All @@ -287,6 +333,7 @@ GEM
i18n-timezones (1.4.8)
i18n (>= 0.9.3)
rails (>= 5.1.6.2)
ice_nine (0.11.2)
image_processing (1.13.0)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
Expand Down Expand Up @@ -329,7 +376,6 @@ GEM
mime-types-data (3.2024.0903)
mini_magick (4.13.2)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.25.1)
mobility (1.2.9)
i18n (>= 0.6.10, < 2)
Expand All @@ -340,6 +386,8 @@ GEM
msgpack (1.7.2)
multi_json (1.15.0)
mutex_m (0.2.0)
net-http (0.4.1)
uri
net-imap (0.4.16)
date
net-protocol
Expand All @@ -351,11 +399,10 @@ GEM
net-protocol
netrc (0.11.0)
nio4r (2.7.3)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
noticed (2.4.3)
rails (>= 6.1.0)
optimist (3.1.0)
orm_adapter (0.5.0)
parallel (1.26.3)
Expand All @@ -364,6 +411,14 @@ GEM
racc
pg (1.5.8)
popper_js (2.11.8)
premailer (1.27.0)
addressable
css_parser (>= 1.19.0)
htmlentities (>= 4.0.0)
premailer-rails (1.12.0)
actionmailer (>= 3)
net-smtp
premailer (~> 1.7, >= 1.7.9)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -524,8 +579,6 @@ GEM
sass-embedded (1.78.0)
google-protobuf (~> 4.27)
rake (>= 13)
sass-embedded (1.78.0-x86_64-linux-gnu)
google-protobuf (~> 4.27)
sassc (2.4.0)
ffi (~> 1.9)
sassc-embedded (1.78.0)
Expand Down Expand Up @@ -578,6 +631,7 @@ GEM
term-ansicolor (1.8.0)
tins (~> 1.0)
thor (1.3.2)
thread_safe (0.3.6)
tilt (2.4.0)
timeout (0.4.1)
tins (1.33.0)
Expand All @@ -597,6 +651,11 @@ GEM
execjs (>= 0.3.0, < 3)
unf (0.2.0)
unicode-display_width (2.5.0)
uri (0.13.1)
virtus (2.0.0)
axiom-types (~> 0.1)
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
warden (1.2.9)
rack (>= 2.0.9)
warden-jwt_auth (0.10.0)
Expand All @@ -623,15 +682,14 @@ GEM
zeitwerk (2.6.18)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
asset_sync
aws-sdk-s3
bcrypt (~> 3.1.20)
better_errors
better_together (~> 0.5.0)!
better_together (~> 0.6.0)!
binding_of_caller
bootsnap (>= 1.7.0)
brakeman
Expand Down Expand Up @@ -669,6 +727,7 @@ DEPENDENCIES
spring
spring-watcher-listen (~> 2.1.0)
stackprof
storext!
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
webdrivers
Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

./bin/dummy bundle exec rails c
bundle exec rails c
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
Rails.application.routes.draw do
get 'healthcheck', to: 'healthcheck#index'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
root 'better_together/static_pages#community_engine'
root to: 'better_together/pages#show', defaults: { path: 'home-page' }, as: :home_page
mount BetterTogether::Engine => '/'
end
15 changes: 11 additions & 4 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
default: &default
url: <%= ENV["REDIS_URL"] || 'redis://localhost:6379' %>
queues:
- default
- mailers

development:
<<: *default
verbose: true
queues:
- default
- mailers

test:
<<: *default
queues:
- default
- mailers

production:
<<: *default
<<: *default
queues:
- better_together_production_default
- better_together_production_mailers
Loading

0 comments on commit 9689bc6

Please sign in to comment.