Commit Graph

609 Commits

Author SHA1 Message Date
Jan Sandbrink 73496dede3 Merge pull request #20993 from opf/env-settings-doc
Clarify task and docs around supported env vars
2025-11-21 15:32:29 +01:00
Kabiru Mwenja e100571cd1 Remove document category model traces 2025-11-21 12:57:40 +03:00
Jan Sandbrink bc26a28335 Clarify task and docs around supported env vars
The task did not always print out the name of an environment variable
that we use during documentation, e.g. for OPENPROJECT_OPENID__CONNECT.
By preferring the usage of the env_alias this has been fixed.

Docs have been adapted to indicate when to expect certain variables to
work.
2025-11-12 08:40:06 +01:00
Oliver Günther b36272cfd7 Remove npm run build:fast after esbuild introduction 2025-08-20 14:22:11 +02:00
Klaus Zanders f700304453 Do not use private Bundler.gem method 2025-07-18 17:24:00 +02:00
Jan Sandbrink a6540269ba Enable copyright task to add missing headers
The copyright task was so far only built to update
existing (and properly marked) copyright headers.

We are now adding the capability to add a missing header
for Ruby files. This allows us to properly indicate copyright
where it was previously forgotten to be done.
2025-03-18 15:37:01 +01:00
Oliver Günther b214c61315 Reset some specs 2025-01-14 13:23:57 +01:00
Oliver Günther ec169aeafe Use service to clean sessions (#17383)
* Use service to clean sessions

* Update app/services/sessions/clear_old_sessions_service.rb

Co-authored-by: Klaus Zanders <klaustopher@users.noreply.github.com>

---------

Co-authored-by: Klaus Zanders <klaustopher@users.noreply.github.com>
2024-12-08 21:43:56 +01:00
Oliver Günther b151e8017d Use explicit fast build without source maps and minify for testing and PullPreview (#16563)
Use explicit fast build without source maps and minify for testing and PP
2024-08-30 10:41:53 +02:00
Ivan Kuchin cf327a10bf exclude crowdin and generated from yml files in copyright tasks 2024-07-31 15:02:53 +02:00
Ivan Kuchin 200052dfa8 unify the rest of excludes by using globs in copyright tasks 2024-07-31 15:02:52 +02:00
Ivan Kuchin 5b1e8c78a8 cleanup excluded_paths from unused paths in copyright tasks 2024-07-31 15:02:52 +02:00
Ivan Kuchin dd7df44560 remove empty excludes from copyright tasks 2024-07-31 15:02:51 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Ivan Kuchin a441b6dea5 remove .travis.yml from files to update by copyright task 2024-07-31 15:02:45 +02:00
Ivan Kuchin 883bed0f4f don't make paths absolute 2024-07-31 15:02:45 +02:00
Ivan Kuchin ed79308cd8 rename arg1 rake task argument to path 2024-07-31 15:02:45 +02:00
Ivan Kuchin 83904c96c2 fix rubocop violations in copyright_authors.rake 2024-07-31 15:02:44 +02:00
Ivan Kuchin 7fc9d81b75 fix rubocop violations in copyright.rake 2024-07-30 20:17:20 +02:00
Ivan Kuchin 60f393379a auto find all copyright update tasks by name 2024-07-30 20:17:20 +02:00
Markus Kahl 85cb296935 fix package installation (host_name typo) 2024-07-16 11:30:14 +01:00
Oliver Günther 60cff7aed1 Set hosts config when present in config 2024-06-25 16:21:48 +02:00
Pavel Balashou 6363263153 [#55112] Rename Storages::ManageNextcloudIntegrationJob
https://community.openproject.org/work_packages/55112
2024-05-21 11:11:09 +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 d29589920a don't require tempfile in lib/tasks/backup.rake 2024-03-11 10:52:21 +01:00
Oliver Günther 337eda7dfa Revert "Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob""
This reverts commit dfa75621ea.
2024-03-07 13:59:24 +01:00
Markus Kahl dfa75621ea Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob"
This reverts commit 9f3e4c48ea, reversing
changes made to 10412f7c85.
2024-03-07 12:40:15 +00:00
Pavel Balashou ee88c89726 Merge branch 'dev' into task/48717-replace-delayedjob 2024-03-04 15:52:07 +01:00
Oliver Günther 9adc02c6ea Allow project and other attributes to be set in cron
https://community.openproject.org/work_packages/52524
2024-02-19 14:13:50 +01:00
Pavel Balashou fd6a899b29 [#48717] Replace DelayedJob with GoodJob.
https://community.openproject.org/work_packages/48717
2024-02-14 10:18:27 +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 8473f8123b remove unused certificate config parameters 2024-02-06 18:40:42 +01:00
Ivan Kuchin 70de91697b remove unused sql_dump_tempfile method 2024-02-05 16:05:51 +01:00
Ivan Kuchin 2e75df8af1 use Tempfile.open with block instead of Tempfile.new with explicit unlink 2024-02-05 16:05:51 +01:00
Ivan Kuchin 96ff2b650f create config file only if needed and minimize block size 2024-02-05 16:05:50 +01:00
Ivan Kuchin 6dc817d713 use mkpath of pathname instead of FileUtils.mkdir_p explicitly 2024-02-05 16:05:50 +01:00
Ivan Kuchin 4e31c8bba5 use configuration_hash and one place for user || username 2024-02-05 16:05:50 +01:00
Ivan Kuchin d85dd03bff fix backup rake tasks
ActiveRecord::Base.configurations does not return a hash since rails 6, but
using config directly still works.
See https://github.com/rails/rails/pull/33637
2024-02-05 16:05:50 +01:00
Christophe Bliard 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +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
ulferts 17996586ab Merge remote-tracking branch 'origin/release/13.0' into dev 2023-10-10 12:54:43 +02:00
Oliver Günther acbc421ba5 Set statement_timeout to 0 when running migrations (#13818)
* Set statement_timeout to 0 when running migrations

* Remove statement timeout manager

* Revert "Add troubleshooting section on upgrade guide"

This reverts commit bb5762b13c.

* Change headline in update docs

---------

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2023-10-09 13:56:00 +02:00
ulferts bfcdd3fb7a Merge remote-tracking branch 'origin/release/13.0' into dev 2023-09-08 09:07:55 +02:00
Klaus Zanders 87906bd208 Fixes Performance/StringInclude offenses 2023-09-06 13:05:46 +02:00
Klaus Zanders 26cee2729e Fixes Performance/RegexpMatch offenses 2023-09-06 12:50:32 +02:00
Klaus Zanders 0c7fd939c8 Fixes Performance/MapCompact offenses 2023-09-06 11:06:36 +02:00
Klaus Zanders 58a4775f19 Fixes Performance/CompareWithBlock offenses 2023-09-06 10:59:37 +02:00