Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOUR-18078-FOUR-18130: [FALL] Cases Details & Enhancing Performance #7455

Merged
merged 235 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
c14611b
FOUR-18617: The Header of the columns will change 'Capitalized Case'
fagubla Aug 29, 2024
7b78095
Merge pull request #7302 from ProcessMaker/feature/FOUR-18617
pmPaulis Aug 31, 2024
91e87f0
feat: add cases_started migration
devmiguelangel Sep 9, 2024
794c160
feat: add cases started model
devmiguelangel Sep 9, 2024
b42c48c
feature/FOUR-18977
luNunezProcessmaker Sep 9, 2024
02949e3
feature/FOUR-18623
luNunezProcessmaker Sep 10, 2024
4676c14
Merge pull request #7343 from ProcessMaker/feature/FOUR-18977
pmPaulis Sep 10, 2024
40dc3cc
feature/FOUR-18623
luNunezProcessmaker Sep 10, 2024
41fb949
Merge pull request #7346 from ProcessMaker/feature/FOUR-18623
pmPaulis Sep 10, 2024
0b21f85
Merge remote-tracking branch 'origin/next' into feature/FOUR-18130
pmPaulis Sep 11, 2024
dc1adfe
FOUR-19004: First commit for tailwind css in platform
hjonathan Sep 11, 2024
f8941cd
Merge pull request #7353 from ProcessMaker/feature/FOUR-19004
pmPaulis Sep 11, 2024
55d771c
feat: add new get_all_cases endpoint
devmiguelangel Sep 11, 2024
a1ca7a7
Merge branch 'feature/FOUR-18078' into FOUR-18603
devmiguelangel Sep 11, 2024
bc94f64
FOUR-19004: Create a NEW VIEW for cases Part Counters
hjonathan Sep 12, 2024
2fc73d7
fix cr observations
devmiguelangel Sep 12, 2024
1f0759a
FOUR-18634: New view "cases" and Implement new UI tabs
fagubla Sep 12, 2024
2f43d89
FOUR-19004: Create a NEW VIEW for cases Part Counters
hjonathan Sep 12, 2024
caa509c
Merge pull request #7357 from ProcessMaker/FOUR-18603
caleeli Sep 12, 2024
90f4a95
FOUR-19004: Create a NEW VIEW for cases Part Counters
hjonathan Sep 12, 2024
90d1ab5
FOUR-19004: Create a NEW VIEW for cases Part Counters
hjonathan Sep 12, 2024
d1313a2
feat: add cases_participated migration
devmiguelangel Sep 12, 2024
9d58af0
feat: add cases_participated model, factory
devmiguelangel Sep 12, 2024
7bdb135
remove custom size
fagubla Sep 12, 2024
57554df
update class
fagubla Sep 12, 2024
763fa13
Merge pull request #7359 from ProcessMaker/feature/FOUR-19004-A
pmPaulis Sep 12, 2024
5ef9e16
Merge pull request #7362 from ProcessMaker/feature/FOUR-18634
pmPaulis Sep 12, 2024
1412321
Merge remote-tracking branch 'origin/feature/FOUR-18130' into feature…
fagubla Sep 12, 2024
1b66edf
feat: add get_in_progress, get_completed endpoints
devmiguelangel Sep 13, 2024
c2ee011
feat: add case repository
devmiguelangel Sep 13, 2024
5e23427
feat: add validation exception
devmiguelangel Sep 13, 2024
63de52c
Merge branch 'next' into feature/FOUR-18078
devmiguelangel Sep 16, 2024
eecbdf7
Merge branch 'feature/FOUR-18078' into FOUR-18604
devmiguelangel Sep 16, 2024
ac183b5
FOUR-19000: Create a NEW VIEW for cases Part List
hjonathan Sep 16, 2024
b6a1a7c
FOUR-18637:implement content "Tasks" tab
fagubla Sep 16, 2024
9b16023
Merge remote-tracking branch 'origin/next' into feature/FOUR-18130
pmPaulis Sep 16, 2024
63793d3
FOUR-19000: Create a NEW VIEW for cases Part List
hjonathan Sep 16, 2024
b38b177
FOUR-19000: Create a NEW VIEW for cases Part List
hjonathan Sep 16, 2024
343faed
CR
fagubla Sep 16, 2024
619a1e8
routes
fagubla Sep 17, 2024
4258536
Merge pull request #7373 from ProcessMaker/feature/FOUR-18637
pmPaulis Sep 17, 2024
040844f
Merge remote-tracking branch 'origin/feature/FOUR-18130' into feature…
fagubla Sep 17, 2024
0936002
tests: case controller ep tests
devmiguelangel Sep 16, 2024
20f8998
Merge pull request #7372 from ProcessMaker/FOUR-18604
caleeli Sep 17, 2024
2c67f4d
FOUR-19000: Create a NEW VIEW for cases Part List
hjonathan Sep 17, 2024
22483ec
FOUR-19000: Create a NEW VIEW for cases Part List
hjonathan Sep 17, 2024
9779982
Merge pull request #7374 from ProcessMaker/feature/FOUR-19000
pmPaulis Sep 17, 2024
20874b7
FOUR-19226
pmPaulis Sep 18, 2024
a6b418e
redirect to requests
pmPaulis Sep 18, 2024
b78b352
update
fagubla Sep 19, 2024
8927c38
feature/FOUR-18976
luNunezProcessmaker Sep 19, 2024
372fa26
observations
pmPaulis Sep 19, 2024
d593669
feature/FOUR-18976
luNunezProcessmaker Sep 19, 2024
88dea32
Merge pull request #7377 from ProcessMaker/feature/FOUR-18135
pmPaulis Sep 19, 2024
04ace5a
Merge branch 'next' into feature/FOUR-18078
devmiguelangel Sep 19, 2024
6eb2065
Update CasesMain.vue
luNunezProcessmaker Sep 19, 2024
1dfb22d
FOUR-19003: Create a NEW VIEW for cases Part Filters
hjonathan Sep 19, 2024
4e7ee52
feat: populate case started main flow
devmiguelangel Sep 19, 2024
59663a6
conflicts
pmPaulis Sep 19, 2024
024b963
Merge pull request #7389 from ProcessMaker/feature/FOUR-18976
pmPaulis Sep 19, 2024
f7dcb09
FOUR-19273
pmPaulis Sep 20, 2024
ac601ad
FOUR-19003: Create a NEW VIEW for cases Part Filters
hjonathan Sep 20, 2024
324c30e
FOUR-19003: Create a NEW VIEW for cases Part Filters
hjonathan Sep 20, 2024
8a1da88
Merge branch 'feature/FOUR-18130' of github.com:ProcessMaker/processm…
hjonathan Sep 20, 2024
9d063a7
FOUR-18970: Create the view for show the summary related to the case …
fagubla Sep 20, 2024
885e27e
FOUR-19003: Create a NEW VIEW for cases Part Filters
hjonathan Sep 20, 2024
374cb5b
FOUR-18636
pmPaulis Sep 20, 2024
30bfa83
Merge pull request #7395 from ProcessMaker/feature/FOUR-18970
pmPaulis Sep 20, 2024
e8d5672
Merge remote-tracking branch 'origin/next' into feature/FOUR-18130
pmPaulis Sep 20, 2024
395cad8
Merge remote-tracking branch 'origin/feature/FOUR-18130' into feature…
pmPaulis Sep 20, 2024
375def9
FOUR-19003: Update observations
hjonathan Sep 20, 2024
ea21797
Merge remote-tracking branch 'origin/feature/FOUR-18130' into feature…
pmPaulis Sep 20, 2024
82bc421
observations
pmPaulis Sep 20, 2024
8c47c45
feat: populate case participate main flow
devmiguelangel Sep 20, 2024
e61787b
Merge pull request #7392 from ProcessMaker/feature/FOUR-19003
pmPaulis Sep 20, 2024
859aa4d
Merge pull request #7385 from ProcessMaker/feature/FOUR-19226
pmPaulis Sep 20, 2024
709b6f9
Merge pull request #7399 from ProcessMaker/feature/FOUR-18636
pmPaulis Sep 20, 2024
e955c99
Merge pull request #7400 from ProcessMaker/FOUR-18599
caleeli Sep 20, 2024
4c928fb
Merge pull request #7393 from ProcessMaker/feature/FOUR-19273
pmPaulis Sep 23, 2024
45d47f5
FOUR-19237: Cases list Pagination
hjonathan Sep 23, 2024
5c62a1b
FOUR-19237: Cases list Pagination
hjonathan Sep 23, 2024
82c9408
FOUR-19237: Cases list Pagination
hjonathan Sep 23, 2024
23906d9
FOUR-19237: Cases list Pagination
hjonathan Sep 23, 2024
686f04b
FOUR-19237: Cases list Pagination
hjonathan Sep 23, 2024
88a0f4a
test: cases main flow
devmiguelangel Sep 24, 2024
d94b322
feature/FOUR-19347
luNunezProcessmaker Sep 24, 2024
33642d4
Merge branch 'feature/FOUR-18130' of github.com:ProcessMaker/processm…
hjonathan Sep 24, 2024
cc5e79a
FOUR-19237: Cases list Pagination
hjonathan Sep 24, 2024
acdaf57
Merge pull request #7405 from ProcessMaker/feature/FOUR-19347
pmPaulis Sep 24, 2024
7c6a129
Merge pull request #7403 from ProcessMaker/feature/FOUR-19237
pmPaulis Sep 24, 2024
38ae087
feature/FOUR-19316
luNunezProcessmaker Sep 24, 2024
655c76c
FOUR-18545: Use the current counter My Request (current API)
hjonathan Sep 24, 2024
ff01d6f
feature/FOUR-19091
luNunezProcessmaker Sep 24, 2024
ff1f007
Merge pull request #7409 from ProcessMaker/feature/FOUR-18545
pmPaulis Sep 24, 2024
078cade
Merge pull request #7410 from ProcessMaker/feature/FOUR-19091
pmPaulis Sep 24, 2024
fd23602
FOUR-19349
pmPaulis Sep 24, 2024
8b3ca55
Solving observations
pmPaulis Sep 24, 2024
67cc31d
Merge pull request #7411 from ProcessMaker/bugfix/FOUR-19349
pmPaulis Sep 25, 2024
1031a8f
fix: handle null case started
devmiguelangel Sep 25, 2024
9d559a5
Merge remote-tracking branch 'origin/feature/FOUR-18130' into feature…
pmPaulis Sep 25, 2024
cd1e2f2
FOUR-19319 Add links in the columns in Tasks tab
hjonathan Sep 25, 2024
387cf7d
fix: update cases migrations, fix CaseController test
devmiguelangel Sep 25, 2024
3c9baec
feature/FOUR-19007
luNunezProcessmaker Sep 25, 2024
47882f7
Merge pull request #7414 from ProcessMaker/feature/FOUR-19319
pmPaulis Sep 25, 2024
ef64c8f
fix: handle null case number
devmiguelangel Sep 25, 2024
52f3ac5
Merge pull request #7412 from ProcessMaker/FOUR-18600-B
caleeli Sep 25, 2024
2fbba85
feat: populate sub processes
devmiguelangel Sep 25, 2024
e746f29
feature/FOUR-19267
luNunezProcessmaker Sep 25, 2024
07f4774
Merge branch 'feature/FOUR-18130' of github.com:ProcessMaker/processm…
luNunezProcessmaker Sep 25, 2024
c1809ca
FOUR-19328: Enable the order desc/asc Tasks tab
hjonathan Sep 25, 2024
f67e191
FOUR-19377
pmPaulis Sep 25, 2024
1f9261d
Merge pull request #7407 from ProcessMaker/feature/FOUR-19316
pmPaulis Sep 25, 2024
590e63c
Merge pull request #7415 from ProcessMaker/feature/FOUR-19007
pmPaulis Sep 25, 2024
062a227
Merge pull request #7418 from ProcessMaker/feature/FOUR-19377
pmPaulis Sep 25, 2024
3ca2e30
FOUR-18135
pmPaulis Sep 26, 2024
eeec1e6
feat: ref common functions
devmiguelangel Sep 26, 2024
cab3c62
FOUR-19328: Enable the order desc/asc Tasks tab
hjonathan Sep 26, 2024
7f7dd76
FOUR-19328: Enable the order desc/asc Tasks tab
hjonathan Sep 26, 2024
d9927ff
feature/FOUR-19267
luNunezProcessmaker Sep 26, 2024
7c8d0fd
Merge branch 'feature/FOUR-18130' of github.com:ProcessMaker/processm…
luNunezProcessmaker Sep 26, 2024
e0ba7b1
FOUR-19328: Enable the order desc/asc Tasks tab
hjonathan Sep 26, 2024
3c93fd4
test: populate case sub processes
devmiguelangel Sep 26, 2024
ddfc31d
Improve the scopes
pmPaulis Sep 26, 2024
e59b9e7
Merge pull request #7416 from ProcessMaker/feature/FOUR-19328
pmPaulis Sep 26, 2024
143664c
test: fix CaseStartedSubProcessTest setup
devmiguelangel Sep 26, 2024
2f1bb24
feature/FOUR-19267
luNunezProcessmaker Sep 26, 2024
2878d40
feature/FOUR-19267
luNunezProcessmaker Sep 26, 2024
a755c6a
adding more test
pmPaulis Sep 27, 2024
da51a78
Merge remote-tracking branch 'origin/feature/FOUR-18130' into feature…
pmPaulis Sep 27, 2024
25c9cde
Merge pull request #7420 from ProcessMaker/feature/FOUR-18135
pmPaulis Sep 27, 2024
b7ae4d8
Update ProcessRequest.php
luNunezProcessmaker Sep 27, 2024
ef81444
feature/FOUR-19267
luNunezProcessmaker Sep 27, 2024
31b2516
Merge branch 'feature/FOUR-19267' of github.com:ProcessMaker/processm…
luNunezProcessmaker Sep 27, 2024
a51fe26
FOUR-18631: SPIKE: Review the comments Component
hjonathan Sep 27, 2024
0cce034
FOUR-18631: SPIKE: Review the comments Component
hjonathan Sep 27, 2024
00ccbef
Update ProcessRequestController.php
luNunezProcessmaker Sep 27, 2024
17a92d0
Merge pull request #7424 from ProcessMaker/feature/FOUR-19267
pmPaulis Sep 30, 2024
a40ba16
FOUR-18631: SPIKE: Review the comments Component
hjonathan Sep 30, 2024
fd3e202
fix: add cr suggestions
devmiguelangel Sep 30, 2024
28864bb
feature/FOUR-19330
luNunezProcessmaker Sep 30, 2024
ef065bd
feature/FOUR-19330
luNunezProcessmaker Sep 30, 2024
fb7d5df
FOUR-18968
pmPaulis Oct 1, 2024
c6848dc
Merge pull request #7421 from ProcessMaker/FOUR-18601
caleeli Oct 1, 2024
01c07e9
Merge branch 'next' into feature/FOUR-18078
devmiguelangel Oct 1, 2024
eaf113b
feat: add cases sync artisan command
devmiguelangel Sep 30, 2024
e6a3edc
feat: add custom exception logs
devmiguelangel Sep 27, 2024
6cdc2ab
FOUR-18606: Search text within the list of cases
Oct 1, 2024
ede7566
second stage tests
Oct 1, 2024
3771f39
Merge pull request #7431 from ProcessMaker/feature/FOUR-18631
pmPaulis Oct 1, 2024
e92b52a
feat: add case sync repo
devmiguelangel Oct 1, 2024
6df43f6
case repository refactor
devmiguelangel Oct 1, 2024
c56e671
FOUR-18638:Create a component with collpase the row and show some con…
fagubla Oct 1, 2024
c2a42dd
remofe the V1_1 filter and use the current filter
Oct 1, 2024
d306b6a
add missing files
Oct 1, 2024
c9572a6
test: case exception tests
devmiguelangel Oct 1, 2024
748e4ab
feature/FOUR-19330
luNunezProcessmaker Oct 1, 2024
79b98a3
feature/FOUR-19330
luNunezProcessmaker Oct 1, 2024
e2b4f72
FOUR-18130: Update the Closed status
pmPaulis Oct 1, 2024
3b6b06d
Merge remote-tracking branch 'origin/feature/FOUR-18130' into feature…
pmPaulis Oct 1, 2024
7055d40
fix: case exception handling and logging
devmiguelangel Oct 2, 2024
c884ec8
Update CollapseFormCell.vue
fagubla Oct 2, 2024
7221dcf
feature/FOUR-19330
luNunezProcessmaker Oct 2, 2024
6e48543
feature/FOUR-19330
luNunezProcessmaker Oct 2, 2024
e3d2225
complete alias methods for case participated model
Oct 2, 2024
01a5a72
feature/FOUR-19330
luNunezProcessmaker Oct 2, 2024
794723c
feature/FOUR-19353
luNunezProcessmaker Oct 2, 2024
98b2610
FOUR-18605 Count the cases and requests by user and status (EP)
julceslauhub Oct 2, 2024
195505e
remove status commit
Oct 2, 2024
113f12e
Merge pull request #7446 from ProcessMaker/feature/FOUR-18638
pmPaulis Oct 2, 2024
a1ee8d4
solve unit test issue
pmPaulis Oct 2, 2024
d7ea383
fix: use status active constant
devmiguelangel Oct 2, 2024
44740b8
Merge pull request #7448 from ProcessMaker/feature/FOUR-19353
pmPaulis Oct 2, 2024
dcebace
Merge pull request #7445 from ProcessMaker/FOUR-18602
caleeli Oct 2, 2024
d418885
Merge pull request #7449 from ProcessMaker/FOUR-18605
caleeli Oct 2, 2024
020dc4c
feat: populate user data in cases ep
devmiguelangel Oct 2, 2024
12328db
add a invalid json for test
Oct 2, 2024
f363a02
Merge branch 'feature/FOUR-18130' into feature/FOUR-19330
fagubla Oct 2, 2024
d6960a6
Merge remote-tracking branch 'origin/feature/FOUR-18078' into feature…
Oct 2, 2024
e83e975
fix merge conflicts
Oct 2, 2024
19a85ac
add logger to test assert
Oct 2, 2024
469829d
refactor test_get_all_cases_filter_by
Oct 2, 2024
3dca091
test improvement
Oct 2, 2024
1c317d1
Merge pull request #7447 from ProcessMaker/feature/FOUR-19330
pmPaulis Oct 2, 2024
e32a5a9
getDataTask has already been exported. Exported identifiers must be u…
pmPaulis Oct 3, 2024
f391c07
Merge pull request #7363 from ProcessMaker/feature/FOUR-18078
pmPaulis Oct 3, 2024
a445587
conflicts
pmPaulis Oct 3, 2024
bbd8958
solving obser
pmPaulis Oct 3, 2024
0140c2c
Merge pull request #7454 from ProcessMaker/feature/FOUR-18130
pmPaulis Oct 3, 2024
fe72061
fix: refactor to improve pagination and participant data
devmiguelangel Oct 3, 2024
caeacf1
FOUR-19366:Request - Details add a button "Go to Case"
fagubla Oct 3, 2024
7d3106c
FOUR-18608 Filter by status
julceslauhub Oct 3, 2024
163a180
Merge pull request #7441 from ProcessMaker/feature/FOUR-18606
caleeli Oct 3, 2024
f6eb644
Merge pull request #7458 from ProcessMaker/feature/FOUR-19366
pmPaulis Oct 3, 2024
7db5368
solving issue with test
pmPaulis Oct 3, 2024
1057b59
update the method name
pmPaulis Oct 3, 2024
6558c0a
Merge pull request #7452 from ProcessMaker/FOUR-19397
caleeli Oct 4, 2024
5e80bc8
Merge pull request #7459 from ProcessMaker/FOUR-18608
caleeli Oct 4, 2024
bb919e7
Merge pull request #7439 from ProcessMaker/feature/FOUR-18968
pmPaulis Oct 4, 2024
b0e94e9
FOUR-18969
pmPaulis Oct 4, 2024
b2dcd5b
feat: search by full text
devmiguelangel Oct 4, 2024
11af8c3
feat: add allowed sortable fields
devmiguelangel Oct 4, 2024
ef130f7
Merge pull request #7467 from ProcessMaker/feature/FOUR-18969
pmPaulis Oct 4, 2024
4b6a77b
Merge pull request #7468 from ProcessMaker/FOUR-18610
caleeli Oct 4, 2024
82b48b9
Merge pull request #7472 from ProcessMaker/feature/FOUR-18078
caleeli Oct 7, 2024
b0cb0bc
FOUR-18544 : Use api v1.1 data for show the counter and list Completed
hjonathan Oct 7, 2024
81336c2
FOUR-18544 : Use api v1.1 data for show the counter and list Completed
hjonathan Oct 7, 2024
2084a62
FOUR-18544 : Use api v1.1 data for show the counter and list Completed
hjonathan Oct 7, 2024
e9d7c2e
FOUR-18544 : Use api v1.1 data for show the counter and list Completed
hjonathan Oct 7, 2024
313b0b4
Delete public/images/flowGenieIcon.svg
henryjonathanquispe Oct 7, 2024
cc4060d
Delete public/images/wizard-icon.svg
henryjonathanquispe Oct 7, 2024
4a06d04
Merge branch 'feature/FOUR-18544' of github.com:ProcessMaker/processm…
hjonathan Oct 7, 2024
92287a8
FOUR-18544 : Use api v1.1 data for show the counter and list Completed
hjonathan Oct 7, 2024
f339f5a
FOUR-18544 : Use api v1.1 data for show the counter and list Completed
hjonathan Oct 7, 2024
9e704fe
Merge pull request #7476 from ProcessMaker/feature/FOUR-18130
pmPaulis Oct 7, 2024
b66eb42
FOUR-18544 : Use api v1.1 data for show the counter and list Completed
hjonathan Oct 7, 2024
59bc5f4
Merge pull request #7474 from ProcessMaker/feature/FOUR-18544
pmPaulis Oct 7, 2024
b85c4dc
Merge branch 'next' into feature/FOUR-18078
devmiguelangel Oct 8, 2024
7b35a1e
feat: support special characters in full-text search
devmiguelangel Oct 8, 2024
50b2527
Merge branch 'release-2024-fall' into feature/FOUR-18078
devmiguelangel Oct 8, 2024
0101925
Merge branch 'feature/FOUR-18078' into FOUR-19485
devmiguelangel Oct 8, 2024
db4ef13
test:: fix full-text search unit tests
devmiguelangel Oct 8, 2024
b711c2e
fix: ref regex
devmiguelangel Oct 8, 2024
f6fefd9
Fix test
caleeli Oct 8, 2024
5e98bd8
Merge remote-tracking branch 'origin/release-2024-fall' into FOUR-180…
caleeli Oct 8, 2024
a99daab
Merge branch 'release-2024-fall' into feature/FOUR-18078
devmiguelangel Oct 9, 2024
81e0437
Merge branch 'feature/FOUR-18078' into FOUR-19485
devmiguelangel Oct 9, 2024
61d1f74
Merge pull request #7490 from ProcessMaker/FOUR-19485
caleeli Oct 9, 2024
d6533f6
Merge remote-tracking branch 'origin/feature/FOUR-18078' into FOUR-18…
caleeli Oct 9, 2024
0f4d529
FOUR-18540: Use api v1.1 data for show the counter and list All cases
hjonathan Oct 9, 2024
89117cb
FOUR-18540: Use api v1.1 data for show the counter and list All cases
hjonathan Oct 9, 2024
44477c0
FOUR-18540: Use api v1.1 data for show the counter and list All cases
hjonathan Oct 9, 2024
58a05d6
Merge pull request #7505 from ProcessMaker/feature/FOUR-18540
pmPaulis Oct 9, 2024
1611d9b
Merge remote-tracking branch 'origin/release-2024-fall' into FOUR-180…
caleeli Oct 9, 2024
dac9c58
Merge remote-tracking branch 'origin/release-2024-fall' into FOUR-180…
caleeli Oct 9, 2024
61ff6f5
Update test, there is no more Case #case_numer
caleeli Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions ProcessMaker/Console/Commands/CasesSync.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

namespace ProcessMaker\Console\Commands;

use Illuminate\Console\Command;
use ProcessMaker\Repositories\CaseSyncRepository;

class CasesSync extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'cases:sync
{--request_ids= : Comma-separated list of request IDs to sync}';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Sync requests with the cases tables';

/**
* Execute the console command.
*/
public function handle()
{
$requestIds = $this->option('request_ids');
$requestIds = $requestIds ? explode(',', $requestIds) : [];

if (count($requestIds) > 0) {
$data = CaseSyncRepository::syncCases($requestIds);

foreach ($data['successes'] as $value) {
$this->info('Case started synced ' . $value);
}

foreach ($data['errors'] as $value) {
$this->error('Error syncing case started ' . $value);
}
} else {
$this->error('Please specify a list of request IDs.');
}
}
}
62 changes: 62 additions & 0 deletions ProcessMaker/Contracts/CaseApiRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php

namespace ProcessMaker\Contracts;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request;

interface CaseApiRepositoryInterface
{
/**
* Get all cases
*
* @param Request $request
*
* @return Builder
*/
public function getAllCases(Request $request): Builder;
/**
* Get all cases in progress
*
* @param Request $request
*
* @return Builder
*/
public function getInProgressCases(Request $request): Builder;
/**
* Get all completed cases
*
* @param Request $request
*
* @return Builder
*/
public function getCompletedCases(Request $request): Builder;
/**
* Search by case number or case title.

* @param Request $request: Query parameter format: search=keyword
* @param Builder $query
*
* @return void
*/
public function search(Request $request, Builder $query): void;
/**
* Filter the query.
*
* @param Request $request: Query parameter format: filterBy[field]=value&filterBy[field2]=value2&...
* @param Builder $query
* @param array $dateFields List of date fields in current model
*
* @return void
*/
public function filterBy(Request $request, Builder $query): void;
/**
* Sort the query.
*
* @param Request $request: Query parameter format: sortBy=field:asc,field2:desc,...
* @param Builder $query
*
* @return void
*/
public function sortBy(Request $request, Builder $query): void;
}
32 changes: 32 additions & 0 deletions ProcessMaker/Contracts/CaseRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

namespace ProcessMaker\Contracts;

use ProcessMaker\Nayra\Contracts\Bpmn\TokenInterface;
use ProcessMaker\Nayra\Contracts\Engine\ExecutionInstanceInterface;

interface CaseRepositoryInterface
{
/**
* Store a new case started.
*
* @param ExecutionInstanceInterface $instance
* @return void
*/
public function create(ExecutionInstanceInterface $instance): void;
/**
* Update the case started.
*
* @param ExecutionInstanceInterface $instance
* @param TokenInterface $token
* @return void
*/
public function update(ExecutionInstanceInterface $instance, TokenInterface $token): void;
/**
* Update the status of a case started.
*
* @param ExecutionInstanceInterface $instance
* @return void
*/
public function updateStatus(ExecutionInstanceInterface $instance): void;
}
20 changes: 20 additions & 0 deletions ProcessMaker/Exception/CaseValidationException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace ProcessMaker\Exception;

use Exception;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class CaseValidationException extends Exception
{
/**
* Render the exception as an HTTP response.
*/
public function render(Request $request): JsonResponse
{
return response()->json([
'message' => $this->getMessage(),
], JsonResponse::HTTP_UNPROCESSABLE_ENTITY);
}
}
Loading
Loading