16 Commits

Author SHA1 Message Date
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
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 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +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
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 f50297227b [34444] Projects copy APIv3 (#9149)
* Create copy project endpoint

* Add representers

* Add _meta representer for copy module information

* Add Meta payload representer

* Extract parsing of copy attributes into service

* Extract enqueue job for projects copy

* Keep request object available in the bodied endpoint

this allows us to access grape (e.g., for redirecting)

* Add DelayedModify endpoint that redirects to job status

* Use DelayedModify endpoint for copying projects

* Add api paths for form/copy

* Disable cache on ProjectCopyPayload

* Add spec

* Add resource spec

* Extend schema for meta

* Extend docs

* Don't pass service result, but state as meta to forms

* Use copy dependencies for naming copy options in API

* Add description property for counting

* Remove unused action attribute

* Skip writable checks on meta property for payloads

* Use prepend to allow create(...) usage with meta

* Extend copy spec with custom fields usage

* Add spec for copy flags

* Add todos

* Pass errors correctly to copy settings

* Remove invalid parameters to copy that are now caught through project service

* Remove duplicated validation

* Linting

* Make count a human readable, formattable description string

* Make source count string readable

* Provide the source project for generating the counts

* Extract copying of attachments into sepearate dependent services

This will allow the API to dynamically generate a copy association schema from each dependent service

* Add spec for copy schema representer

* Add payload representer spec

* Also validate the model to pass the validations when copying

* Make description optional and add note to schemas.apib

* Add send_notifications to representer

* Allow to configure sendNotifications

* Allow bodied to receive a state process callback

That allows us to manage the meta state on the API level, not on the service level

* Make other services compatible with BaseCallable

* Fix params passing from BaseCallable

Wrapping a single hash into kwargs obviously loses their key indifference
and we can't expect all services to use a single params object. Older services use kwargs

* Copy wiki page with parent_id

This will save some memory instead of memoizing the entire wiki page

* Fix typo

* Default to true for all copy associations

That means if only a true value is passed, all other options will still be true

* Do not try to copy attachments if the base dependency wasnt copied

* Ensure null identifier gets rendered

* Fix paths to the form and commit

* Change redirect to an URL

* Extend documentation on meta properties as table

* Ensure we pass a default params if incoming params are nil

Now that SetAttributes needs to splat params, they do no longer
correctly get the no-param-default behavior of Ruby, so we need to
explictly assign a default params hash

* Fix expect for trailing path
2021-04-19 12:22:42 +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
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Jan Sandbrink d79ca74c9d Extract base class out of form representer
- moving error handling and basic structure of a form into a generic base class
- leaving work package specific stuff in WP form representer
2017-03-31 09:15:41 +01:00