(2026/04/06 commit: 53f12097e2d9f4f481ca90b7df2ccee994073a97 )
hierarchical_result.json のスキーマ定義がプロジェクト内でどこに存在し、それぞれが一致しているかを調査した結果をまとめる。
| --- db/schema.rb 2025-08-07 16:54:14 | |
| +++ ../../decidim-cfj/scheme-v30.rb 2025-08-07 17:24:08 | |
| @@ -10,9 +10,10 @@ | |
| # | |
| # It's strongly recommended that you check this file into your version control system. | |
| -ActiveRecord::Schema[7.0].define(version: 2025_08_07_076037) do | |
| +ActiveRecord::Schema[7.0].define(version: 2025_08_05_081192) do | |
| # These are extensions that must be enabled in order to support this database | |
| enable_extension "ltree" |
| > 質問です。ProposalStateを編集する画面はありますか?ない場合、どうやれば変更できるでしょうか | |
| ⏺ ProposalStateを編集する画面について調査します。 | |
| ⏺ Search(pattern: "proposal_states", path: "../decidim/decidim-proposals", include: "*controller*") | |
| ⎿ Found 1 file (ctrl+r to expand) | |
| ⏺ Read(../decidim/decidim-proposals/app/controllers/decidim/proposals/admin/proposal_states_controller.rb) | |
| ⎿ Read 87 lines (ctrl+r to expand) |
When the default locale is set to a non-ASCII language (such as Japanese :ja), the create_default_states! method in decidim-proposals fails to create ProposalState records. This prevents proposal components from having the necessary states (evaluating, accepted, rejected), making proposal answering functionality unavailable in the admin interface.
The issue occurs because the generate_token method in ProposalState cannot properly handle non-ASCII characters in titles when generating tokens, and it incorrectly processes symbol tokens passed from create_default_states!.
| ransack.search: 検索 | |
| ransack.predicate: は以下である | |
| ransack.and: と | |
| ransack.or: あるいは | |
| ransack.any: いずれか | |
| ransack.all: 全て | |
| ransack.combinator: 組み合わせ | |
| ransack.attribute: 属性 | |
| ransack.value: 値 | |
| ransack.condition: 状態 |
| diff -uwbNr decidim-cfj/config/application.rb decidim/development_app/config/application.rb | |
| --- decidim-cfj/config/application.rb 2023-07-03 17:49:30 | |
| +++ decidim/development_app/config/application.rb 2023-08-21 23:24:55 | |
| @@ -1,37 +1,22 @@ | |
| -# frozen_string_literal: true | |
| - | |
| require_relative "boot" | |
| -require "decidim/rails" | |
| -# Add the frameworks used by your app that are not loaded by Decidim. |
| # Be sure to restart your server when you modify this file. | |
| # Your secret key is used for verifying the integrity of signed cookies. | |
| # If you change this key, all old signed cookies will become invalid! | |
| # Make sure the secret is at least 30 characters and all random, | |
| # no regular words or you'll be exposed to dictionary attacks. | |
| # You can use `rails secret` to generate a secure secret key. | |
| # Make sure the secrets in this file are kept private |