Skip to content

fix: multiple local blocking fixes#975

Open
AyakorK wants to merge 1 commit intorc-4.0.0from
fix/edit_org_and_docker
Open

fix: multiple local blocking fixes#975
AyakorK wants to merge 1 commit intorc-4.0.0from
fix/edit_org_and_docker

Conversation

@AyakorK
Copy link
Copy Markdown
Contributor

@AyakorK AyakorK commented Apr 13, 2026

🎩 Description

Fix multiple issues that happened simultaneously :

1 - We couldn't create an application using docker because of a "db issues" which happened to be a migration that wasn't working properly anymore

2 - When we tried to edit an organization on local, so without docker, Secret Key was missing and it caused an error based on the authenticity of the organization

Testing

LOCAL tests (without docker) :

# 1. Generate Rails credentials
EDITOR="nano" bundle exec rails credentials:edit

# 2. Generate AR encryption keys and add them to credentials
bundle exec rails db:encryption:init
EDITOR="nano" bundle exec rails credentials:edit

# 3. Add stable SECRET_KEY_BASE to .env
echo "" >> .env && echo "SECRET_KEY_BASE=$(bundle exec rails runner "puts Rails.application.credentials.secret_key_base" 2>/dev/null | tail -1)" >> .env

# 4. Add the following entries to your global gitignore (~/.gitignore)
#    config/master.key
#    config/credentials.yml.enc

# 5. Initialize the database
DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake db:drop db:setup

# 6. Start the server
bundle exec rails s
  • Launch the /system view
  • Try to edit an organization
  • Make sure everything works correctly

Tasks

  • Fix migration
  • Fix secret key base
  • Add missing locale

@AyakorK AyakorK marked this pull request as ready for review April 13, 2026 11:59
Copy link
Copy Markdown
Contributor

@Stef-Rousset Stef-Rousset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants