70 Commits

Author SHA1 Message Date
Mir Bhatia 3b2770bc1a Update mailer delivery_method in dev environment 2025-12-22 07:14:52 +01:00
Christophe Bliard ddb0753273 Document why bs-local.com is allowed host in development.rb
[skip ci]
2025-08-27 14:19:03 +02:00
Alexander Brandon Coles 78ed9ea580 Freeze string literals in config
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze config
2025-08-19 17:04:00 +01:00
Klaus Zanders 7bd0f48bf8 Run update script 2024-11-19 11:25:14 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Christophe Bliard dcf53b2702 Merge branch 'dev' into feature/40749-consistent-calculation-of-percent-complete 2024-04-04 14:47:48 +02:00
Christophe Bliard da903583f0 Can disable pending migration check in dev environment
If OPENPROJECT_DISABLE__MIGRATIONS__CHECK is set to 'true', then the
pending migrations screen will not be displayed. Useful to test some
stuff while working on migrations. But a yellow annoying banner will be
displayed in the bottom of OpenProject page instead.
2024-04-02 17:59:56 +02:00
Ivan Kuchin 6678cab48d auto correct quotes 2024-03-28 18:22:34 +01:00
Andreas Pfohl 976a5eb0c2 Enabled letter_opener_web per default 2024-03-07 10:36:02 +01:00
Andreas Pfohl d5aa9c4068 Fixed suggestions from PR for health mailing 2024-03-06 13:30:57 +01:00
Andreas Pfohl dfbca96b68 Fixed StorageHealthMailJob and mail sending 2024-03-01 09:27:35 +01:00
Dombi Attila 4bab7c4d99 Use new mailer config preview path syntax 2024-02-01 14:22:13 +02:00
Dombi Attila ba16112745 Use Rails.application instead of OpenProject::Application 2024-02-01 14:22:04 +02:00
Dombi Attila f67aee52f5 [#46647] Bump Rails to 7.1
- Modified config files:
  - config/application.rb
  - config/environment.rb
  - config/environments/development.rb
  - config/environments/production.rb

https://community.openproject.org/work_packages/46647
2024-02-01 14:22:03 +02: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
Oliver Günther bf6e9e037e Bump i18n-js to v4 2023-07-19 10:11:45 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Oliver Günther 0b8fdb7c1e Fix path to mailer previews 2022-07-18 16:29:03 +02:00
Dombi Attila 3eac81416b Add mailers previews to the dev environment 2022-07-18 14:28:16 +02:00
Eric Schubert 143ba27803 [chore] added option to add more hosts to rails server 2022-07-14 16:42:39 +02:00
Christophe Bliard 08ef97516b Can eager load app in development with EAGER_LOAD=1
So one may avoid errors like

    NameError: uninitialized constant Authorization::UserGlobalRolesQuery

          Authorization::UserGlobalRolesQuery.query(user)
                       ^^^^^^^^^^^^^^^^^^^^^^

while debugging with pry.
2022-06-21 15:55:53 +02:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Henriette Darge 52503ab5db Script to make it easier to test Safari on BrowserStack 2021-09-15 08:04:22 +02:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Oliver Günther de0f155c94 Use ActiveSupport::Logger to support .silenced 2021-03-23 20:24:32 +01:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01: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
Markus Kahl 6416662302 silence asset logs unless in debug log level 2020-03-19 09:58:05 +00:00
Oliver Günther dbbd148271 Merge pull request #7935 from opf/fix/use_listener_gem_again
Reactivate event base file checkers

[ci skip]
2020-02-07 15:15:29 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
ulferts 49d939615e Reactivate event base file checkers
This reverts commit f920cc73a0.

We originally removed event base file checking to cope with problems on
os x that would lead to having a multitude of fsevent_watch processes
(one for every directory) and those processes would sometimes, e. g. when
the system was sent to standby turn zombie. If not killed dutifully by the
developer, the system would become unresponsive as the maximum number of
processes as dictated by the os would be reached. Not even killing
processes would be possible any more as kill requires forking.

Now the listen gem was released as version 3.2.1 which changed to only
needing one process to watch all directories.

As event based dirty checking promises to be more performant than
checking all the files, and the reload time in dev mode would exceed
tens of seconds if kept running for a longer period of time, I took
another stab at integrating the listen gem again:

The good:

* The file checking seems to work. Altering the code is reflected by the
application.
* Only two fsevent_watch processes are created (one for the code files
and one for the locales.)
* The fsevent_watch processes where exited as desired when the rails
process was existed. I did not yet test it for an extended amount of
time but this also seems to hold true when the system was suspended in
the meantime.

The bad:

* Subjectively, reloading did not seem to be faster. However, I did not
leave the server running over an extended period of changes. So the
event based detection might shine in the long run.

The ugly:

* When running multitreaded, the server seems to be running into
deadlocks. I assume, that there is a shared, but mutexed, resource multiple threads
attempt to access at the same time. It does not happen on every page but
one of the roadmap pages on my development env causes the problem
consistently. The problem can be circumvented by disabling multi
treading:

`RAILS_MIN_THREADS=1 RAILS_MAX_THREADS=1 bundle exec rails s`

The same problem does not occur when running the server with multiple
worker processes:

`OPENPROJECT_WEB_WORKERS=4 RAILS_MIN_THREADS=1 RAILS_MAX_THREADS=1
bundle exec rails s`
2020-01-13 11:34:30 +01:00
Markus Kahl 1547a75a16 log sql statements by default in dev mode 2019-07-18 07:59:34 +01:00
Jens Ulferts f920cc73a0 avoid EventedFileUpdateChecker to avoid system crashes
Because of the tendency of rb-fsevent (used by listen on mac) to create zombie processes and because of the rather low default number of allowed processes on mac (709), using the EventedFileUpdateChecker can cause the system to become unusable which can then only be fixed by a reboot (as kill requires forking).

Please also see:

* https://github.com/rails/rails/issues/26158
* https://github.com/puma/puma-dev/issues/56#issuecomment-263886476
* https://github.com/ledermann/docker-rails/commit/148540d9c8c0f493864d7d532cb7ba8a070ee794
2019-02-08 09:42:47 +01:00
Oliver Günther 4bb14e2a62 Upgrade to Rails 5.2 2018-12-03 10:29:18 +01:00
Oliver Günther 953ef10e7a Enable caching in dev mode 2018-07-27 13:14:25 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther ea6fed8a5f Improve validation of group configuration 2017-03-29 13:44:05 +02:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Jens Ulferts 714f31662b silence asset pipeline 2016-09-06 15:16:53 +02:00
Oliver Günther 58e4a642da Automatically build locales in dev mode 2016-07-13 08:49:04 +02:00
Oliver Günther bc826351c1 Make test/dev assets settings explit 2016-05-21 20:00:16 +02:00
Alex Coles dab73aadff Update Rails configs: environments
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-06-06 15:44:27 +02:00
Alex Coles e5da2578d5 Merge branch 'dev' into feature/rails4
Signed-off-by: Alex Coles <alex@alexbcoles.com>

Conflicts:
	.travis.yml
	Gemfile
	Gemfile.lock
	README.md
	app/assets/stylesheets/external.css.sass.erb
	app/assets/stylesheets/legacy/main.css.sass
	app/models/work_package.rb
	config/routes.rb
	lib/tabular_form_builder.rb
	spec/controllers/versions_controller_spec.rb
	spec/exemplars/type_exemplar.rb
	spec/factories/type_factory.rb
	spec/legacy/unit/default_data_spec.rb
	spec/legacy/unit/helpers/application_helper_spec.rb
	spec/legacy/unit/mail_handler_spec.rb
	spec/legacy/unit/project_spec.rb
	spec/legacy/unit/time_entry_activity_spec.rb
	spec/legacy/unit/type_spec.rb
	spec/models/work_package/work_package_validations_spec.rb
	spec/requests/api/v3/render_resource_spec.rb
	test/functional/types_controller_test.rb
	test/test_helper.rb
	test/unit/version_test.rb
2015-05-01 11:39:24 +02:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Alex Coles 217871f35a Remove obsolete Rails config
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-05 11:56:27 +01:00
Jens Ulferts b7b4864fba removes no longer required default_url_options
Taken care of by OpenProject::StaticRouting
2014-09-03 13:35:30 +02:00
Marek Takac 5f2a8d7428 Added embedded activities to the work package resource
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-07-02 11:29:06 +02:00
Alex Coles 348420a03f Revert "Feature/api work package embedded activities" 2014-07-02 11:06:42 +02:00