Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,5 @@ public function __construct(
public bool $changeManagement = false,
public bool $assetManagement = false,
public bool $feedbackManagement = false,
public bool $experimentalReporting = false,
) {}
}
2 changes: 0 additions & 2 deletions app/Enums/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ enum Feature: string

case FeedbackManagement = 'feedback-management';

case ExperimentalReporting = 'experimental-reporting';

public function generateGate(): void
{
// If features are added that are not based on a License Addon we will need to update this
Expand Down
14 changes: 0 additions & 14 deletions app/Filament/Pages/ManageLicenseSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
use App\DataTransferObjects\LicenseManagement\LicenseData;
use App\Models\User;
use App\Settings\LicenseSettings;
use Filament\Actions\Action;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\TextInput;
Expand Down Expand Up @@ -143,24 +142,11 @@ public function form(Form $form): Form
->label('Asset Management'),
Toggle::make('data.addons.feedbackManagement')
->label('Feedback Management'),
Toggle::make('data.addons.experimentalReporting')
->label('Experimental Reporting')
->live()
->afterStateUpdated(fn (Toggle $component, $state) => $state ? $component->state(false) && $this->mountAction('enableExperimentalReporting') : null),
]
),
]);
}

public function enableExperimentalReporting(): Action
{
return Action::make('enableExperimentalReporting')
->color('danger')
->requiresConfirmation()
->modalDescription('Experimental reporting is not currently a reliable method to explore your data, but is representative of a capability in research and development at Canyon GBS to innovatively extend AI to allow you to explore your data through natural language processing. This feature should be used for educational purposes only, and should not be be relied upon for decision making at your institution.')
->action(fn () => $this->data['data']['addons']['experimentalReporting'] = true);
}

protected function mutateFormDataBeforeSave(array $data): array
{
return [
Expand Down
1 change: 0 additions & 1 deletion app/Http/Requests/Tenants/CreateTenantRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public function rules(): array
'addons.changeManagement' => ['required', 'boolean'],
'addons.assetManagement' => ['required', 'boolean'],
'addons.feedbackManagement' => ['required', 'boolean'],
'addons.experimentalReporting' => ['required', 'boolean'],
];
}
}
1 change: 0 additions & 1 deletion app/Http/Requests/Tenants/SyncTenantRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public function rules(): array
'addons.changeManagement' => ['required', 'boolean'],
'addons.assetManagement' => ['required', 'boolean'],
'addons.feedbackManagement' => ['required', 'boolean'],
'addons.experimentalReporting' => ['required', 'boolean'],
];
}
}
2 changes: 0 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ protected function createTenant(string $name, string $domain, string $database):
changeManagement: true,
assetManagement: true,
feedbackManagement: true,
experimentalReporting: true,
)
),
false,
Expand Down Expand Up @@ -253,7 +252,6 @@ protected function refreshTenantTestingEnvironment(?Tenant $tenant = null): void
changeManagement: true,
assetManagement: true,
feedbackManagement: true,
experimentalReporting: true,
)
)
));
Expand Down