Jan Sandbrink
0b06198e6f
Improve readability of patch_with_namespace
...
Using Ruby's splat operator to make clear how the module name is constructed,
avoiding the use of args[0..-2], which (IMO) is not easy to read.
2026-05-05 08:35:45 +02:00
Christophe Bliard
11227b3fcc
Print both link source and destination to stdout
2025-08-26 17:18:48 +02:00
Christophe Bliard
6f0cd781d1
Fix linting errors
...
For ruby file, extract some methods to reduce complexity.
2025-08-26 17:15:50 +02:00
Jan Sandbrink
07a2b146ae
Add short-hand syntaxes to add reference replacements
...
There is now add_replacements which accepts a hash, allowing to
add multiple replacements in one call. This should make mass-adding
replacements look less bulky.
Also including helpers to ActsAsOpEngine to make adding replacements
from a module nicer.
2024-12-19 11:09:19 +01:00
Ivan Kuchin
4911b8a149
remove years from copyrights (except for COPYRIGHT file)
2024-07-31 15:02:49 +02:00
Ivan Kuchin
fa5d03eae0
rubocop safe autocorrect all except Rails/WhereRange
2024-05-30 19:54:08 +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
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
fd6a899b29
[ #48717 ] Replace DelayedJob with GoodJob.
...
https://community.openproject.org/work_packages/48717
2024-02-14 10:18:27 +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
583ef2c8f6
Merge branch 'dev' into implementation/51193-move-remaining-work-field-into-core
2024-01-04 14:36:21 +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
c30a2972b2
[51193] Move remaining_time field to core
...
And improve time of spec/models/work_package_spec.rb (15s -> 3.5s)
2023-12-08 10:01:35 +01:00
ulferts
f7548f701c
avoid raising error on disabled permissions
2023-10-11 13:43:40 +02:00
Christophe Bliard
3871a47546
Internationalize plugins name and description
2023-09-04 12:06:15 +02:00
Dombi Attila
fb0d0493ce
Remove residues of Cells
2023-05-23 15:32:55 +03:00
Christophe Bliard
21a696ef9b
Update copyright information for 2023
2022-12-30 15:51:26 +01:00
ulferts
4a94e03b04
bump rubocop and apply autofixes for new cops
2022-10-21 22:29:12 +02:00
ulferts
4200b38617
autofix new rubocop cops
2022-08-02 18:02:45 +02:00
Dombi Attila
4549de8ffa
Simplify the OpenProject::Plugins::ModuleHandler class
2022-07-22 15:10:08 +02:00
Oliver Günther
0a359d5051
Prevent stripping of permissions before disabled modules registered
...
The +remove_modules_permissions+ is called before the disabled modules
are registered.
https://community.openproject.org/wp/43213
2022-07-21 16:24:12 +02:00
Dombi Attila
92a7f1ffda
Rename :writeable to :writable
2022-06-20 13:30:33 +02:00
Christophe Bliard
48a4f1b6ad
lint with rubocop --autocorrect (safe cops only)
2022-06-02 10:40:10 +02:00
ulferts
6ad2713141
avoid autoloading ApplicationHelper during initialization
2022-04-04 16:04:46 +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
Christophe Bliard
bc8d423ec2
update copyright information for 2022
2022-03-01 17:05:59 +01:00
ulferts
89cfee203f
remove usage of require_dependency
...
according to the rails 6 migration guide, it should no longer be necessary: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#require-dependency
2022-01-07 14:46:21 +01:00
ulferts
b34310ee48
add POST /api/v3/views/team_planner
2021-12-02 15:03:26 +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
Aleix Suau
7e2e05c88f
Feature/36390 code structure ( #9319 )
...
* core/shared/features in progress
* shared/components in progress
* Fix rebase errors
* core: added admin + apiv3
* shared: attachments + attirbute-help-text
* core: OpenprojectAugmentingModule
* shared: OpenprojectAutocompleterModule
* shared: Autocompleter
* feature: backlog
* feature: bim
* feature: boards
* shared: calendar
* core: userModule
* feature: dashboards
* shared: editor
* shared: fields
* shared: focus
* core: globalsearch
* shared: grid
* shared: grid fix
* core: hal
* shared: icon
* feature: invite user modal
* feature: job status
* shared: members autocomplete
* shared: modal
* feature: my page
* feature: overview
* shared: principal
* feature: projects
* feature: repoting
* core: routing
* shared: time entries
* shared: OpenprojectWorkPackageGraphsModule
* feature: workpackages
* core: active window
* shared: autofocus
* features: wp: back-button
* core: browser
* shared: collapseible section
* core: config
* shared: copy-to-clipboard
* shared: date-time
* shared: helpers: drag-and-drop
* shared: draggable autocompleter
* shared: dynamic bootstrapper
* shared: dynamic forms
* features: wp: edit actions bar
* shared: EditableToolbarTitleComponent
* core: BannersService
* shared: OpFormFieldComponent
* shared: hide section
* shared: highlight col
* core: I18 + Sanitizer
* shared: isClickedWithModifier
* core: LoadingIndicator
* core: Modal Heading
* core: Model auth
* shared: no results
* shared: notifications
* shared: datepicker
* shared: option-list
* core: path helper
* shared: persistent toggle
* shared: remote field
* shared: set click position
* shared: slide toggle
* shared: tabs
* shared: drag-scroll
* shared: keyCodes
* shared: OPSharedModule
* global styles: common
* core:
* import fixes
* shared: Enterprise banner
* features: wps: filters
* features: home screen
* import fixes
* core: html
* import fixes
* core: main-menu
* features: home screen
* shared: modals
* shared: op-context-menu
* core + shared: current project
* core: schema-cache
* shared: table-pagination
* features: wps: time-entries
* shared: user-link
* features: wps
* features: wps
* features: wps: all wp-* components
* core: states
* Rename: angular4-modules to app.module
* core: expression service
* Modules just with plugins
* Test fixes
* added missing content-tabs.component.sass
* Replaced with .op-ckeditor--wrapper
* Replaced by .op-ckeditor-source-element
* Replaced by the entire wysiwyg_editor.rb with dev version
* Replacements by ckeditor-augmented-textarea
* Fixes ./spec/support/components/work_packages/table_configuration_modal.rb:106
* Fixes ./modules/reporting/spec/features/update_entries_spec.rb:69
* work_packages renamed to work-packages
* TimeEntryChangeset moved to helpers
* 'filters' moved to wps/components
* 'admin' moved to features
* HAL moved to shared
* plugins moved to features
* plugins moved to features
* Test fixes
* Unit test fixes
* plugin generator into /features/plugins
* fix sass rule indentation
* Revert "plugins moved to features"
This reverts commit f65ccbfd4b .
* Import fixes
* Avoid commiting in linked plugins
Co-authored-by: ulferts <jens.ulferts@googlemail.com >
Co-authored-by: Oliver Günther <mail@oliverguenther.de >
2021-06-08 21:10:58 +02:00
Oliver Günther
8c632139e8
Allow plugins to define global_styles.sass ( #9176 )
...
* Allow plugins to define global_styles.sass
* Add generated sass to gitignore
2021-04-23 14:24:12 +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
ulferts
58279e1592
Merge branch 'release/10.5' into dev
2020-04-27 08:33:40 +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
ulferts
3c7bf61b55
register api patches immediately and raise when too late ( #8311 )
...
New API patches can only be registered within an engine which is only read when booting.
Before the patch, the actual registration took place on to_prepare.
But the patching only takes place when the patched class is read.
If the class is initialized, before the patch is registered, it is never applied. There was no warning given.
With the change, the registration happens at once and an error is raised if a patch is registered after the class is already defined.
[ci skip]
2020-04-24 16:23:13 +02:00
Oliver Günther
6ded4e6852
Add cron job functionality to delayed_job
2020-04-06 16:16:44 +02:00
ulferts
ea7f52b541
replace deprecated bundler command
2020-04-01 07:05:49 +02:00
ulferts
95507ce776
Merge remote-tracking branch 'origin/release/10.4' into dev
2020-03-11 10:42:44 +01:00
ulferts
2aac9920c1
avoid naming conflicts when patching
2020-03-09 14:34:27 +01:00
ulferts
34a61e62d0
split up inflection method
2020-02-21 20:47:25 +01:00
Inga Mai
32079589a0
Admin User tabs
2020-01-20 13:06:26 +01:00
Henriette Dinger
bd7f4e4814
Update copyright notice
2020-01-15 11:31:26 +01:00
ulferts
c83ba63640
Revert revert unwanted in dev branch
...
This reverts commit b05a8f7b54 .
The release/10 branch received a revert that was applied after changes
from dev unwillingly where merged into it. But when merging release/10.0
back into dev, that revert was also applied to dev where the changes are
indeed wanted. So we revert the revert for dev.
2019-09-20 08:36:05 +02:00
Oliver Günther
b05a8f7b54
Revert "[31080] Trigger wpEvent after custom action"
2019-09-18 14:28:33 +02:00
ulferts
e7263fcedb
migrate to rails 6.0.0
2019-09-12 16:14:51 +02:00