27 Commits

Author SHA1 Message Date
ulferts edb27dcb45 stable seeding on deleted project admin role, types and projects 2025-06-05 16:51:25 +02:00
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Ivan Kuchin 98e8fa792a extract PostgresEnvironment to share between BackupJob and backup rake tasks 2024-02-07 12:50:51 +01:00
Ivan Kuchin 4e31c8bba5 use configuration_hash and one place for user || username 2024-02-05 16:05:50 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Christophe Bliard 18382e756c Add db:seed:only task to run a single seeder
Example:

    bundle exec rails 'db:seed:only[BasicData::WorkPackageRoleSeeder]'

Co-authored-by: Aaron Contreras <61627014+aaron-contreras@users.noreply.github.com>
2023-10-11 16:28:49 +02:00
Pavel Balashov c5d75459dd [#45965] Setting definitions validations access nonloaded constants
https://community.openproject.org/work_packages/45965
2023-02-22 16:03:50 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard 51ec0870cb Allow partial overriding of settings from file in test env
When Rails environment is test, overriding definition values from file
is still not possible from default section, and becomes possible from
the test section.

For instance with this `config/configuration.yml` file:

    default:
      edition: bim
    test:
      log_level: debug

In tests, log level will be debug but the edition will NOT be bim.
2022-06-28 08:28:02 +02:00
Christophe Bliard e160ba0555 Fix spec path to end with *_spec.rb 2022-06-03 09:51:24 +02:00
Christophe Bliard 126fab49ba add setting:available_envs rake task to list overridable env var names 2022-05-17 09:56:11 +02:00
Christophe Bliard 670f2a0093 fix setting:set rake task when setting already set by env or config file
WP [#42349](https://community.openproject.org/projects/openproject/work_packages/42349/activity)
2022-05-12 15:05:28 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
ulferts 9c3206220b remove mysql specific code throughout the application 2019-06-06 15:07:43 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Alex Coles 5afc11f19e Fix syntax (w/Rubocop) in specs
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-04 00:50:36 +01:00
Philipp Tessenow 2568c2a2d7 whitespace fixes and other minor things 2014-10-21 14:10:32 +02:00
Philipp Tessenow 6f3f9ac515 add specs for backup task 2014-10-21 13:59:04 +02:00