21 Commits

Author SHA1 Message Date
Alexander Brandon Coles d17da65477 Freeze string literals in app/models
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/models
2025-07-22 18:26:13 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02: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 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
Markus Kahl 96e7f858c9 rubocop 2021-10-26 14:29:05 +01:00
Markus Kahl d86e2787c7 Merge branch 'release/11.4' into dev 2021-10-20 13:44:48 +01:00
Markus Kahl 379a0969bb handle invalid group_users entries, prevent new ones 2021-10-08 14:47:48 +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
ulferts b8ca382d34 Group API (#9034)
* include group members into resource

* GET /api/v3/groups endpoint

* POST /api/v3/groups

* PATCH /api/v3/groups/:id

* DELETE /api/v3/groups/:id
2021-02-23 09:59:49 +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
Oliver Günther d93ff52a27 Handle add_users with a separate service with CTE 2020-05-05 13:10:07 +02:00
Alex Coles 55a2207631 Replace GroupUser join model w/ habtm association
Active Record 4.x does not generate correct DELETE SQL statements
when deleting groups for a given `User` (the `GroupUser` join model
does not have a primary key).

Callbacks (e.g. `after_remove`) *are* invoked on
`has_and_belongs_to_many` associations.

This effectively reverts 6c5239c4e2

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-05-22 12:01:22 +02:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Alex Coles c12410a736 Fix whitespace in (Rails) models
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-05-29 23:50:04 +02:00
Johannes Wollert 8b096975fe updates copyright headers
updates more copyright

more copyright headers
2014-02-27 16:39:51 +01:00
Philipp Tessenow a1e67dd460 new copyright header #1903 2013-09-16 17:59:31 +02:00
Jens Ulferts 21459a384f provide every possible file with a short copyright notice
This was done using the rake task: rake copyright:update
2013-06-07 10:49:57 +02:00
Martin Linkhorst 6c5239c4e2 DEPRECATION FIX: make a badly named GroupUser model to acts as the join model for a has_many :through between groups and users.
this replaces a has_and_belongs_to_many association, that contained additional parameters like :after_add and :after_destroy. these additional parameters aren't supported for habtm beginning with rails 3.1.0
2012-08-29 13:23:11 +02:00