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

wip: update decidim 0.28.0 #596

Draft
wants to merge 90 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
79f374c
wip: update decidim 0.28.0
ayuki-joto Mar 13, 2024
a5248f9
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Mar 18, 2024
6c136cd
wip: add packages
ayuki-joto Mar 18, 2024
c062867
wip: add decidim icons
ayuki-joto Mar 18, 2024
103c99a
wip: update packs
ayuki-joto Mar 18, 2024
652974b
wip: update check.yaml
ayuki-joto Mar 18, 2024
54207c3
fix: spec
ayuki-joto Mar 18, 2024
353a726
remove Capybara settings in rails_helper.rb
takahashim Mar 18, 2024
8d6c754
copy user_profile_spec.rb from v0.28.0
takahashim Mar 18, 2024
7b5728e
copy .rubocop.yml from Decidim v0.28.0
takahashim Mar 18, 2024
79c7cdc
ruboop: ignore some files
takahashim Mar 18, 2024
db24585
ruboop: ignore some cops
takahashim Mar 18, 2024
72f1824
rubocop -a
takahashim Mar 18, 2024
6495113
remove unused rubocop yamls
takahashim Mar 18, 2024
74b3b6e
fix panolint error
takahashim Mar 18, 2024
c52fdff
Merge pull request #27 from takahashim/remove-capybara-settings
ayuki-joto Mar 19, 2024
6b6b5cc
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Mar 19, 2024
3c1ddff
fix: conflict
ayuki-joto Mar 19, 2024
10eabae
fix: bundler version
ayuki-joto Mar 19, 2024
de6dd40
Merge branch 'feat/update-decidim-0-28-0' into fix-rubocop
ayuki-joto Mar 19, 2024
e8e51fd
Merge pull request #28 from takahashim/fix-rubocop
ayuki-joto Mar 19, 2024
e6b4c02
fix: rubocop
ayuki-joto Mar 19, 2024
abb22c3
fix: add packages
ayuki-joto Mar 19, 2024
dffb9c6
feat: update gems
ayuki-joto Apr 3, 2024
e4f541a
feat: update packages
ayuki-joto Apr 3, 2024
154a9c7
feat: add csp settings
ayuki-joto Apr 5, 2024
3c16a54
fix css for admin
takahashim Apr 5, 2024
b3653de
resolve rubocop warnings
takahashim Apr 5, 2024
f8f8db0
Merge pull request #29 from takahashim/fix-admin-css
ayuki-joto Apr 6, 2024
68f6b18
refactor: update packages
ayuki-joto Apr 6, 2024
680e95f
copy app/packs/src/decidim/editor/extensions/decidim_kit
takahashim Apr 7, 2024
2ee0f29
copy app/packs/src/decidim/editor/toolbar.js
takahashim Apr 7, 2024
ebc76a6
Add HtmlEdit extension for Tiptap
takahashim Apr 7, 2024
3dcd5df
fix to add popupContainer
takahashim Apr 7, 2024
d450c33
fix style
takahashim Apr 7, 2024
3421dae
add missing locale
takahashim Apr 7, 2024
3ece869
fix tag handling from/to editor
takahashim Apr 7, 2024
4e2c8a6
remove files for quill
takahashim Apr 7, 2024
e39a81c
Merge pull request #30 from takahashim/custom-html-edit
ayuki-joto Apr 7, 2024
dd4eae9
copy from v0.28.0
takahashim Apr 8, 2024
38e744c
fix options
takahashim Apr 8, 2024
dc25ee1
rubocop: ignore rule `RSpec/Rails/NegationBeValid`
takahashim Apr 8, 2024
aabfda0
WIP
takahashim Apr 8, 2024
73e351e
support user_extension
takahashim Apr 8, 2024
3c4be9b
fix locale
takahashim Apr 8, 2024
4549505
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Apr 8, 2024
bf2e49a
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Apr 8, 2024
62f1ae8
add decidim-user_extension
takahashim Apr 8, 2024
f76c0fd
fix decidim-user_extension
takahashim Apr 8, 2024
3cde068
shakapacker: add load path
takahashim Apr 8, 2024
76f90e7
load css
takahashim Apr 8, 2024
e2cff45
fix locale
takahashim Apr 8, 2024
7fbf15b
update view
takahashim Apr 8, 2024
c441137
fix specs
takahashim Apr 8, 2024
9cae951
fix specs for decidim-comments (comment order)
takahashim Apr 10, 2024
8a7c909
Merge pull request #31 from takahashim/fix-specs-v028
ayuki-joto Apr 12, 2024
afdbe57
Merge pull request #32 from takahashim/fix-specs-v028-2
ayuki-joto Apr 12, 2024
8d2d545
Merge branch 'feat/update-decidim-0-28-0' of github.com:ayuki-joto/de…
ayuki-joto Apr 12, 2024
e1b273d
refactor: fix lint
ayuki-joto Apr 12, 2024
48ddf2f
copy from v0.28.0
takahashim Apr 12, 2024
ba5fbd3
Use full name of class `AssemblyPresenter`
takahashim Apr 12, 2024
e73d875
ditto
takahashim Apr 15, 2024
0c6fb61
Merge pull request #33 from takahashim/fix-assembly-presenter
ayuki-joto Apr 16, 2024
89f3f50
refactor: add polis
ayuki-joto Apr 19, 2024
d2f3792
feat: update decidim v 0.28.1
ayuki-joto Jun 3, 2024
f2314f4
update DEVELOPMENT.md for 0.28.1
takahashim Jun 10, 2024
33ed046
force to use :ja locale
takahashim Jun 14, 2024
02108de
Merge pull request #35 from takahashim/fix-locale-in-specs
ayuki-joto Jun 17, 2024
31593e6
Merge pull request #34 from takahashim/fix-doc-0-28-1
ayuki-joto Jun 17, 2024
0c8165b
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Jul 9, 2024
57b865d
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Jul 16, 2024
8197eab
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Jul 31, 2024
5429507
fix: update lock file
ayuki-joto Jul 31, 2024
8f203a2
fix: update lock file
ayuki-joto Jul 31, 2024
892fe95
fix: refactor update lint
ayuki-joto Aug 1, 2024
34511f2
Merge branch 'main' of github.com:ayuki-joto/decidim-cfj into feat/up…
ayuki-joto Aug 6, 2024
b14e672
Use postgresql image in ghcr.io/codeforjapan
takahashim Aug 5, 2024
8fe26b9
Merge pull request #36 from takahashim/fix-028
ayuki-joto Aug 26, 2024
0487341
Merge branch 'main' into fix-028-b
takahashim Aug 26, 2024
50afa4a
Merge pull request #37 from takahashim/fix-028-b
ayuki-joto Aug 27, 2024
861a2ec
Merge branch 'feat/update-decidim-0-28-0' of github.com:ayuki-joto/de…
ayuki-joto Aug 27, 2024
18778e7
fix: refactor fix conflict migrations
ayuki-joto Aug 28, 2024
bd7c7e9
WIP
takahashim Nov 18, 2024
845e51d
bin/rails decidim:upgrade
takahashim Nov 18, 2024
4c30234
fix rubocop
takahashim Nov 18, 2024
f142562
refactor: update css
ayuki-joto Nov 25, 2024
92507d2
add p7zip
takahashim Nov 25, 2024
3fff1f0
use @geoman-io/leaflet-geoman-free v2.14.2
takahashim Nov 25, 2024
4e8f9c7
Merge pull request #39 from takahashim/update-0283
ayuki-joto Nov 26, 2024
fdce077
refactor: update decidim awe_some
ayuki-joto Dec 3, 2024
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ storage/*
test
tmp
vendor
/public/decidim-packs

Dockerfile
docker-compose*
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
ruby-version:
type: string
required: false
default: 3.0.6
default: 3.1.1

jobs:
rubocop:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
which convert
convert -version

- name: Set up Ruby 3.0.6
- name: Set up Ruby 3.1.1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ inputs.ruby-version }}
Expand All @@ -84,26 +84,27 @@ jobs:
- name: setup Node
uses: actions/setup-node@v3
with:
node-version: 16.13.0
node-version: 18.17.1
cache: 'yarn'

- name: install yarn
run: |
npm i -g [email protected].15
npm i -g [email protected].19
yarn install --frozen-lockfile

- name: create assets precompile cache key
run: |
# use newest commit hash of precompile target files
git rev-parse $(git log --oneline -n 1 app/packs lib/assets Gemfile.lock yarn.lock | awk '{print $1}') > ASSETS_VERSION
git rev-parse $(git log --oneline -n 1 app/decidim-packs tmp/shakapacker.lock lib/assets Gemfile.lock yarn.lock | awk '{print $1}') > ASSETS_VERSION

- name: asset cache
uses: actions/cache@v3
with:
path: |
public/packs
public/decidim-packs
public/assets
tmp/cache/assets
tmp/shakapacker.lock
public/packs-test
key: asset-precompile-cache-${{ hashFiles('ASSETS_VERSION') }}
restore-keys: |
Expand All @@ -116,6 +117,7 @@ jobs:

- name: Precompile assets
run: bundle exec rails assets:precompile

- name: Test with RSpec
run: |
bundle exec rails spec
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ pgadmin
yarn-debug.log*
.yarn-integrity
public/sw.js
public/sw.js.map
public/sw.js.*
app/views/static/api/*
tailwind.config.js
app/views/static/docs/*
36 changes: 33 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
inherit_from:
- .rubocop_ruby.yml
- .rubocop_rails.yml
inherit_gem:
decidim-dev: rubocop-decidim.yml

AllCops:
Exclude:
- "db/migrate/*"
- "db/schema.rb"
- "bin/setup"
- "bin/update"
- "node_modules/*"
- "vendor/bundle/**/*"

Gemspec/RequiredRubyVersion:
Enabled: false

Rails/Output:
Enabled: false

Capybara/ClickLinkOrButtonStyle:
Enabled: false

RSpec/DescribeClass:
Enabled: false

Rails/I18nLocaleAssignment:
Enabled: false

RSpecRails/NegationBeValid:
Exclude:
- spec/shared/proposal_form_examples.rb

RSpec/IndexedLet:
Enabled: false
103 changes: 0 additions & 103 deletions .rubocop_rails.yml
Original file line number Diff line number Diff line change
@@ -1,103 +0,0 @@
require: rubocop-rails

Rails:
Enabled: true

Rails/ActionFilter:
Include:
- decidim-*/app/controllers/**/*.rb

Rails/ContentTag:
Enabled: false

Rails/CreateTableWithTimestamps:
Enabled: false

Rails/EnumUniqueness:
Include:
- decidim-*/app/models/**/*.rb

Rails/Exit:
Include:
- decidim-*/app/**/*.rb
- decidim-*/config/**/*.rb
- decidim-*/lib/**/*.rb
Exclude:
- decidim-*/lib/**/*.rake

Rails/FindBy:
Include:
- "**/*.rb"

Rails/FindEach:
Include:
- decidim-*/app/models/**/*.rb

Rails/HasAndBelongsToMany:
Include:
- decidim-*/app/models/**/*.rb

Rails/HasManyOrHasOneDependent:
Include:
- decidim-*/app/models/**/*.rb

Rails/InverseOf:
Enabled: false

Rails/LexicallyScopedActionFilter:
Include:
- decidim-*/app/controllers/**/*.rb

Rails/NotNullColumn:
Enabled: false

Rails/Output:
Include:
- decidim-*/app/**/*.rb
- decidim-*/config/**/*.rb
- decidim-*/db/**/*.rb
- decidim-*/lib/**/*.rb
Exclude:
- decidim-core/db/seeds.rb
- decidim-core/lib/decidim/core.rb
- decidim-core/lib/decidim/component_manifest.rb
- decidim-core/lib/decidim/participatory_space_manifest.rb
- decidim-system/db/seeds.rb
- decidim-templates/db/seeds.rb

Rails/OutputSafety:
Enabled: false

Rails/Pluck:
Enabled: false

Rails/RakeEnvironment:
Enabled: false

Rails/ReadWriteAttribute:
Include:
- decidim-*/app/models/**/*.rb

Rails/ReversibleMigration:
Enabled: false

Rails/ScopeArgs:
Include:
- decidim-*/app/models/**/*.rb

Rails/SkipsModelValidations:
Enabled: true

Rails/Validation:
Include:
- decidim-*/app/models/**/*.rb

Rails/I18nLocaleAssignment:
Enabled: false

Lint/EmptyBlock:
Enabled: false

Style/OpenStructUse:
Exclude:
- lib/tasks/delete.rake
Loading