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

update Decidim v0.23.5 #296

Merged
merged 103 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
5feaf6d
update decidim to 0.23.5
ayuki-joto Apr 17, 2021
19b3229
update migrate
ayuki-joto Apr 17, 2021
f663153
fix ruby version
ayuki-joto Apr 26, 2021
a68cfaa
fix ruby version
ayuki-joto Apr 26, 2021
a2005c0
update puma
ayuki-joto Apr 27, 2021
55d5528
fix ruby version
ayuki-joto Apr 27, 2021
de53606
fix puma version
ayuki-joto Apr 27, 2021
801b829
Merge branch 'develop' of github.com:codeforjapan/decidim-cfj into fe…
ayuki-joto May 31, 2021
f1da294
Merge branch 'develop' of github.com:codeforjapan/decidim-cfj into fe…
ayuki-joto Jun 28, 2021
6a2ee29
add Decidim::DecidimAwesome
takahashim Jul 12, 2021
9d6f350
Add ja locale for DecidimAwesome
takahashim Jul 12, 2021
030de9b
update decidim to 0.23.5
ayuki-joto Apr 17, 2021
ddd127c
update migrate
ayuki-joto Apr 17, 2021
3342f46
fix ruby version
ayuki-joto Apr 26, 2021
cefa0c3
fix ruby version
ayuki-joto Apr 26, 2021
8c88a48
update puma
ayuki-joto Apr 27, 2021
03e9df2
fix ruby version
ayuki-joto Apr 27, 2021
0eb7326
fix puma version
ayuki-joto Apr 27, 2021
f449ce0
Merge remote-tracking branch 'origin/feature/update-decidim_v0.23.5' …
ayuki-joto Jul 12, 2021
450e9ce
fix and translate `:ja` locale files
takahashim Jul 12, 2021
acdcfc7
fix DEPLOYMENT.md
ayuki-joto Jul 13, 2021
7f05bc2
ruby 2.7.4 and decidim-decidim_awesome 0.7.0
takahashim Jul 13, 2021
d3df788
GA: update ruby 2.7
takahashim Jul 13, 2021
e69b2a2
Docker: update ruby 2.7
takahashim Jul 14, 2021
5a8a898
Merge pull request #1 from takahashim/decidim-awesome-ja
ayuki-joto Jul 14, 2021
fa48f54
update ruby version
ayuki-joto Jul 14, 2021
cadd335
update db schema.rb
ayuki-joto Jul 14, 2021
312ce23
Merge branch 'develop' of github.com:ayuki-joto/decidim-cfj into feat…
ayuki-joto Jul 28, 2021
e97d57c
fix upload 413 bug
ayuki-joto Jul 29, 2021
bbaf9d1
docs: move markdown document to docs/
komtaki Aug 7, 2021
b1c1e30
docs: fix spelling inconsistencies
komtaki Aug 7, 2021
8c80812
fix: delete public docker volume for cache
komtaki Aug 7, 2021
7c55c74
update CHANGELOG.md
ayuki-joto Aug 7, 2021
8690102
Merge pull request #276 from ayuki-joto/update/CHANGELOG-v0.23.0-2021…
ayuki-joto Aug 8, 2021
cf32a7e
Merge pull request #273 from komtaki/feature/mkdir-document-dir
ayuki-joto Aug 8, 2021
48aad10
Merge pull request #275 from komtaki/feature/remove-eb-docker-volume
ayuki-joto Aug 17, 2021
13139d6
fix: change cache policy name to by environment
komtaki Aug 12, 2021
bd5fb2e
chore: add life cycle to s3 cloud front log
komtaki Aug 21, 2021
aa88831
docs: update cloud front section on INFRA.md
komtaki Aug 21, 2021
b903049
add loading.gif
ayuki-joto Aug 22, 2021
dc2aa8e
Merge branch 'develop' of https://github.com/codeforjapan/decidim-cfj…
ayuki-joto Aug 22, 2021
b469d30
copy from DecidimAwesome
takahashim Aug 22, 2021
98b9635
move legacy_quill_editor
takahashim Aug 22, 2021
11d2b61
Fix: same as v0.7.0, not main branch in DecidimAwesome
takahashim Aug 22, 2021
358d4b0
Support htmlEditButton
takahashim Aug 22, 2021
4500d7b
chore: classname should be Capitalized
takahashim Aug 22, 2021
8e1376e
add loading.gif
ayuki-joto Aug 22, 2021
2364228
replace loading.gif
ayuki-joto Aug 22, 2021
affee2f
Merge pull request #2 from takahashim/quill-html-edit
ayuki-joto Aug 22, 2021
b8a36b4
Add decidim-comments from v0.23.5
takahashim Aug 29, 2021
754f208
Exec bundle install
takahashim Aug 29, 2021
195fc92
Remove invalid locale file; use ja.yml
takahashim Aug 29, 2021
1fea0c1
Add files to build JS files(npm)
takahashim Aug 29, 2021
efbfb41
Fix lint path
takahashim Aug 29, 2021
1c39c0f
Do not show warnings while loading
takahashim Aug 29, 2021
38b382d
decidim-comments: Update required_ruby_version to 2.7
takahashim Aug 29, 2021
8780ffd
Fix test (jest)
takahashim Aug 29, 2021
369a5b5
Merge pull request #3 from takahashim/forked-comments
ayuki-joto Aug 30, 2021
fc33c0e
Merge pull request #277 from komtaki/hotfix/fix-cloud-front-template
ayuki-joto Sep 3, 2021
b51e5ae
chore: add cloud formation of waf
komtaki Sep 2, 2021
2a1a92a
docs: add waf section on INFRA.md
komtaki Sep 2, 2021
85fd48a
Comments: show limited number of comments, add "show all comments" bu…
takahashim Aug 30, 2021
c09886d
rubocop: ignore node_modules in decidim-comments
takahashim Sep 6, 2021
eb44fc7
do not use upper limit of comments; `0` means all comments
takahashim Sep 6, 2021
ba2286f
make button name I18n-ize
takahashim Sep 6, 2021
c97bf87
Add `Rails.application.config.default_comments_limit`
takahashim Sep 6, 2021
664b570
Merge pull request #280 from komtaki/feature/add-aws-waf
ayuki-joto Sep 6, 2021
c98ddac
Merge pull request #4 from takahashim/comments-show-all-button
ayuki-joto Sep 13, 2021
26b5e43
Merge branch 'develop' of https://github.com/codeforjapan/decidim-cfj…
ayuki-joto Sep 13, 2021
a55c60f
chore: remove glacier life cycle on cloud front log s3
komtaki Sep 15, 2021
caa597c
Use ENV var to define default_comments_limit
takahashim Sep 16, 2021
6e54a4c
Merge pull request #5 from takahashim/comments-limit-initializer
ayuki-joto Sep 17, 2021
4705903
Remove old editor overrided
takahashim Sep 17, 2021
5cf285e
Fix order of loading JS files
takahashim Sep 17, 2021
98b407c
Merge pull request #6 from takahashim/fix-show-comments
ayuki-joto Sep 17, 2021
3175a99
Fix message of `mark_all_as_read`
takahashim Sep 26, 2021
2348855
Merge pull request #284 from takahashim/fix-message-remove-all
ayuki-joto Sep 27, 2021
bf33bf7
Merge branch 'develop' of https://github.com/codeforjapan/decidim-cfj…
ayuki-joto Sep 27, 2021
f2aee5b
show loading message in AllCommentButton
takahashim Sep 28, 2021
e0aa682
Merge pull request #7 from takahashim/button-loading-message
ayuki-joto Sep 28, 2021
901c0e2
Merge pull request #282 from komtaki/hotfix/s3-life-cycle
ayuki-joto Oct 3, 2021
e84428a
add nginx root
ayuki-joto Oct 7, 2021
6534475
add DECIDIM_COMMENTS_LIMIT
ayuki-joto Oct 7, 2021
22b83f1
update proxy timeout
ayuki-joto Oct 9, 2021
4e17361
Merge pull request #223 from ayuki-joto/feature/update-decidim_v0.23.5
ayuki-joto Oct 11, 2021
0270aca
upgrade instance type to t2.medium
ayuki-joto Oct 11, 2021
eea18c8
Copy Decidim::ResourceVersionsHelper from decidim-core/app/helper/dec…
takahashim Oct 12, 2021
e61f8ba
Fix `Decidim::ResourceVersionsHelper.resource_version`
takahashim Oct 12, 2021
2209265
Fixed by rubocop
takahashim Oct 12, 2021
1c65984
Fix translation `versions.resource_version.of_version`
takahashim Oct 12, 2021
ed3fdeb
Merge pull request #289 from takahashim/fix-debates-versions-performance
ayuki-joto Oct 12, 2021
a8cef90
Merge pull request #290 from takahashim/fix-translation-of_version
ayuki-joto Oct 12, 2021
18f50d0
Merge pull request #287 from ayuki-joto/upgrade-eb-instance-type
ayuki-joto Oct 14, 2021
efe7ff7
update production environment name
ayuki-joto Oct 14, 2021
2c34dde
update puma worker timeout
ayuki-joto Oct 14, 2021
3ab150f
remove worker timeout
ayuki-joto Oct 18, 2021
5c5eee5
Merge pull request #291 from ayuki-joto/update-production-enviroment-…
ayuki-joto Oct 18, 2021
7ebaf11
画像のファイルサイズではなく画像の縦横サイズの文言も追加
takahashim Oct 18, 2021
18cb979
Use `円` instead of YEN mark
takahashim Oct 18, 2021
a0674ae
Merge pull request #293 from takahashim/locale-file-help
ayuki-joto Oct 18, 2021
630f4ce
Merge pull request #294 from takahashim/fix-currency-unit
ayuki-joto Oct 18, 2021
484f0af
chore: fix cloud front CustomOrigin timeout 30s -> 60s
komtaki Oct 22, 2021
2e5163f
Merge pull request #295 from komtaki/feature/fix-cloud-front-read-tim…
ayuki-joto Oct 23, 2021
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
20 changes: 10 additions & 10 deletions .cloudformation/cloud_front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ Parameters:
Description: Type of this SSL id
Type: String

Metadata:
"AWS::CloudFormation::Interface":
ParameterGroups:
- Label:
default: "CloudFront"
Parameters:
- AlbDnsName
- ErrorCacheTTL

Resources:
# ------------------------------------------------------------#
# S3 Bucket
Expand All @@ -41,6 +32,14 @@ Resources:
Properties:
BucketName: !Sub ${AppEnvironment}-cfj-decidim-cloudfront-log
AccessControl: LogDeliveryWrite
LifecycleConfiguration:
Rules:
- Id: !Sub ${AppEnvironment}-cfj-decidim-cloudfront-log-life-cycle
Status: Enabled
Prefix: logs/
Transitions:
- StorageClass: STANDARD_IA
TransitionInDays: 30

# ------------------------------------------------------------#
# CloudFront
Expand All @@ -52,7 +51,7 @@ Resources:
DefaultTTL: 600
MinTTL: 60
MaxTTL: 3600
Name: Decidim-Static-Cache-Policy
Name: !Sub ${AppEnvironment}-decidim-static-cache-policy
ParametersInCacheKeyAndForwardedToOrigin:
CookiesConfig:
CookieBehavior: none
Expand Down Expand Up @@ -81,6 +80,7 @@ Resources:
HTTPPort: 80
HTTPSPort: 443
OriginProtocolPolicy: https-only
OriginReadTimeout: 60
DefaultCacheBehavior:
AllowedMethods:
- GET
Expand Down
89 changes: 89 additions & 0 deletions .cloudformation/waf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: "Create webAcl"

Parameters:
AppEnvironment:
Description: Type of app environment.
Type: String
Default: staging
AllowedValues:
- staging
- production

Resources:
# ------------------------------------------------------------#
# AWS WAFv2
# ------------------------------------------------------------#
WebAclCloudFront:
Type: AWS::WAFv2::WebACL
Properties:
DefaultAction:
Allow: {}
Description: WebACL for CloudFront
Name: !Sub ${AppEnvironment}-cfj-decidim-web-acl
Rules:
- Name: !Sub ${AppEnvironment}-AWSManagedRulesCommonRuleSet
Priority: 0
OverrideAction:
Count: {}
VisibilityConfig:
SampledRequestsEnabled: true
CloudWatchMetricsEnabled: true
MetricName: AWSManagedRulesCommonRuleSetMetric
Statement:
ManagedRuleGroupStatement:
VendorName: AWS
Name: AWSManagedRulesCommonRuleSet
- Name: !Sub ${AppEnvironment}-AWSManagedRulesKnownBadInputsRuleSet
Priority: 1
OverrideAction:
Count: {}
VisibilityConfig:
SampledRequestsEnabled: true
CloudWatchMetricsEnabled: true
MetricName: AWSManagedRulesKnownBadInputsRuleSetMetric
Statement:
ManagedRuleGroupStatement:
VendorName: AWS
Name: AWSManagedRulesKnownBadInputsRuleSet
- Name: !Sub ${AppEnvironment}-AWSManagedRulesAmazonIpReputationList
Priority: 2
OverrideAction:
Count: {}
VisibilityConfig:
SampledRequestsEnabled: true
CloudWatchMetricsEnabled: true
MetricName: AWSManagedRulesAmazonIpReputationListMetric
Statement:
ManagedRuleGroupStatement:
VendorName: AWS
Name: AWSManagedRulesAmazonIpReputationList
- Name: !Sub ${AppEnvironment}-AWSManagedRulesLinuxRuleSet
Priority: 3
OverrideAction:
Count: {}
VisibilityConfig:
SampledRequestsEnabled: true
CloudWatchMetricsEnabled: true
MetricName: AWSManagedRulesLinuxRuleSetMetric
Statement:
ManagedRuleGroupStatement:
VendorName: AWS
Name: AWSManagedRulesLinuxRuleSet
- Name: !Sub ${AppEnvironment}-AWSManagedRulesSQLiRuleSet
Priority: 4
OverrideAction:
Count: {}
VisibilityConfig:
SampledRequestsEnabled: true
CloudWatchMetricsEnabled: true
MetricName: AWSManagedRulesSQLiRuleSetMetric
Statement:
ManagedRuleGroupStatement:
VendorName: AWS
Name: AWSManagedRulesSQLiRuleSet
Scope: CLOUDFRONT
VisibilityConfig:
SampledRequestsEnabled: true
CloudWatchMetricsEnabled: true
MetricName: !Sub ${AppEnvironment}-cfj-decidim-web-acl
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
id: set-env-production
if: endsWith(github.ref, 'heads/master') || contains(github.ref, 'tags/v')
run: |
echo "IMAGE_TAG_PREFIX=production" >> $GITHUB_ENV
echo "EB_ENVIRONMENT_NAME=production" >> $GITHUB_ENV
echo "IMAGE_TAG_PREFIX=production-v0-23-5" >> $GITHUB_ENV
echo "EB_ENVIRONMENT_NAME=production-v0-23-5" >> $GITHUB_ENV

- name: Output App Env
id: output-app-env
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rails-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
run: |
sudo apt-get update -y
sudo apt-get -yqq install libpq-dev postgresql-client
- name: Set up Ruby 2.6
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
ruby-version: 2.7
bundler-cache: true
- name: Build and Test with RSpec
env:
Expand Down
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ AllCops:
- "development_app/**/*"
- "spec/decidim_dummy_app/**/*"
- "node_modules/**/*"
- "**/node_modules/**/*"
- "db/migrate/*"
- "db/schema.rb"
# Default formatter will be used if no -f/--format option is given.
Expand Down Expand Up @@ -65,7 +66,7 @@ AllCops:
# If a value is specified for TargetRubyVersion then it is used.
# Else if .ruby-version exists and it contains an MRI version it is used.
# Otherwise we fallback to the oldest officially supported Ruby version (2.0).
TargetRubyVersion: 2.5
TargetRubyVersion: 2.7

RSpec:
Patterns:
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.6
2.7.4
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Change Log

## [v0.23.0-2021-08-07-01](https://github.com/codeforjapan/decidim-cfj/releases/tag/v0.23.0-2021-08-07-01)

### Fixed
- Fix locale file: decidim.errors.not_found.content_doesnt_exist [#262](https://github.com/codeforjapan/decidim-cfj/pull/262)
- Fix #268; add locale for debate_closed [#269](https://github.com/codeforjapan/decidim-cfj/pull/269)
- Fix fallbacks of i18n; use both :ja and :en [#270](https://github.com/codeforjapan/decidim-cfj/pull/270)

### Developer improvements
- fix typo decidem -> decidim on NEW_RELIC_APP_NAME [#248](https://github.com/codeforjapan/decidim-cfj/pull/248)
- enabled spot instance on staging environment [#251](https://github.com/codeforjapan/decidim-cfj/pull/251)
- add VPC & subnets Cloud Formation & INFRA.md [#249](https://github.com/codeforjapan/decidim-cfj/pull/249)
- add environment variable by SSM on ebextensions [#245](https://github.com/codeforjapan/decidim-cfj/pull/245)
- Turn off New Relic except production [#258](https://github.com/codeforjapan/decidim-cfj/pull/258)
- change auto scale trigger to Average from Maximum [#265](https://github.com/codeforjapan/decidim-cfj/pull/265)

## [v0.23.0-2021-07-28](https://github.com/codeforjapan/decidim-cfj/releases/tag/v0.23.0-2021-07-28)

### Developer improvements
- Update robots txt [#266](https://github.com/codeforjapan/decidim-cfj/pull/266)

## [v0.23.0-2021-06-22](https://github.com/codeforjapan/decidim-cfj/releases/tag/v0.23.0-2021-06-22)

### Developer improvements
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:10.23.0-alpine as node

FROM ruby:2.6.6-alpine
FROM ruby:2.7.4-alpine

RUN apk update \
&& apk add --no-cache --virtual build-dependencies \
Expand Down
14 changes: 9 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ source "https://rubygems.org"

ruby RUBY_VERSION

gem "decidim", git: "https://github.com/decidim/decidim.git", branch: "release/0.23-stable"
gem "decidim", "0.23.5"

# gem "decidim", "0.21"
# gem "decidim-consultations", "0.23.0.dev"
# gem "decidim-initiatives", "0.23.0.dev"
# gem "decidim", "0.23.5"
# gem "decidim-consultations", "0.23.5"
# gem "decidim-initiatives", "0.23.5"

gem "decidim-comments", path: "decidim-comments"

gem "decidim-decidim_awesome", "~> 0.7.0"

gem "bootsnap", "~> 1.3"

Expand All @@ -31,7 +35,7 @@ group :development, :test do
gem "byebug", "~> 11.0", platform: :mri
gem "figaro"

gem "decidim-dev", git: "https://github.com/decidim/decidim.git", branch: "release/0.23-stable"
gem "decidim-dev", "0.23.5"
gem "dotenv-rails"
gem "factory_bot_rails"
gem "rspec-rails"
Expand Down
Loading