Skip to content

Commit

Permalink
Merge pull request #80 from canyongbs/feature/AIDAPP-70-report-center
Browse files Browse the repository at this point in the history
[AIDAPP-70] & [AIDAPP-76]: Remove report and experimental reporting functionality
  • Loading branch information
Orrison authored May 15, 2024
2 parents 34fd67d + 135c3ba commit 44682c5
Show file tree
Hide file tree
Showing 31 changed files with 1,081 additions and 3,133 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,5 @@ DEMO_INTERNAL_USER_EMAILS=
AZURE_OPEN_AI_BASE_ENDPOINT=
AZURE_OPEN_AI_API_KEY=
AZURE_OPEN_AI_PERSONAL_ASSISTANT_API_VERSION="2023-05-15"
AZURE_OPEN_AI_REPORT_ASSISTANT_API_VERSION=2024-02-15-preview
AZURE_OPEN_AI_PERSONAL_ASSISTANT_DEPLOYMENT_NAME=
AZURE_OPEN_AI_REPORT_ASSISTANT_DEPLOYMENT_NAME=
AZURE_OPEN_AI_ENABLE_TEST_MODE=true
35 changes: 0 additions & 35 deletions _ide_helper_models.php
Original file line number Diff line number Diff line change
Expand Up @@ -2142,41 +2142,6 @@ class IdeHelperSubscription {}
class IdeHelperPortalAuthentication {}
}

namespace AidingApp\Report\Models{
/**
* AidingApp\Report\Models\Report
*
* @property string $id
* @property string $name
* @property string|null $description
* @property array|null $filters
* @property array $columns
* @property \AidingApp\Report\Enums\ReportModel $model
* @property string $user_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $deleted_at
* @property-read \App\Models\User $user
* @method static \AidingApp\Report\Database\Factories\ReportFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Report newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Report newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Report query()
* @method static \Illuminate\Database\Eloquent\Builder|Report whereColumns($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereFilters($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereModel($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Report whereUserId($value)
* @mixin \Eloquent
*/
#[\AllowDynamicProperties]
class IdeHelperReport {}
}

namespace AidingApp\ServiceManagement\Models{
/**
* AidingApp\ServiceManagement\Models\ChangeRequest
Expand Down
11 changes: 2 additions & 9 deletions app-modules/integration-ai/src/Client/AzureOpenAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,15 @@
namespace AidingApp\IntegrationAI\Client;

use OpenAI;
use AidingApp\Report\Client\AIReportChatClient;

class AzureOpenAI extends BaseAIChatClient
{
protected function initializeClient(): void
{
$this->baseEndpoint = config('services.azure_open_ai.endpoint');
$this->apiKey = config('services.azure_open_ai.api_key');

if (get_class($this) === AIReportChatClient::class) {
$this->apiVersion = config('services.azure_open_ai.report_assistant_api_version');
$this->deployment = config('services.azure_open_ai.report_assistant_deployment_name');
} else {
$this->apiVersion = config('services.azure_open_ai.personal_assistant_api_version');
$this->deployment = config('services.azure_open_ai.personal_assistant_deployment_name');
}
$this->apiVersion = config('services.azure_open_ai.personal_assistant_api_version');
$this->deployment = config('services.azure_open_ai.personal_assistant_deployment_name');

$this->client = OpenAI::factory()
->withBaseUri("{$this->baseEndpoint}/openai/deployments/{$this->deployment}")
Expand Down
26 changes: 0 additions & 26 deletions app-modules/report/composer.json

This file was deleted.

37 changes: 0 additions & 37 deletions app-modules/report/config/roles/api/report_management.php

This file was deleted.

43 changes: 0 additions & 43 deletions app-modules/report/config/roles/web/report_management.php

This file was deleted.

60 changes: 0 additions & 60 deletions app-modules/report/database/factories/ReportFactory.php

This file was deleted.

Empty file.
Loading

0 comments on commit 44682c5

Please sign in to comment.