Jan Sandbrink
2a1c725c0f
Allow to filter special characters from folder names created in Nextcloud
...
This is the foundation to properly support the "windows compatibility"
mode of Nextcloud. Nextcloud also supports setting up custom character
block lists, that's why we can't work with a hardcoded list of forbidden
characters, but need to allow defining it per storage.
2026-02-26 16:12:54 +01:00
Klaus Zanders
c52abc3bee
Add uniqueness constraints to the database for models that have them in code
2026-01-05 11:29:43 +01:00
Klaus Zanders
017284eb35
remove names of squashed migrations
2025-11-26 14:27:58 +01:00
Klaus Zanders
48e9d0a7d7
Aggregate migration 20250115100336_set_default_authentication_method
2025-11-24 16:16:24 +01:00
ulferts
2b68eb08ad
squash migrations below 15.0
2025-07-22 14:54:28 +02:00
Jan Sandbrink
d6d9c54741
Frozen string literals for storages and openid_connect
...
Enforce frozen string literals across the storages module and
the openid_connect module.
2025-05-05 09:19:08 +02:00
Jan Sandbrink
0f1fd41a6d
Make migration reversible
2025-01-23 13:53:30 +01:00
Jan Sandbrink
5ecc78e60d
Add configuration for authentication method
...
Preparing for users to choose how they want to authenticate their
nextcloud storage and if using a common OAuth 2.0 IDP, what the client_id
of nextcloud is.
2025-01-22 10:48:41 +01:00
Ivan Kuchin
4911b8a149
remove years from copyrights (except for COPYRIGHT file)
2024-07-31 15:02:49 +02:00
Eric Schubert
c09aa6e3e1
[ #55193 ] added migration to rename existing roles and permissions
2024-06-10 15:14:08 +02:00
Eric Schubert
ce344c0b03
Update modules/storages/db/migrate/20240405135016_update_access_management_of_configured_one_drive_storages.rb
...
Co-authored-by: Pavel Balashou <ba1ashpash@gmail.com >
2024-04-09 11:26:56 +02:00
Eric Schubert
617dde4364
[ #53945 ] added migration for storage access management
...
- affects only one drive storages
- set `automatically_managed` to false for storages with null value
2024-04-05 16:05:00 +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
fa67e0436d
Use execute over execute_sql.
...
Due to no need in sanitization.
2024-02-29 15:21:40 +01:00
Pavel Balashou
a59e01e3ef
Restore delayed_job related migration statements.
2024-02-29 14:53:00 +01: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
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
Dominic Bräunlein
16ee51b28b
chore[ #51423 ] Refactor feature to display since when a failure state is occurring
2023-12-08 22:13:16 +03:00
Pavel Balashou
e774158836
Rename unconfigured to pending.
2023-11-22 14:47:01 +01:00
Pavel Balashou
c169a09aa2
Remove jsonb health_info and use usual columns.
...
No need for having jsonb for now.
2023-11-21 21:20:38 +01:00
Pavel Balashou
7021560282
Set storages.health_info default on the database level.
2023-11-20 21:37:46 +01:00
Pavel Balashou
e5c00bdb01
Do not use Storages::Storage model in migrations.
...
It breaks the migration process if we define store_attribute and
try to use model class without store_attribute column in the db.
NoMethodError: undefined method `accessor' for #<ActiveModel::Type::Value:0x00007f7aa00163b0 @precision=nil, @scale=nil, @limit=nil> (NoMethodError)
@store_accessor = subtype.accessor
^^^^^^^^^
/usr/local/bundle/gems/store_attribute-1.1.1/lib/store_attribute/active_record/type/typed_store.rb:33:in `initialize'
/usr/local/bundle/gems/store_attribute-1.1.1/lib/store_attribute/active_record/type/typed_store.rb:25:in `new'
/usr/local/bundle/gems/store_attribute-1.1.1/lib/store_attribute/active_record/type/typed_store.rb:25:in `create_from_type'
/usr/local/bundle/gems/store_attribute-1.1.1/lib/store_attribute/active_record/store.rb:188:in `block in _define_store_attribute'
2023-11-16 20:08:57 +01:00
Marcello Rocha
d652e2ab49
Move the migration to storages module
2023-11-10 11:55:15 +01:00
ulferts
17996586ab
Merge remote-tracking branch 'origin/release/13.0' into dev
2023-10-10 12:54:43 +02:00
Pavel Balashou
e7605aae87
Remove cron jobs from db with old handler names.
...
After renaming some cron jobs records with old handler class name can
be left in the database which produce unnecessary noise.
2023-10-09 16:11:22 +02:00
Eric Schubert
bd1ca550af
[ #49760 ] Amend create storage form
...
- https://community.openproject.org/wp/49760
- ability to create onedrive storages
- separated create and update contracts
- amended view files
- added locale strings
- added stimulus controller for reactive forms
- splitted new oauth client form into partials
2023-08-29 17:06:58 +02:00
Andreas Pfohl
8c5c254ef4
[ #49433 ] Align naming to "project_storages"
...
https://community.openproject.org/work_packages/49433
2023-08-03 10:26:10 +02:00
Eric Schubert
57d9e65df3
[chore] Remove project folder mode default
2023-07-21 14:38:24 +02:00
Pavel Balashou
29f3e47988
Merge branch 'dev' into code-maintenance/48217-move-modules-migrations-to-dbmigrate
2023-07-03 09:27:18 +02:00
Andreas Pfohl
a798560c9b
[ #47048 ] Prepare the database migration
...
https://community.openproject.org/work_packages/47048
2023-06-02 14:35:52 +02:00
Pavel Balashov
5241f811ed
[ #46331 ] Project members experience a fully automatically managed project folder
...
https://community.openproject.org/work_packages/46331
2023-05-25 11:20:29 +02:00
Pavel Balashov
4fd26142a1
Add missing copyrights.
2023-05-24 16:10:26 +02:00
Pavel Balashov
7991ed8a81
[ #48217 ] Move modules migrations to moudule/db/migrate
...
https://community.openproject.org/work_packages/48217
2023-05-24 16:07:47 +02:00
Andreas Pfohl
d18df4f962
[ #47218 ] project folder migration not applicable for SaaS environment
...
https://community.openproject.org/work_packages/47218
2023-03-29 14:31:40 +02:00
Andreas Pfohl
c9b9a3c8fb
[ #47045 ] Prepare the database to have project folder data.
...
https://community.openproject.org/work_packages/47045
2023-03-22 14:51:23 +01:00
Pavel Balashou
edc0ccb814
[ #43692 ] Modify API to be able to handle file_links without a container. ( #11977 )
...
* [#43692 ] Modify API to be able to handle file_links without a container.
https://community.openproject.org/work_packages/43692
2023-01-27 11:03:57 +01:00
Christophe Bliard
21a696ef9b
Update copyright information for 2023
2022-12-30 15:51:26 +01:00
Markus Kahl
d48b149bfe
fix migration by updating schema cache
2022-10-24 16:49:36 +02:00
Wieland Lindenthal
523230af99
Update and rename 20220712165928_add_storage_file_link_perms.rb to 20220712165928_add_storages_permissions_to_roles.rb
...
I believe it is better not to introduce abbreviations unless it is not necessary. Also the migration is not strictly about file links.
2022-07-15 15:50:01 +02:00
Wieland Lindenthal
2a3a12c35c
Fix permission names
2022-07-15 15:47:22 +02:00
Frank Bergmann
ffa2235da8
Implemented preliminary rules to update permissions for Storages
...
Somebody with these permissions -> will get these new permissions:
- view_work_packages -> view_file_links
- select_project_modules -> manage_project_storages
- edit_work_packages -> manage_file_links
2022-07-13 12:32:42 +02:00
Frank Bergmann
c84980b257
Improve flow and guidance for setting up a file storage
2022-05-31 14:09:04 +02:00