90 Commits

Author SHA1 Message Date
ulferts 6eac5926eb adapt deprecation warning 2025-03-01 21:04:48 +01: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
Oliver Günther 23d49f9d38 Hide bundled plugins 2024-03-13 09:26:22 +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
Klaus Zanders 0ff0e80295 Fixes Performance/StringIdentifierArgument offenses 2023-09-06 10:59:37 +02:00
Christophe Bliard 3871a47546 Internationalize plugins name and description 2023-09-04 12:06:15 +02:00
Pavel Balashov 80b8a7eb52 Rename new method for configuring menu in plugins. 2023-03-28 16:59:48 +02:00
Pavel Balashov d62f6dc904 Extract storage menu modification to the module.
- Add `dynamic_menu` method to Redmine::Plugin.
- Fix tests.
2023-03-28 16:59:48 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
ulferts 6a821ed820 replace legacy spec 2022-10-13 20:45:05 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Oliver Günther 558c4b314b Fix unsetting the @project_scope instance variable
on reload, this variable obviously is no longer present
2022-05-18 14:32:02 +02:00
Oliver Günther ab1e8e43ff Merge remote-tracking branch 'origin/dev' into fix/rails_autoloading_deprecations 2022-05-17 16:13:21 +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 2c67f992a5 stringify hash settings keys and support OPENPROJECT_2FA env var
updated code to look up the string key instead of the symbol key

introduce a 'with settings' rspec shared context
2022-04-27 21:27:42 +02:00
ulferts c794a9249b defer autoloading permissions 2022-04-04 16:46:00 +02:00
ulferts 0b5575aa64 harmonize settings & configuration
They are for now still available as separate entities but that is more due to existing references to them both. Under the hood, they now depend on the
same structure `Settings::Definition` which just as well could have been named `Configuration::Definition`, that defines:
* the name
* the default value
* the type (which might be deferred from the default value)
* the array of allowed values

Both Setting and Configuration can now be overwritten using the same mechanisms:
* Default value
* Database value
* configuration.yml (settings.yml is removed)
* ENV vars
2022-03-14 13:37:22 +01: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
ulferts a775e9e5d8 introduce permission governing whether work packages can be assigned 2022-03-03 11:36:58 +01: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 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
ulferts 6826f90ee2 Feature/remove timelog (#8557)
* rename costs, introduce budgets

* move files from costs to budgets

* rename cost_object to budget

* remove unused code

* move hook - should be turned into standard code in the long run

* move type attributes change over to budgets

* move patch to work_package proper

* move budget menu item up

* combine reporting, time and cost module

* remove rails based time_entries & reports code

* rename cost object filter

* adapt menu spec expectations

* use cost project module name in administration

* include timeline labels in migration

* properly place budget linking method

* fix permitted params

* remove outdated routing spec

* adapt budget request specs

* ensure order of descendent updates

* remove outdated specs

* fix checking for reporting to be enabled

* fix displaying spent units

* fix time entries activity event url

* reenable current rate tab

* fix path on budget page

* allow bulk editing of budgets only in one project scenario

* fix sanitizing reference in controller

* include module required for format_date

* fix reference to correct units from work package spent units

* linting

* remove outdated spec

* remove outdated views and permission references

* remove acts_as_event from time_entries

There is no atom link for time entries

* remove acts_as_event from projects

There are no atom links for projects

* introduce budget filter for cost reports

* remove actions added to removed controller

* move time entries to the costs module

* factor in view_own permission when calculating time entry visibility

* linting

* move mounting of time entries

* include budgets into api v3 documentation
2020-08-18 08:24:34 +02:00
Oliver Günther 10e21154f7 Move asset pipeline javascripts to frontend (#8482)
* ove reporting and reporting_engine js to frontend page

* Replace webhook assets javascript

* Add path augment service to dynamically load scripts

* Remove JS-Files that are not used/not needed any more

* Include AugmentingModule correctly

* Remove special handling for checkbox selection which is outdated and two jquery libs that are not used any more

* Load scripts dynamically that are not needed globally

* Move plugin JS to frontend

* Move toggable fieldsets to global listeners

* Move top-menu to global listeners and convert to TS

* Move action_menu to frontend and port to TS

* Move settings listener to frontend

* Remove global js assets that were not used anyway

* Move date range to timelog dynamic script where it's still used until removed

* Move colors to global-listeners and port to TS

* Replace tooltip with simple form instructions on the one place used

Tooltips were only used at the one place in our application, when changing a users password.
We can simply remove it there and use a modern solution the next time we need a tooltip

* Move danger zone validation to frontend and port to TS

* Move colorcontrast to backlogs vendor where it's used now

* Remove contents of application.js.erb

* Move project and user scripts to dynamically loaded

* Move onboarding tour to dynamically loaded

* Use correct syntax for jQuery so that $ is  known keyword within this function

* Fix onboarding tour

* Fix onboarding tour for scrum tour

* Fix specs after moving JS

* Remove application.js.erb

* Move locales and ckeditor to the frontend to dynamically load

* Remove bundles caches

These are no longer being used since angular cli

* Ensure locales are exported before angular

Co-authored-by: Henriette Darge <h.darge@openproject.com>
2020-07-09 11:02:43 +02:00
ulferts 64d0f57d85 Feature/aggregated activities (#8221)
* use cte for aggregated journal

* Revert "use cte for aggregated journal"

This reverts commit 5fedefefdd.

* add another subselect that could later on be provided from the outside

* allow passing a nukleous sql to aggregated journals

* wip - using aggregated journal for activity

* new sql for aggregated journals

* start implementing new aggregated query

* additional documentation

* consolidate activity functionality

* simplify by turing into instance methods

* move activity fetcher out of redmine

* remove verb verification made obsolete

Without catchall routes, the dispatching handles it

* remove duplicate authorize check

* refactor activities controller

* refactory activity fetcher

* cache avatar file

* sort choosable events

* remove legacy spec covered by contemporary

* speed up aggregated journals via CTE

* instance var might never have been set

* ensure the event_types are always transmitted

* correctly reset the avatar cache

* fix avatar fetcher expectation regarding wiki pages

* adapt spec

[ci skip]
2020-04-27 08:04:28 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Wieland Lindenthal 7b8290cfbf Merge remote-tracking branch 'origin/release/9.1' into dev 2019-08-28 15:01:43 +02:00
Wieland Lindenthal e76e638de3 Fix setting permission dependencies from engine files 2019-08-28 10:12:43 +02:00
Henriette Dinger 0540001031 Merge branch 'release/9.1' into dev
# Conflicts:
#	frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts
#	lib/redmine/menu_manager/menu_helper.rb
#	lib/redmine/menu_manager/menu_item.rb
#	modules/avatars/config/locales/crowdin/zh-CN.yml
#	modules/reporting_engine/config/locales/crowdin/tr.yml
#	modules/two_factor_authentication/config/locales/crowdin/tr.yml
2019-08-07 13:32:49 +02:00
Henriette Dinger defdb27e09 Override "all open" query when BCF is active and redirect to new "all open" when clicking on module name 2019-08-05 09:54:38 +02:00
Henriette Dinger f8f6699219 Rename "Work Packages" module to BCF when activated 2019-08-05 09:54:38 +02:00
Oliver Günther 2ea2ad4826 Remove plugin tests from lib/ that now are eager loaded 2019-07-15 15:41:54 +02:00
ulferts 7482e4dc70 add dashboard module 2019-07-10 16:21:47 +02:00
ulferts f1142c6654 move AccessControl into OpenProject namespace 2019-05-31 20:36:32 +02:00
Oliver Günther 9252968590 [30173] Allow altering order of permission and modules
https://community.openproject.com/wp/30173
2019-05-10 15:27:46 +02:00
Oliver Günther 8352af2bf7 Remove module versions 2019-03-15 11:48:36 +01: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
Mohamed Wael Khobalatte 0e72ec4243 Move to ruby1-9 syntax once and for all 2015-10-29 19:17:59 +01:00
Alex Coles a6212fb304 Fix syntax (w/Rubocop) in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-06-30 12:08:31 +02:00
Jan Sandbrink 6ee2e64c6c deprecate method for deletion of menu items 2015-06-24 14:17:46 +02:00
Jan Sandbrink 4436461989 allow to hide menu items conditionally 2015-06-24 14:17:36 +02:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Alex Coles ca2a1a5afc Prefer #map over #collect in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-04 11:25:39 +01:00
Alex Coles 45297523c2 Fix syntax (w/Rubocop) in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-03 23:49:01 +01:00