Ivan Kuchin
b648341030
[ #74768 ] Remove calculated_value_project_attribute feature flag
...
https://community.openproject.org/wp/74768
2026-05-19 17:42:42 +02:00
Alexander Brandon Coles
6455afca7c
Merge branch 'dev' into merge-release/17.0-20260108132255
2026-01-08 10:26:08 -03:00
ulferts
ed2b69bb29
adding a project cf no longer adds it to the default project list
2026-01-07 15:10:39 +01:00
ulferts
c4d7bf35e6
small cleanup
2026-01-07 15:10:39 +01:00
Eric Schubert
6b57d53e17
Merge branch 'dev' into implementation/68225-represent-scores-in-tree-view-components-and-project-attribute-sections
2025-12-05 14:45:46 +01:00
Eric Schubert
d1e65c30df
[ #68225 ] reworked format for hierarchy items
...
- introduce default formatter instance
- added missing specs for persistence service methods
2025-12-05 12:58:39 +01:00
Eric Schubert
0cc0cb8f2d
[ #68225 ] use item formatter to display items
...
- https://community.openproject.org/work_packages/68225
- use item formatter for tree views, item view components and standard to_s
- add deprecation warning for stringifying methods without new
formatting
2025-12-02 17:13:05 +01:00
Eric Schubert
1443c26c2c
[ #64827 ] wrap deletion of items in transaction
2025-12-01 16:49:32 +01:00
Eric Schubert
31c7babaa2
[ #64827 ] remove assigned values of hierarchy items
...
- https://community.openproject.org/work_packages/64827
- if a hierarchy branch is deleted, remove all custom values of the item
and its descendants
2025-12-01 13:23:59 +01:00
Eric Schubert
a584aa1f2c
[ #69358 ] fix unit test expectations
2025-11-24 16:56:41 +01:00
Klaus Zanders
a4148c9383
Implement role manageemnt in LinkWithRoleService
2025-11-20 12:26:32 +01:00
Klaus Zanders
d35d963606
Add test stub for the LinkWithRoleService
2025-11-20 10:21:53 +01:00
Dombi Attila
47af87af4b
Move the calculated custom field calculations to a background job.
2025-11-06 09:09:47 +02:00
Eric Schubert
d9a8aef713
[ #68700 ] fix unit tests
...
- replaced images
- added enterprise addon for test setups
2025-11-03 17:21:32 +01:00
Eric Schubert
38d5222c5b
[ #68700 ] replace score with weight
...
- add migration for db column name
- update AR relations in code
- update display texts and locale keys
- update test, method, class, variable names
- fix formatting mistake in item base controller
2025-11-03 13:58:05 +01:00
Eric Schubert
9d6ba3934e
Merge branch 'release/16.6' into implementation/68700-rename-to-weighted-item-list
2025-11-03 13:33:04 +01:00
Yauheni Suhakou
6e739a805c
Rename files "scored" to "weighted"
2025-10-31 14:37:06 +01:00
dombesz
0b75be6233
Merge pull request #20821 from opf/bug/68553-creating-a-calculated-value-project-attribute-marked-required-doesn-t-calculate-values
...
Bug/68553 creating a calculated value project attribute marked required doesn't calculate values
2025-10-30 21:07:48 +01:00
dombesz
4df92b20c2
Merge pull request #20773 from opf/bug/68589-enabling-calculated-value-by-adding-project-to-through-custom-field-admin-doesn-t-trigger-calculation
...
Bug/68589 enabling calculated value by adding project to through custom field admin doesn t trigger calculation
2025-10-30 20:52:55 +01:00
Yauheni Suhakou
0de0713a53
Big rename
...
Renames `scored_list` to `weighted_item_list`
2025-10-30 15:36:55 +01:00
Eric Schubert
deaec0c8a5
[ #67623 ] remove feature flag for weighted item list
...
- https://community.openproject.org/wp/67623
2025-10-30 15:07:02 +01:00
Ivan Kuchin
eb14192c66
calculate values when creating custom field with is_required mark
2025-10-28 20:25:37 +01:00
Ivan Kuchin
5f3fc76d93
use contract_class variable in custom field update service spec
2025-10-28 20:21:32 +01:00
Ivan Kuchin
e1934bdc94
fix broken specs
2025-10-28 16:34:44 +01:00
Ivan Kuchin
d73d8f2ed7
recalculate values when changing is_required to true
2025-10-23 17:55:57 +02:00
Ivan Kuchin
f373a136d2
using CustomFieldFormulaReferencing in update service spec and check that formula was updated
2025-10-23 17:55:56 +02:00
Ivan Kuchin
498c818345
recalculate customized (projects) only if selected item was updated or deleted
2025-10-21 17:28:36 +02:00
Tobias Dillmann
322794fca8
[ #64524 ] Spec: Recalculate on hierarchy item deletion
2025-10-17 19:32:58 +02:00
Tobias Dillmann
ca6d822c44
[ #64524 ] Spec: Recalculate on score update
2025-10-17 19:32:58 +02:00
Jan Sandbrink
8981507982
Merge pull request #20389 from opf/select-scored-project-cf
...
Sort hierarchy items deterministically
2025-09-23 10:31:37 +02:00
Jan Sandbrink
c749ca1393
Make result order returned by get_descendants deterministic
...
Previously the results were not returned in any specific order,
making the result not immediately usable in flat lists of the hierarchy.
By preordering the result, it's not necessary anymore to apply later
alphabetical ordering or similar. This is preferable, because alphabetical
ordering was only a workaround that didn't take specific ordering established
by the user into account.
2025-09-23 08:57:12 +02:00
Ivan Kuchin
a4b68df477
exclude field_format in CustomFields::UpdateService params
2025-09-17 17:53:31 +02:00
Eric Schubert
c6ad2c3c8f
[ #66412 ] fixed test setup
...
- use new interface of persistence service
- use correct spec helper
2025-08-26 13:18:47 +02:00
Ivan Kuchin
19200e5d1f
Merge pull request #19816 from opf/implementation/64352-recalculate-a-value-when-the-formula-changes
...
Implementation/64352 recalculate a value when the formula changes
2025-08-21 18:03:10 +02:00
Eric Schubert
be7b7f35fa
[ #66410 ] add common denominator for hierarchical lists
...
- use better interpolated failure message in contract
2025-08-20 15:53:05 +02:00
Eric Schubert
e59bf40f0b
[ #66410 ] fixed unit test expectations
2025-08-20 13:55:40 +02:00
Ivan Kuchin
4ab159db18
recalculate values on formula change
2025-08-20 13:51:58 +02:00
ulferts
d6caec6c55
only display hierarchy option in dropdown if ee permits
2025-06-23 12:00:35 +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
Kabiru Mwenja
c1636240bf
Merge pull request #16765 from opf/code-maintenance/57902-dry-up-shared-logic-for-multi-project-activation
...
[Op#57902]: Refactor shared logic for Multi-project activation
2025-01-22 14:04:19 +03:00
Marcello Rocha
1d34608731
Introduces the position_cache
2025-01-06 16:37:52 +01:00
Kabiru Mwenja
a557635bc5
Merge branch 'dev' into code-maintenance/57902-dry-up-shared-logic-for-multi-project-activation
2025-01-06 12:19:24 +03:00
Bruno Pagno
1963d24acb
fix for bulk editting wps with hierarchy items
2024-11-28 11:14:35 +01:00
Bruno Pagno
130f0c4f8b
Implement hierarchy filter with descendants
2024-11-26 15:38:59 +01:00
Andreas Pfohl
2f06714bb3
[58857] Added specs for hierarchy items API and representer
...
- Added request specs for /api/v3/custom_field/{id}/items
- Added request specs for /api/v3/custom_field_items/{id}
- Added request specs for /api/v3/custom_fiels_items/{id}/branch
- Added representer specs for HierarchyItemRepresenter
- Make shift repair of Dry::Validation::Contract english localization
2024-11-13 11:09:51 +01:00
Eric Schubert
e9fe0f4770
Merge branch 'dev' into implementation/58520-api-add-endpoint-for-fetching-the-tree
2024-11-05 14:54:06 +01:00
Eric Schubert
a8c0ec5b43
[ #58520 ] Implement fetching tree structure
...
- implement hashed subtree retrieval in persistence layer
- implement flattening of hashed subtree in applicaiton layer
- added api spec for GET /custom_field_items/:id route
- added self link, parent and children to http response
- added api for single hierarchy item route
- write unit tests for hashed_subtree in HierarchicalItemService
- add parameter validation to api endpoint
2024-11-05 12:58:07 +01:00
Marcello Rocha
4fe10f03b4
Updates the contract to deal with missing a short key
2024-11-05 10:39:18 +01:00
Bruno Pagno
509e6da4d2
handle new_sort_order parameter more elegantly
2024-11-01 14:09:07 +01:00
Bruno Pagno
5a4abf702b
reorder up and down actions
2024-11-01 14:09:02 +01:00