- Reuse AdminUserSeeder to create the admin user. Previous code did not
set a valid email, which prevented the user from being saved (That's
why language could not be set).
- drop the db before creating it, to avoid "database already exists"
errors.
- Remove owner from ALTER statements in dump file, avoiding "ERROR:
must be able to SET ROLE " errors when loading the sql file.
https://community.openproject.org/wp/46007
Changes:
- script recommends to run on the bastion host
- the openproject dev directory can be passed as a second argument
if it can't be guessed
- more tables are emptied and/or anonymized
- inline sql cleanup script inside the script
- `btree_gist` and `pg_trgm` extensions are always created to prevent
import error if they're missing
- use long options to auto-document options
When there is an in progress run and a previous successful run, the
successful run is being displayed. This gives a false information about
the current run being successful. The fix is to display the in progress
run instead.
https://community.openproject.org/wp/53584https://community.openproject.org/wp/53586
When making Portuguese Brazilian and Portuguese Portugal translations
apart from each other in https://community.openproject.org/wp/53374, we
missed that the root key in the `pt-BR.yml` and `pt-PT.yml` files is
still `pt`. The backend is gracefully falling back to the `pt`
translations but the frontend just fails to translate and falls back to
the English strings, leading to mixed English and Portuguese in the user
interface.
A script fixes the root key in the `pt-BR.yml` and `pt-PT.yml` files.
This script is executed each time the translations are updated from
crowdin.
This works only with `imgcat` and iTerm2 (or any terminal implementing
iTerm2 image protocol like Konsole).
See https://iterm2.com/documentation-images.html to know more.
Feel free to add support for more terminals.
Previously, downloading translations files from crowdin would write both
zh-CN and zh-TW to the same file, overwriting the previous one. This
commit adds a mapping to the crowdin.yml file to avoid this.
As a side effect, the script `fix_crowdin_translation_filenames.rb` is now
superfluous.