75 Commits

Author SHA1 Message Date
Dombi Attila a57de7a6da Correct spec name typos, filter out non spec files from CI spec runs
Update the spec running globs to include specs in the root spec folder.
2026-05-05 22:40:15 +03:00
Henriette Darge 0f4f0d11ce Adapt tests to new inplaceEditFields 2026-03-13 14:19:50 +01:00
Ivan Kuchin b2e226cd6a action and permission for dialog to show value'n'comment 2026-02-25 16:00:31 +01:00
Dombi Attila 7f13e4a3b6 [#66115] Switch from section based editing to one modal per attribute
https://community.openproject.org/work_packages/66115
2025-10-15 22:38:09 +03:00
Alexander Brandon Coles b4d14c7f30 Make custom field section routes "resource"-ful
Creates a separate `ProjectCustomFieldSectionsController`, reorganizing
routes and permissions appropriately.
2025-09-03 21:49:43 +01:00
Alexander Brandon Coles fab363a0b3 Refactor (DRY up) Overviews module routes 2025-09-03 21:12:19 +01:00
Alexander Brandon Coles 2a30b50e6e [#63594] Primerize Project copy form
Updates the form visuals based on new mockups: the Project copy form now
only includes required (built-in and custom) fields, along with the
"Subproject of" field.

In detail:

* Introduces `Projects::CopyFormComponent`.
* Adds `Projects::CopyForm` with basic specs.
* Adds `ProjectsController#copy_form` action, permissions and route
  mappings.
* Updates copy project feature specs to reflect form changes.
2025-07-01 12:30:02 +01:00
Ivan Kuchin 90c2f911b4 life_cycles_sidebar => life_cycle_sidebar 2025-06-18 18:27:14 +02:00
Ivan Kuchin f203f7dbd3 rename permission specs 2025-06-18 18:27:12 +02:00
Alexander Brandon Coles 86924515e7 Add add_subprojects permissions spec 2025-06-11 16:18:00 +01:00
Alexander Brandon Coles 5c62759d06 Add add_project permissions spec 2025-06-11 16:17:59 +01:00
Jan Sandbrink 03c8db36bf Merge pull request #18806 from opf/frozen-specs
Freeze string literals in specs
2025-05-07 07:54:10 +02:00
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
Alexander Brandon Coles 196170273d Add edit_project permission spec 2025-05-02 00:43:47 +01:00
Bruno Pagno 182ed4f53f rename note -> comment files 2025-04-24 13:12:32 +02:00
Bruno Pagno c2886046cd update comment permission names 2025-04-24 13:12:32 +02:00
Dombi Attila fa3d9a1039 [#61610] Date picker to edit phases and phase gates of a project lifecyle
https://community.openproject.org/work_packages/61610
2025-04-15 18:24:01 +03:00
ulferts fe08690e34 rename stages and gates in seeder - not adding gates to phases yet 2025-04-01 16:39:38 +03:00
Ivan Kuchin 80922469a9 fix and simplify some requires in specs 2025-03-18 18:32:16 +01:00
Dombi Attila 83064166e7 Create form preview to interactively calculate duration of selected dates and display error messages on the ProjectLifeCycle dialog. 2024-12-17 15:56:20 +02:00
Dombi Attila bfe6a7fef7 Add edit permission specs 2024-12-17 15:54:14 +02:00
Jonas Jabari db65e97037 disabling some rubocop checks as the permission specs seem not to follow them in general 2024-09-04 12:32:07 +02:00
Jonas Jabari 9f121c8df4 added and refactore permission specs 2024-08-28 12:59:12 +02:00
Oliver Günther 12ee9e6b83 Merge remote-tracking branch 'origin/idea/56781-remove-years-from-copyrights' into dev 2024-08-06 10:17:59 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Dombi Attila 07200c5621 Remove access to public projects attributes and rely on the view_project_attributes only. 2024-07-29 16:47:53 +03:00
Dombi Attila af7fc672c1 Update overview page permission specs.
Since :view_project_attributes is checked inside the method, this spec
needs to test the view_project permission only.
2024-07-29 16:47:49 +03:00
Dombi Attila c72bd66634 [#50844] New permissions for project attributes on project level
https://community.openproject.org/work_packages/50844
2024-07-29 16:47:20 +03:00
Ivan Kuchin 6678cab48d auto correct quotes 2024-03-28 18:22:34 +01:00
jjabari-op b4590b4f64 Merge branch 'dev' into epic/49688-custom-set-of-project-attributes-grouped-in-sections 2024-03-21 05:21:28 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Jonas Jabari 83afa78ce1 fixing unit tests, mark last failing one as pending 2024-03-04 20:44:55 +07:00
Jonas Jabari 56af7b687c added basic permission spec for project custom field mapping UI 2024-02-06 11:33:20 +07:00
Jonas Jabari d568b5c783 refactoring and name fixes 2024-02-06 11:04:17 +07:00
Jonas Jabari 0648e5d1b7 add permission checks for overview page requests and added related specs 2024-02-05 15:10:28 +07: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
Aaron Contreras 29d76b4cc4 Add unit test to ensure every permission has an english translation
* Uses `@mapped_permissions` as the source of permissions since
  `.permissions` only includes permissions that are currently enabled
  and we don't want to leave any out.

* Raises a helpful error message for the developer running the spec.
2023-09-06 08:09:52 -05:00
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +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 2adce94853 Implement copy form in formly (#9218)
* Implement copy form in formly

* Add meta property handling to dynamic form

* Remove copy projects controller, merge into projects

* Fix copying of container attachments

* Fix project copy path

* Fix remainder of copy spec
2021-05-04 17:10:57 +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
ulferts 451d390e6a adapt specs 2020-09-29 22:00:06 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther c5994d3b9b Rename Boards to Forums 2019-03-13 16:24:15 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Oliver Günther 688385428c Avoid multiple requires of spec_helper
https://github.com/rspec/rspec-core/issues/1076
2016-10-31 20:38:35 +01:00