14 Commits

Author SHA1 Message Date
Jan Sandbrink f9d8bc6614 Introduce SubclassResponsibility error
This error is intended for cases when a method is
intentionally not implemented, because the module/class defining
it expects a subclass (or class including the module) to implement
the method.

This is intended to distinguish it from other cases, such as:
* feature not implemented yet
* edge case of a method call not yet supported

Notably it avoids the misuse of the Ruby-defined NotImplementedError,
which is only intended for much more specific scenarios:

> Raised when a feature is not implemented on the current platform. For example, methods depending on the fsync or fork system calls may raise this exception [...]

Also see https://docs.ruby-lang.org/en/master/NotImplementedError.html
2026-03-27 08:14:56 +01:00
Alexander Brandon Coles 597f058ba9 Fix missing copyright notices in app/services 2025-07-18 18:08:25 +01:00
Alexander Brandon Coles 5e9f3827f5 Freeze string literals in app/services
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/services
2025-07-18 17:45:24 +01:00
Oliver Günther b7f5b07022 Show info log only when user is not active 2025-03-04 08:28:51 +01:00
Alex Fantini 72cb9baa71 Fixed nil error on ldap find_entries_by 2025-01-13 14:30:14 +01:00
Oliver Günther 9f1d058299 Don't call create service on auto create 2024-03-11 20:34:05 +01:00
Oliver Günther d7cfa42fa1 Merge contract errors into user 2024-03-11 20:31:22 +01:00
Oliver Günther 7a09676adc Update users using their LDAP attributes when logging in 2024-02-06 16:05:58 +01:00
Oliver Günther e32d2d0058 Remove AuthSource base namespace, model 2023-07-27 08:16:43 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Oliver Günther d04478b4d3 Provide a way to disable user status syncing in LDAP user sync
https://community.openproject.org/work_packages/42485
2022-05-23 08:35:27 +02:00
Oliver Günther 97fb4243e4 Fix service call for user sync service
https://community.openproject.org/work_packages/42351
2022-05-12 19:42:30 +02:00
Oliver Günther c991d6771c Readd the two removed rake tasks as services
They were broken so I removed them. But instead of removing import
functionality, I decided to re-add them and fix them.
2022-03-31 12:05:43 +02:00
Oliver Günther 22cf9ea47c Add LDAP user synchronization job 2022-03-31 09:46:21 +02:00