Skip to content

Commit

Permalink
Merge pull request #1399 from bakaphp/development
Browse files Browse the repository at this point in the history
Release 1.34
  • Loading branch information
kaioken authored May 30, 2024
2 parents f22bec7 + 9112f20 commit 76f0ab1
Show file tree
Hide file tree
Showing 37 changed files with 1,214 additions and 86 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ DB_WORKFLOW_DATABASE=workflow
DB_WORKFLOW_USERNAME=root
DB_WORKFLOW_PASSWORD=password

DB_ACTION_ENGINE_HOST=mysql
DB_ACTION_ENGINE_HOST_READ=mysql
DB_ACTION_ENGINE_DATABASE=action_engine
DB_ACTION_ENGINE_USERNAME=root
DB_ACTION_ENGINE_PASSWORD=password

DB_COMMERCE_HOST=mysql
DB_COMMERCE_HOST_READ=mysql
DB_COMMERCE_DATABASE=commerce
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
DB_WORKFLOW_DATABASE: workflows
DB_WORKFLOW_USERNAME: root
DB_WORKFLOW_PASSWORD: password
DB_ACTION_ENGINE_DATABASE: action_engine
DB_ACTION_ENGINE_USERNAME: root
DB_ACTION_ENGINE_PASSWORD: password
DB_COMMERCE_DATABASE: commerce
DB_COMMERCE_USERNAME: root
DB_COMMERCE_PASSWORD: password
Expand Down Expand Up @@ -118,6 +121,10 @@ jobs:
run: |
mysql -uroot -h127.0.0.1 -ppassword -e 'CREATE DATABASE IF NOT EXISTS workflow;'
- name: Setup ACTION_ENGINE DB
run: |
mysql -uroot -h127.0.0.1 -ppassword -e 'CREATE DATABASE IF NOT EXISTS action_engine;'
- name: Setup COMMERCE DB
run: |
mysql -uroot -h127.0.0.1 -ppassword -e 'CREATE DATABASE IF NOT EXISTS commerce;'
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
DB_WORKFLOW_DATABASE: workflows
DB_WORKFLOW_USERNAME: root
DB_WORKFLOW_PASSWORD: password
DB_ACTION_ENGINE_DATABASE: action_engine
DB_ACTION_ENGINE_USERNAME: root
DB_ACTION_ENGINE_PASSWORD: password
DB_COMMERCE_DATABASE: commerce
DB_COMMERCE_USERNAME: root
DB_COMMERCE_PASSWORD: password
Expand Down Expand Up @@ -135,6 +138,10 @@ jobs:
run: |
mysql -uroot -h127.0.0.1 -ppassword -e 'CREATE DATABASE IF NOT EXISTS workflow;'
- name: Setup ACTION ENGINE DB
run: |
mysql -uroot -h127.0.0.1 -ppassword -e 'CREATE DATABASE IF NOT EXISTS action_engine;'
- name: Setup COMMERCE DB
run: |
mysql -uroot -h127.0.0.1 -ppassword -e 'CREATE DATABASE IF NOT EXISTS commerce;'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Console\Commands\Connectors\Notifications;

use Illuminate\Console\Command;
use Kanvas\Apps\Repositories\AppsRepository;
use Kanvas\Connectors\Notifications\Jobs\MailCaddieLabJob;

class MailCaddieLabCommand extends Command
{
protected $signature = 'kanvas:internal-mail-caddie-lab {apps_id}';

public function handle()
{
$this->info('Sending internal mail to Caddie Lab');
MailCaddieLabJob::dispatch(AppsRepository::findFirstByKey($this->argument('apps_id')));
}
}
1 change: 1 addition & 0 deletions app/Console/Commands/KanvasSetupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function handle()
'migrate --path database/migrations/Workflow/ --database workflow',
'migrate --path database/migrations/Souk/ --database commerce',
'migrate --path vendor/laravel-workflow/laravel-workflow/src/migrations/ --database workflow',
'migrate --path database/migrations/ActionEngine/ --database action_engine',
'db:seed',
'db:seed --class=Database\\\Seeders\\\GuildSeeder --database crm',
'kanvas:create-role Admin',
Expand Down
5 changes: 3 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ class Kernel extends ConsoleKernel
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
*
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command(RunHealthChecksCommand::class)->everyMinute();
$schedule->command(DispatchQueueCheckJobsCommand::class)->everyMinute();
$schedule->command(ScheduleCheckHeartbeatCommand::class)->everyMinute();
/* $schedule->command(MailCaddieLabCommand::class, [getenv('CADDIE_APP_KEY')])
->dailyAt('13:00')
->timezone('America/Santo_Domingo') ; */
}

/**
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"meilisearch/meilisearch-php": "^1.4",
"mll-lab/graphql-php-scalars": "^6.0",
"mll-lab/laravel-graphiql": "^3.1.0",
"nevadskiy/laravel-tree": "^0.5.0",
"nuwave/lighthouse": "^6.0",
"phpclassic/php-shopify": "^1.2",
"powersync/authorizenet-sdk-php": "^2.0",
Expand Down Expand Up @@ -116,6 +117,9 @@
"migrate-commerce": [
"php artisan migrate --path database/migrations/Souk/ --database commerce"
],
"migrate-action-engine": [
"php artisan migrate --path database/migrations/ActionEngine/ --database action_engine"
],
"migrate-laravel-workflow": [
"php artisan migrate --path vendor/laravel-workflow/laravel-workflow/src/migrations/ --database workflow"
]
Expand Down
Loading

0 comments on commit 76f0ab1

Please sign in to comment.