Skip to content

Commit

Permalink
Feature Flag Cleanup: AzureMatchingPropertyFeature (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan-canyon authored Jan 3, 2025
1 parent 488eb3a commit 345ce12
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 105 deletions.

This file was deleted.

5 changes: 0 additions & 5 deletions app-modules/authorization/src/Enums/SocialiteProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
use AdvisingApp\Authorization\Settings\AzureSsoSettings;
use AdvisingApp\Authorization\Settings\GoogleSsoSettings;
use AdvisingApp\MeetingCenter\Settings\AzureCalendarSettings;
use App\Features\AzureMatchingPropertyFeature;
use Exception;
use Laravel\Socialite\Contracts\Provider;
use Laravel\Socialite\Facades\Socialite;
Expand Down Expand Up @@ -101,10 +100,6 @@ public function getEmailFromUser(mixed $user): string
{
return match ($this->value) {
'azure', 'azure_calendar' => (function () use ($user) {
if (! AzureMatchingPropertyFeature::active()) {
return $user->getEmail();
}

/** @var User $user */

return match (app(AzureSsoSettings::class)->matching_property) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

use AdvisingApp\Authorization\Enums\AzureMatchingProperty;
use AdvisingApp\Authorization\Settings\AzureSsoSettings;
use App\Features\AzureMatchingPropertyFeature;
use App\Filament\Clusters\ProductIntegrations;
use App\Models\User;
use Filament\Forms\Components\Section;
Expand Down Expand Up @@ -102,8 +101,7 @@ public function form(Form $form): Form
->label('Matching Property')
->options(AzureMatchingProperty::class)
->enum(AzureMatchingProperty::class)
->required(fn (Get $get) => $get('is_enabled'))
->visible(AzureMatchingPropertyFeature::active()),
->required(fn (Get $get) => $get('is_enabled')),
])->visible(fn (Get $get) => $get('is_enabled')),
]);
}
Expand Down
47 changes: 0 additions & 47 deletions app/Features/AzureMatchingPropertyFeature.php

This file was deleted.

0 comments on commit 345ce12

Please sign in to comment.