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

Updating feature branch with last changes in develop branch #5715

Merged
merged 30 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
00c07a2
Add package-jz-sonymusic, package-jz-nas and pm-platform
caleeli Nov 22, 2023
37e2ece
v4.8.1
caleeli Nov 22, 2023
a57737c
package-jz-sonymusic to dev-fall
caleeli Nov 22, 2023
580909b
Merge pull request #5684 from ProcessMaker/FOUR-12526
ryancooley Nov 22, 2023
7f92144
Do not show system languages.
marcoAntonioNina Nov 22, 2023
32d89a4
Merge pull request #5686 from ProcessMaker/bugfix/FOUR-12538
ryancooley Nov 22, 2023
9b807cc
Run package:discover after removing a license
nolanpro Nov 22, 2023
8dbfa83
Do not run clear-compiled when refreshing cache
nolanpro Nov 22, 2023
e9fa2d5
Remove accidentally committed files
nolanpro Nov 22, 2023
47afa5e
Use hasPackage helper instead of class exists
nolanpro Nov 23, 2023
36f9af1
Merge pull request #5688 from ProcessMaker/bugfix/FOUR-12535
ryancooley Nov 23, 2023
a0fe1bf
Update enterprise packages
ryancooley Nov 23, 2023
c36aef2
Version 4.8.1+nightly-20231122
ryancooley Nov 23, 2023
17eb588
Symfony Mailer does not use setAuthMode
caleeli Nov 23, 2023
29f28dc
Fix customer package names
caleeli Nov 23, 2023
7c355ec
TRI4-6982 data._parent.request_id the value is wrong
julceslauhub Nov 23, 2023
5d8f425
Refactor in-flight map loading logic
eiresendez Nov 23, 2023
6b50c84
Merge pull request #5693 from ProcessMaker/fall
ryancooley Nov 24, 2023
8b1b633
Merge pull request #5692 from ProcessMaker/bugfix/FOUR-12532
ryancooley Nov 24, 2023
0e6c57d
Update enterprise package
ryancooley Nov 24, 2023
0da5cef
Version 4.8.1+nightly-20231123
ryancooley Nov 24, 2023
09f8e02
FOUR-12550 Notification Empty when a Translation is added in a Process
gproly Nov 24, 2023
084377a
Merge pull request #5697 from ProcessMaker/bugfix/TRI4-6982
ryancooley Nov 24, 2023
d134dba
Merge pull request #5695 from ProcessMaker/bug/FOUR-12548
ryancooley Nov 24, 2023
b819bb3
Merge pull request #5699 from ProcessMaker/bugfix/FOUR-12550
ryancooley Nov 24, 2023
7d3257a
Update enterprise packages
ryancooley Nov 24, 2023
fea681d
Update modeler
ryancooley Nov 24, 2023
4b628ff
Version 4.8.1
ryancooley Nov 24, 2023
859b77c
Update modeler
ryancooley Nov 27, 2023
c9c223e
Version 4.8.1
ryancooley Nov 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions ProcessMaker/Console/Commands/ProcessMakerLicenseRemove.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace ProcessMaker\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Storage;

class ProcessMakerLicenseRemove extends Command
Expand Down Expand Up @@ -37,6 +38,10 @@ public function handle()
if ($this->confirm('Are you sure you want to remove the license.json file?')) {
Storage::disk('local')->delete('license.json');
$this->info('license.json removed successfully!');

$this->info('Calling package:discover to update the package cache with enabled packages');
Artisan::call('package:discover');
$this->info(Artisan::output());
} else {
$this->info('Operation cancelled. license.json was not removed.');
}
Expand Down
4 changes: 4 additions & 0 deletions ProcessMaker/Console/Commands/ProcessMakerLicenseUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public function handle()

Storage::disk('local')->put('license.json', $content);

$this->info('Calling package:discover to update the package cache with enabled packages');
Artisan::call('package:discover');
$this->info(Artisan::output());

$this->info('License updated successfully');
} catch (Exception $e) {
$this->error('An error occurred: ' . $e->getMessage());
Expand Down Expand Up @@ -77,6 +80,7 @@ protected function isValidLicenseContent(string $content): bool
Carbon::parse($data['expires_at']);
} catch (Exception $e) {
$this->error('The "expires_at" property is not a valid date.');

return false;
}

Expand Down
12 changes: 7 additions & 5 deletions ProcessMaker/Http/Controllers/Api/ScriptExecutorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,13 @@ public function availableLanguages()
{
$languages = [];
foreach (Script::scriptFormats() as $key => $config) {
$languages[] = [
'value' => $key,
'text' => $config['name'],
'initDockerfile' => ScriptExecutor::initDockerfile($key),
];
if (!array_key_exists( 'system', $config) || (array_key_exists( 'system', $config) && !$config['system'])) {
$languages[] = [
'value' => $key,
'text' => $config['name'],
'initDockerfile' => ScriptExecutor::initDockerfile($key),
];
}
}

return ['languages' => $languages];
Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function index(Request $request)
return redirect('/requests');
}
// Redirect to home dynamic only if the package was enable
if (!$isMobile && class_exists(\ProcessMaker\Package\PackageDynamicUI\Models\DynamicUI::class)) {
if (!$isMobile && hasPackage('package-dynamic-ui')) {
$user = \Auth::user();
$homePage = \ProcessMaker\Package\PackageDynamicUI\Models\DynamicUI::getHomePage($user);

Expand Down
14 changes: 8 additions & 6 deletions ProcessMaker/Http/Middleware/GenerateMenus.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ public function handle(Request $request, Closure $next)
Menu::make('topnav', function ($menu) {
// The home will display the dynamic ui view
// @todo home will replace the request and task
$menu->group(['prefix' => 'home'], function ($request_items) {
$request_items->add(
__('Home'),
['route' => 'home', 'id' => 'home']
)->active('home/*');
});
if (hasPackage('package-dynamic-ui')) {
$menu->group(['prefix' => 'home'], function ($request_items) {
$request_items->add(
__('Home'),
['route' => 'home', 'id' => 'home']
)->active('home/*');
});
}
$menu->group(['prefix' => 'requests'], function ($request_items) {
$request_items->add(
__('Requests'),
Expand Down
4 changes: 2 additions & 2 deletions ProcessMaker/Jobs/RefreshArtisanCaches.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public function __construct()
*/
public function handle()
{
Artisan::call('clear-compiled', $options = [
$options = [
'--no-interaction' => true,
'--quiet' => true,
]);
];

if (app()->configurationIsCached()) {
Artisan::call('config:cache', $options);
Expand Down
6 changes: 2 additions & 4 deletions ProcessMaker/Managers/OauthMailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,13 @@ protected function createSmtpTransport($config)
case 'google':
$accessToken = $this->checkForExpiredAccessToken();
// Update Authentication Mode
$transport->setAuthMode('XOAUTH2')
->setUsername($this->fromAddress)
$transport->setUsername($this->fromAddress)
->setPassword($accessToken);
break;
case 'office365':
$accessToken = $this->checkForExpiredAccessToken();
// Update Authentication Mode
$transport->setAuthMode('XOAUTH2')
->setUsername($this->fromAddress)
$transport->setUsername($this->fromAddress)
->setPassword($accessToken);
break;
}
Expand Down
4 changes: 4 additions & 0 deletions ProcessMaker/Nayra/Repositories/Deserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ public function unserializeInstance(array $serialized): ExecutionInstanceInterfa

// Set request data
if (!empty($serialized['data']) && is_array($serialized['data'])) {
// Preserve the parent request id
if (isset($serialized['data']['_parent'])) {
$serialized['data']['_parent']['request_id'] = $instance->parent_request_id;
}
$dataStore = $instance->getDataStore();
foreach ($serialized['data'] as $key => $value) {
$dataStore->putData($key, $value);
Expand Down
6 changes: 6 additions & 0 deletions ProcessMaker/Notifications/ProcessTranslationReady.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ public function via($notifiable)
*/
public function toArray($notifiable)
{
$data = [
'humanLanguage' => $this->targetLanguage['humanLanguage'],
'processName' => $this->process->name
];
$message = __('Process translation to :humanLanguage completed for process: :processName', $data);
return [
'message' => $message,
'code' => $this->code,
'name' => __('Process translated'),
'processId' => $this->process->id ?? '',
Expand Down
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "processmaker/processmaker",
"version": "4.8.0",
"version": "4.8.1",
"description": "BPM PHP Software",
"keywords": [
"php bpm processmaker"
Expand Down Expand Up @@ -96,7 +96,7 @@
"Gmail"
],
"processmaker": {
"build": "cdd93b9a",
"build": "e24a3c60",
"custom": {
"package-ellucian-ethos": "1.14.1",
"package-plaid": "1.3.1",
Expand All @@ -120,28 +120,31 @@
"package-lesschwab": "dev-fall",
"package-proservice-tools": "dev-fall",
"package-foxley-management": "dev-fall",
"package-email-listener": "dev-fall"
"package-email-listener": "dev-fall",
"package-zj-sonymusic": "dev-fall",
"pm-platform": "dev-fall",
"package-zj-nas": "dev-fall"
},
"enterprise": {
"connector-docusign": "1.6.0",
"connector-idp": "1.6.0",
"connector-pdf-print": "1.15.3",
"connector-send-email": "1.23.4",
"connector-send-email": "1.23.6",
"connector-slack": "1.7.0",
"docker-executor-cdata": "1.0.1",
"docker-executor-cdata": "1.1.0",
"docker-executor-node-ssr": "1.5.0",
"package-actions-by-email": "1.15.0",
"package-advanced-user-manager": "1.8.0",
"package-ai": "1.3.0",
"package-analytics-reporting": "1.3.1",
"package-auth": "1.15.0",
"package-auth": "1.15.2",
"package-cdata": "1.0.2",
"package-collections": "2.13.0",
"package-comments": "1.9.2",
"package-conversational-forms": "1.6.0",
"package-data-sources": "1.23.1",
"package-decision-engine": "1.6.2",
"package-dynamic-ui": "1.15.1",
"package-dynamic-ui": "1.15.4",
"package-files": "1.11.2",
"package-googleplaces": "1.9.0",
"package-photo-video": "1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@processmaker/processmaker",
"version": "4.8.0",
"version": "4.8.1",
"description": "ProcessMaker 4",
"author": "DevOps <devops@processmaker.com>",
"license": "ISC",
Expand Down Expand Up @@ -51,7 +51,7 @@
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@fortawesome/vue-fontawesome": "^0.1.9",
"@panter/vue-i18next": "^0.15.2",
"@processmaker/modeler": "1.41.0",
"@processmaker/modeler": "1.42.1",
"@processmaker/processmaker-bpmn-moddle": "0.14.1",
"@processmaker/screen-builder": "2.79.0",
"@processmaker/vue-form-elements": "0.49.4",
Expand Down
42 changes: 32 additions & 10 deletions resources/views/requests/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,26 @@ class="tab-pane card card-body border-top-0 p-3">
<h4>
{{ __(':name In-Flight Map', ['name' => $request->process->name]) }}
</h4>
<div v-if="iframeLoading" class="d-flex justify-content-center">
<div v-if="isObjectLoading" class="d-flex justify-content-center">
<div class="spinner-border text-primary" role="status"></div>
</div>
<div v-show="!iframeLoading">
<iframe class="card"
src="{{ route('modeler.inflight', ['process' => $request->process->id, 'request' => $request->id]) }}"
width="100%" height="640px" frameborder="0" style="border-radius: 4px;"
@load="onLoadIframe"></iframe>
<div :class="{ 'hidden': isObjectLoading }">
<object ref="processMap" class="card"
data="{{ route('modeler.inflight', [
'process' => $request->process->id,
'request' => $request->id
]) }}"
width="100%"
:height="isObjectLoading ? 'auto' : '640px'"
frameborder="0"
type="text/html"
style="border-radius: 4px;"
@load="onLoadedObject">
<!-- Accessible Alternative Content -->
<p>
{{ __('Content not available. Check settings or try a different device.') }}
</p>
</object>
</div>
</div>
</div>
Expand Down Expand Up @@ -419,7 +431,7 @@ class="d-inline-flex pull-left align-items-center" :input-data="requestBy" displ
packages: [],
processId: @json($request->process->id),
canViewComments: @json($canViewComments),
iframeLoading: false,
isObjectLoading: false,
showTree: false,
};
},
Expand Down Expand Up @@ -543,12 +555,12 @@ classStatusCard() {
switchTab(tab) {
this.activeTab = tab;
if (tab === 'overview') {
this.iframeLoading = true;
this.isObjectLoading = true;
}
ProcessMaker.EventBus.$emit('tab-switched', tab);
},
onLoadIframe() {
this.iframeLoading = false;
onLoadedObject() {
this.isObjectLoading = false;
},
requestStatusClass(status) {
status = status.toLowerCase();
Expand Down Expand Up @@ -735,3 +747,13 @@ classStatusCard() {
});
</script>
@endsection

@section('css')
<style>
.hidden {
visibility: hidden;
opacity: 0;
pointer-events: none;
}
</style>
@endsection