Commit Graph

1141 Commits

Author SHA1 Message Date
Norman Schmidt 48d85e0ee7
TSK-1946: update to Spring Boot 2.7.8 (#1999)
* TSK-1946: H2 Update

* TSK-1946: add new run configurations

* TSK-1946: update to Spring Boot 2.7.3

Updated Spring Security Configs to new component-based configuration.
See https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter

Co-authored-by: Marcel Bagemihl <marcel.bagemihl@novatec-gmbh.de>

* TSK-1946: wildfly now only starting postgres db

* TSK-1946: drop sup 4 sys prop db.type. We only execute PSQL

* TSK-1946: create new module 'taskana-rest-spring-test-lib' to simplify the Spring Security Configuration Setup for Spring Tests

* TSK-1946: H2 Update

* TSK-1946: add new run configurations

* TSK-1946: update to Spring Boot 2.7.3

Updated Spring Security Configs to new component-based configuration.
See https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter

Co-authored-by: Marcel Bagemihl <marcel.bagemihl@novatec-gmbh.de>

* TSK-1946: wildfly now only starting postgres db

* TSK-1946: drop sup 4 sys prop db.type. We only execute PSQL

* TSK-1946: create new module 'taskana-rest-spring-test-lib' to simplify the Spring Security Configuration Setup for Spring Tests

* TSK-1946: update to Spring Boot 2.7.8

---------

Co-authored-by: Yakup Ensar Evli <54323073+ensarevlideveloper@users.noreply.github.com>
Co-authored-by: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com>
Co-authored-by: Marcel Bagemihl <marcel.bagemihl@novatec-gmbh.de>
Co-authored-by: arolfes <arolfes@users.noreply.github.com>
2023-01-30 12:33:41 +01:00
Mustapha Zorgati 7dcbbf3cd6 Updated poms to version 5.9.1-SNAPSHOT 2023-01-11 06:58:54 +00:00
Norman Schmidt e72ef4ac4e TSK-1969: added getUsers method to UserService 2023-01-11 07:05:24 +01:00
Mustapha Zorgati deba2009e7 TSK-1970: removed deprecated methods from WorkbasketQuery 2022-10-21 10:46:53 +02:00
Mustapha Zorgati 24af59db2d Updated poms to version 5.8.1-SNAPSHOT 2022-10-20 20:56:19 +00:00
Mustapha Zorgati 45417f887d TSK-1957: exposed domain attribute via REST 2022-10-20 22:38:54 +02:00
Norman Schmidt dc9e2e1d5f TSK-1967: make owner of Task updatable when Task is 'READY_FOR_REVIEW' 2022-10-20 21:49:16 +02:00
norman-schmidt b9b49f47a1
TSK-1965: create endpoints for all state transitions (#2024)
* TSK-1965: created endpoint for force claiming a task

* TSK-1965: created endpoint for force completing a task

* TSK-1965: restructured TaskController to match TaskService structure

* TSK-1965: structured TaskControllerIntTest

* TSK-1965: created endpoint for terminating a task

* TSK-1965: created endpoint for setting a task read
2022-10-20 14:20:24 +02:00
norman-schmidt e40623ce0f
TSK-1957: groups are included in the domain aggregation (#2021)
* TSK-1957: groups are included in the domain aggregation

- added schema GROUP_INFO
- added group related methods to UserMapper / UserMapperSqlProvider
- User API extended with groups
- UserInfoRefreshJob includes groups
2022-10-20 14:16:47 +02:00
Mustapha Zorgati 9a188f015f TSK-1919: fixed query offeset tests by comparing entire object 2022-10-17 11:27:04 +02:00
Mustapha Zorgati 63d5477e06 TSK-1919: re-enabled architecture tests and fixed freeze mechanism
cause of the issue(s): misconfiguration of the slices feature

Co-authored-by: Oliver Koch <oliver.koch@novatec-gmbh.de>
2022-10-17 11:27:04 +02:00
Norman Schmidt 90a64a9b88 TSK-1957: extend getUser() method with domain information
- extended WorkbasketQuery methods 'accessIdsHavePermission' & 'callerHasPermission' to accept multiple permissions
- added domain attribute to User API
- extended UserService to aggregate domain information

Co-authored-by: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com>
2022-10-11 17:43:31 +02:00
Norman Schmidt 5a14c00fa1 TSK-1957: add taskana property 'minimalPermissionsToAssignDomains' 2022-10-11 17:43:31 +02:00
Norman Schmidt d6da6f8124 TSK-1957: migrate UserServiceAccTest to new test-api 2022-10-11 17:43:31 +02:00
Mustapha Zorgati 50915ef4e1 TSK-1964: added UserBuilder to test-api 2022-10-11 13:08:44 +02:00
Mustapha Zorgati 2dbdd874d5 TSK-1964: refactored builders to reduce code duplication 2022-10-11 13:08:44 +02:00
Norman Schmidt 3c71c08684 TSK-1964: made UserService injectable and adapted/fixed test 2022-10-11 13:08:44 +02:00
norman-schmidt 6c6f1b56c4
TSK-1961: Remove AbstractWorkbasketAccessItemQuery and AbstractWorkbasketAccessItemQueryImpl (#2014) 2022-09-28 12:57:44 +02:00
Mustapha Zorgati ac139ecacc Updated poms to version 5.7.1-SNAPSHOT 2022-09-27 05:36:47 +00:00
ryzheboka d77c4846ed TSK-1925: clean up claimTaskAccTest 2022-09-20 09:05:27 +02:00
ryzheboka a6567b6eda TSK-1958: fix status changes for Task transfer 2022-09-19 13:35:48 +02:00
ryzheboka e1d205d4ef TSK-1947: processing of LDAP-data after refresh 2022-09-14 17:53:35 +02:00
ryzheboka 316c173663 TSK-1955: Add javadoc for two SPIs 2022-09-13 13:07:50 +02:00
ryzheboka 084dc2b99b TSK-1954: Clean up codesmells 2022-09-07 16:26:23 +02:00
Mustapha Zorgati c145e66e30 Updated poms to version 5.6.1-SNAPSHOT 2022-09-06 16:01:03 +00:00
ryzheboka 0060368905 TSK-1952: adjust parameter names in queries + some clean up 2022-09-06 17:43:43 +02:00
ryzheboka dc5efe527b TSK-1951: Extend WorkbasketPriorityReport for customInt 2022-09-06 12:00:06 +02:00
Yakup Ensar Evli e074a90222 TSK-1816: Update QueryClassificationAccTest to use Test-API
Used new builder to create classifications.
Instead of working with a clean database for each test, we create a scenario. In that scenario we use ClassificationCustomField#CUSTOM_1 to filter out all the other created Classifications. Therefore, all tests regarding ClassificationCustomFields are executed first.
The alternative is to create a "big" scenario as a test setup. But that would result to the same issues we have with the sql file.
Corrected assertion for should_FindClassifications_When_QueryingForListValueField():167. The databases (H2, POSTGRES) have different interpretations for boolean values.
getCustomAttribute got deprecated, now getCustomField is being used.
Move test to taskana-core-test according to new project structure.
Separated QueryClassificationsAccTest to filtering and sorting class.
ClassificationQueryAccTest resolved to QueryClassifications classes.
TSK-1816: X
2022-08-24 14:29:05 +03:00
ryzheboka 657e8ea81b TSK-1840: refactor DeleteClassificationAccTest to use test-api 2022-08-24 12:58:39 +02:00
ryzheboka 3575b8aa17 TSK-1926: Remove duplicate from TaskServiceImpl 2022-08-24 12:32:26 +02:00
Mustapha Zorgati acb53a5a61 Updated poms to version 5.5.1-SNAPSHOT 2022-08-20 16:36:41 +00:00
Mustapha Zorgati 62844c7b9f TSK-1944: expanded Javadoc for review SPIs to include force methods 2022-08-20 18:16:23 +02:00
Mustapha Zorgati d8ffdb1824 TSK-1944: Implemented BeforeRequestChanges SPI 2022-08-20 18:16:23 +02:00
Mustapha Zorgati 151d23d98d TSK-1945: minor cleanup of TaskServiceImpl
blub2
2022-08-20 17:46:27 +02:00
Mustapha Zorgati 1188f6396c TSK-1945: implemented BeforeRequestReview SPI
blub
2022-08-20 17:46:27 +02:00
ryzheboka 897b469aeb TSK-1829: refactor testSetPlannedPropertyOnAllTasks 2022-08-18 10:58:41 +02:00
ryzheboka 709736ddc9 TSK-1843: refactor GetTaskCommentAccTest to use test-api 2022-08-18 10:43:09 +02:00
Yakup Ensar Evli 33a8852995 TSK-1864: Reorder methods in TaskService
New ordering follows CRUD principles for better readability.
2022-08-18 00:02:18 +03:00
ryzheboka 387a95c4ce TSK-1844: Refactor CreateTaskCommentAccTest to use test-api 2022-08-17 10:08:45 +02:00
Mustapha Zorgati 3c2688daef Updated poms to version 5.4.1-SNAPSHOT 2022-08-11 15:54:34 +00:00
Mustapha Zorgati 6997d64083 TSK-1943: added REST endpoint for force requesting changes on a Task 2022-08-11 17:08:10 +02:00
Mustapha Zorgati cf690bf6b5 TSK-1941: implemented ReviewRequired SPI 2022-08-11 12:36:39 +02:00
Mustapha Zorgati 830723800e TSK-1941: test-api injects enclosing class instance for non-static member classes
this allows SPIs to use instance fields from their enclosing class
2022-08-11 12:36:39 +02:00
ryzheboka 340236c4a2 TSK-1938: Add RequestChangesProvider 2022-08-11 12:17:08 +02:00
Mustapha Zorgati 1f9d20f76f TSK-1937: implemented AfterRequestReviewProvider
Co-authored-by: ryzheboka <25465835+ryzheboka@users.noreply.github.com>
2022-08-10 12:18:14 +02:00
Mustapha Zorgati b1166939cd TSK-1937: cleaned up usage of WithServiceProvider annotation 2022-08-10 12:18:14 +02:00
Mustapha Zorgati 82400aecb1 TSK-1937: test-api now initializes service providers properly
when multiple WithServiceProvider annotations are defined
2022-08-10 12:18:14 +02:00
Mustapha Zorgati f7b668835c TSK-1937: test-api now supports instantiation off all class types
except for anonymous classes since they're not assignable to the WithAccessId annotation
2022-08-10 12:18:14 +02:00
Mustapha Zorgati 63315eaf22 TSK-1937: moved test-api tests to proper package
Co-authored-by: ryzheboka <25465835+ryzheboka@users.noreply.github.com>
2022-08-10 12:18:14 +02:00
Oliver Koch 2bc1c7ca01 TSK-1924: fix guideline violations, so ArchUnitTests are green 2022-08-09 14:43:28 +02:00