b97eabf0d2
Get workflowComponent directly from registry
2024-09-09 10:46:35 +02:00
2e69d2df90
Adjust test to work with actual workflow + minor fix of handler logic
2024-09-09 10:46:33 +02:00
cb446edd18
Suffix message class with 'Message' and add check on workflow to assert no transitions were applied since message placed in queue
2024-09-09 10:40:42 +02:00
5d84e997c1
Php cs fixes
2024-09-09 10:40:42 +02:00
35199b6993
Create test for CancelStaleWorkflowHandler: wip state
2024-09-09 10:40:42 +02:00
dab68fb409
Add CancelStaleWorkflowCronJobTest
2024-09-09 10:40:41 +02:00
6001bb6447
Add logger messages for possible debugging purposes
2024-09-09 10:40:41 +02:00
29fec50515
Add cronjob and repository method to find and cancel stale workflows every other day
2024-09-09 10:40:41 +02:00
34edb02cd0
Create message and handler for canceling stale workflows
2024-09-09 10:40:41 +02:00
860ae5cedf
Create CancelStaleWorkflow message and handler
2024-09-09 10:40:40 +02:00
bf056046ab
Fix cs
2024-09-06 14:40:25 +02:00
4d73f9b81a
Rename Convert to ConvertController for clarity
...
Renamed Convert class and relevant references to ConvertController to improve clarity and maintain consistency. Updated corresponding test files and route configurations to reflect the new name.
2024-09-06 14:07:51 +02:00
dd159f4379
Merge branch '297-workflow-en-attente' into 'signature-app-master'
...
Allow user to put workflow on hold
See merge request Chill-Projet/chill-bundles!718
2024-09-06 12:02:40 +00:00
49ad25b4c8
Refactor WorkflowOnHoldController and improve tests
...
Refactored WorkflowOnHoldController to remove dependencies and improve redirect handling. Updated test cases to use PHPUnit instead of KernelTestCase and mock proper dependencies. Added relationship handling in EntityWorkflowStep to manage EntityWorkflowStepHold instances accurately.
2024-09-06 14:02:11 +02:00
ad94310981
Refactor workflow hold functionality to avoid relying on database to perform some checks on "user holds entityworkflow"
...
Simplify the logic in handling workflow on hold status by moving related checks and operations to `EntityWorkflowStep` and `EntityWorkflow` entities. This includes implementing new methods to check if a step or workflow is held by a specific user and refactoring the controller actions to use these methods.
2024-09-05 20:46:29 +02:00
e8f09b507f
Fix cs after php-cs-fixer upgrade, fix phpstan and rector errors
2024-09-05 18:00:37 +02:00
e29e1db6ed
Take into account 'destUserByAccessKey' in the list of workflows associated to a user
...
Refactor the query to include checks for user membership via both 'destUser' and 'destUserByAccessKey'. This ensures that workflows correctly account for user access by multiple criteria.
2024-09-05 17:38:18 +02:00
8c4f342ca1
Correct instantiation of controller within test
2024-09-05 17:19:28 +02:00
745a29f742
Adjust logic for removing the hold on a workflow only by user who owns the hold and when a transition is applied on the workflow
2024-09-05 17:19:27 +02:00
41ffc470a0
Adjust test to check creation of onHold if user is allowed to apply a transition
2024-09-05 17:19:27 +02:00
46b31ae1ea
Adjust logic to only allow on hold if user is allowed to apply a transition
2024-09-05 17:19:26 +02:00
8c5e94e295
Work on test for workflowOnHold controller
2024-09-05 17:19:25 +02:00
9c8a84cdbd
Add test for WorkflowOnHoldControllerTest
2024-09-05 17:19:24 +02:00
a82b99aecc
Add template-extends on EntityWorkflowStepHoldRepository
2024-09-05 17:19:23 +02:00
deb4bda16e
Add unique constraint as attribute on EntityWorkflowStepHold class
2024-09-05 17:19:23 +02:00
c1e5f4a57e
Move onHold methods to a separate WorkflowOnHold controller
2024-09-05 17:19:20 +02:00
6fc5a10dc4
Add unique constraint to migration
2024-09-05 17:18:43 +02:00
18abc84e68
Rector fixes
2024-09-05 17:18:43 +02:00
e85c31826f
php cs fixes
2024-09-05 17:18:42 +02:00
d119ba49f7
Add on_hold label to vue components
2024-09-05 17:18:42 +02:00
c21de777fd
Place on_hold label next to breadcrumb in twig template
2024-09-05 17:18:42 +02:00
15eaf648df
Add label to workflow listing and history to indicate whether it's on hold
2024-09-05 17:18:42 +02:00
42471269db
Implement logic to put workflow on hold and resume it
2024-09-05 17:16:18 +02:00
9475a708c3
Add EntityWorkflowStepHold entity to allow workflow to be put on hold by user
...
Entity created, migration, and repository.
2024-09-05 17:13:20 +02:00
bf1af1aaad
Merge branch '301-has-signed-statement' into 'signature-app-master'
...
Adjust behavior when signature in signed state
See merge request Chill-Projet/chill-bundles!717
2024-09-05 14:50:05 +00:00
8ea87053f0
fix some tests
2024-09-05 16:47:45 +02:00
nobohan
479a02bbc7
Signature: add and process returnPath in the signature app
2024-09-05 14:11:57 +02:00
nobohan
0d62d8d1c6
Signature - improve UI signature app
2024-09-05 11:52:11 +02:00
nobohan
5b90632231
Signature: add a signature zone manually
2024-09-05 11:52:08 +02:00
3c9ee41b3b
fix some tests
2024-09-04 18:30:18 +02:00
d0031e82e8
Add hover effect and slim class to dev assets and apply in signature list
...
Introduced a new SCSS file to handle hover effects on rows and added the ability to remove bottom margins with a "slim" class. Updated various twig templates to utilize these new styles for better visual feedback and alignment.
2024-09-04 17:55:01 +02:00
20f2bc6c35
Enhance signature display with detailed person information
...
Updated the signature view template to include person details using the '_insert_vue_onthefly.html.twig' template. This change adds more contextual information about the signer, such as their name and status, improving the user experience.
2024-09-04 17:26:46 +02:00
71d3aa3969
Refactor signature rendering logic
...
Reorganized the signature rendering loop for better readability. Moved the row alignment inside the loop and added text alignment for signed statements. Simplified the conditional checks within the loop to enhance code maintainability.
2024-09-04 17:24:11 +02:00
ce781a5b58
Translate datetime object with icu: split date and time
...
Translate datetime within icu format
2024-09-04 17:14:43 +02:00
2dd275a074
Merge branch '296-signature-menu-tab' into 'signature-app-master'
...
Add person menu entry for signature list
See merge request Chill-Projet/chill-bundles!719
2024-09-04 15:13:14 +00:00
5f5d4b8f06
Add person menu entry for signature list
2024-09-04 15:13:14 +00:00
cc8214d52c
Add flash message in case signature was already applied
2024-09-04 17:08:38 +02:00
0c797c2997
Redirect to workflow show page if document already signed
...
Verify the state of the signature. If isSigned is true, redirection to
workflow show page.
2024-09-04 17:08:37 +02:00
ee6edba206
Create isSigned method in EntityWorkflowStepSignature.php
...
Refactorization and ease of use in template and workflow controller
2024-09-04 17:08:35 +02:00
3e6d764b9b
Replace sign button with signed statement if person/user has signed
2024-09-04 17:06:45 +02:00