Skip to content

Commit

Permalink
Remove caseloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoetzit committed Mar 1, 2024
1 parent 426ebf9 commit 5be9fe6
Show file tree
Hide file tree
Showing 41 changed files with 4 additions and 2,709 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Our student service CRM is designed to support the management of enrolled studen
* Record Mangement
* Email and SMS
* Service Management
* Caseload Management
* Task Management
* Interaction Tracking
* Files and Documents
Expand Down
110 changes: 2 additions & 108 deletions _ide_helper_models.php
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
<?php

/*
<COPYRIGHT>
Copyright © 2016-2024, Canyon GBS LLC. All rights reserved.
Aiding App™ is licensed under the Elastic License 2.0. For more details,
see <https://github.com/canyongbs/aidingapp/blob/main/LICENSE.>
Notice:
- You may not provide the software to third parties as a hosted or managed
service, where the service provides users with access to any substantial set of
the features or functionality of the software.
- You may not move, change, disable, or circumvent the license key functionality
in the software, and you may not remove or obscure any functionality in the
software that is protected by the license key.
- You may not alter, remove, or obscure any licensing, copyright, or other notices
of the licensor in the software. Any use of the licensor’s trademarks is subject
to applicable law.
- Canyon GBS LLC respects the intellectual property rights of others and expects the
same in return. Canyon GBS™ and Aiding App™ are registered trademarks of
Canyon GBS LLC, and we are committed to enforcing and protecting our trademarks
vigorously.
- The software solution, including services, infrastructure, and code, is offered as a
Software as a Service (SaaS) by Canyon GBS LLC.
- Use of this software implies agreement to the license terms and conditions as stated
in the Elastic License 2.0.
For more information or inquiries please visit our website at
<https://www.canyongbs.com> or contact us via email at legal@canyongbs.com.
</COPYRIGHT>
*/

// @formatter:off
// phpcs:ignoreFile
/**
Expand Down Expand Up @@ -444,8 +410,6 @@ class IdeHelperTenant {}
* @property-read \AdvisingApp\MeetingCenter\Models\Calendar|null $calendar
* @property-read \Illuminate\Database\Eloquent\Collection<int, \AdvisingApp\CareTeam\Models\CareTeam> $careTeams
* @property-read int|null $care_teams_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \AdvisingApp\CaseloadManagement\Models\Caseload> $caseloads
* @property-read int|null $caseloads_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \AdvisingApp\ServiceManagement\Models\ChangeRequestResponse> $changeRequestResponses
* @property-read int|null $change_request_responses_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \AdvisingApp\ServiceManagement\Models\ChangeRequestType> $changeRequestTypes
Expand Down Expand Up @@ -1144,76 +1108,6 @@ class IdeHelperRoleGroup {}
class IdeHelperCareTeam {}
}

namespace AdvisingApp\CaseloadManagement\Models{
/**
* AdvisingApp\CaseloadManagement\Models\Caseload
*
* @property string $id
* @property string $name
* @property string|null $description
* @property array|null $filters
* @property \AdvisingApp\CaseloadManagement\Enums\CaseloadModel $model
* @property \AdvisingApp\CaseloadManagement\Enums\CaseloadType $type
* @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 \Illuminate\Database\Eloquent\Collection<int, \AdvisingApp\CaseloadManagement\Models\CaseloadSubject> $subjects
* @property-read int|null $subjects_count
* @property-read \App\Models\User $user
* @method static \AdvisingApp\CaseloadManagement\Database\Factories\CaseloadFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Caseload model(\AdvisingApp\CaseloadManagement\Enums\CaseloadModel $model)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Caseload newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Caseload query()
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereFilters($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereModel($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Caseload whereUserId($value)
* @mixin \Eloquent
*/
#[\AllowDynamicProperties]
class IdeHelperCaseload {}
}

namespace AdvisingApp\CaseloadManagement\Models{
/**
* AdvisingApp\CaseloadManagement\Models\CaseloadSubject
*
* @property string $id
* @property string $subject_id
* @property string $subject_type
* @property string $caseload_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read \AdvisingApp\CaseloadManagement\Models\Caseload $caseload
* @property-read \Illuminate\Database\Eloquent\Model|\Eloquent $subject
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject query()
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject whereCaseloadId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject whereSubjectId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject whereSubjectType($value)
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject withTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|CaseloadSubject withoutTrashed()
* @mixin \Eloquent
*/
#[\AllowDynamicProperties]
class IdeHelperCaseloadSubject {}
}

namespace AdvisingApp\Consent\Models{
/**
* AdvisingApp\Consent\Models\ConsentAgreement
Expand Down Expand Up @@ -4067,7 +3961,7 @@ class IdeHelperEnrollment {}
* @property int $cum_att
* @property int $cum_ern
* @property int $pct_ern
* @property float $cum_gpa
* @property string $cum_gpa
* @property \Illuminate\Support\Carbon $max_dt
* @property-read \AdvisingApp\StudentDataModel\Models\Student|null $student
* @method static \AdvisingApp\StudentDataModel\Database\Factories\PerformanceFactory factory($count = null, $state = [])
Expand Down Expand Up @@ -4099,7 +3993,7 @@ class IdeHelperPerformance {}
* @property string $division
* @property string $acad_plan
* @property string $prog_status
* @property float $cum_gpa
* @property string $cum_gpa
* @property string $semester
* @property string $descr
* @property string $foi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
use Filament\Forms\Components\Textarea;
use Filament\Tables\Actions\ViewAction;
use Filament\Tables\Columns\TextColumn;
use Illuminate\Database\Eloquent\Model;
use AdvisingApp\Alert\Enums\AlertStatus;
use App\Filament\Tables\Columns\IdColumn;
use Filament\Resources\Pages\ListRecords;
Expand All @@ -58,11 +57,9 @@
use Filament\Tables\Actions\BulkActionGroup;
use Filament\Tables\Actions\DeleteBulkAction;
use AdvisingApp\StudentDataModel\Models\Student;
use AdvisingApp\CaseloadManagement\Models\Caseload;
use App\Filament\Forms\Components\EducatableSelect;
use AdvisingApp\Alert\Filament\Resources\AlertResource;
use AdvisingApp\StudentDataModel\Models\Scopes\EducatableSearch;
use AdvisingApp\CaseloadManagement\Actions\TranslateCaseloadFilters;
use AdvisingApp\Contact\Filament\Resources\ContactResource\Pages\ManageContactAlerts;
use AdvisingApp\StudentDataModel\Filament\Resources\StudentResource\Pages\ManageStudentAlerts;

Expand Down Expand Up @@ -132,24 +129,6 @@ public function table(Table $table): Table
callback: fn (Builder $query) => $query->whereRelation('careTeam', 'user_id', auth()->id())
)
),
SelectFilter::make('my_caseloads')
->label('My Caseloads')
->options(
auth()->user()->caseloads()
->pluck('name', 'id'),
)
->searchable()
->optionsLimit(20)
->query(fn (Builder $query, array $data) => $this->caseloadFilter($query, $data)),
SelectFilter::make('all_caseloads')
->label('All Caseloads')
->options(
Caseload::all()
->pluck('name', 'id'),
)
->searchable()
->optionsLimit(20)
->query(fn (Builder $query, array $data) => $this->caseloadFilter($query, $data)),
SelectFilter::make('severity')
->options(AlertSeverity::class),
SelectFilter::make('status')
Expand Down Expand Up @@ -201,23 +180,4 @@ protected function getHeaderActions(): array
]),
];
}

protected function caseloadFilter(Builder $query, array $data): void
{
if (blank($data['value'])) {
return;
}

$caseload = Caseload::find($data['value']);

/** @var Model $model */
$model = resolve($caseload->model->class());

$query->whereIn(
'concern_id',
app(TranslateCaseloadFilters::class)
->handle($data['value'])
->pluck($model->getQualifiedKeyName()),
);
}
}
26 changes: 0 additions & 26 deletions app-modules/caseload-management/composer.json

This file was deleted.

37 changes: 0 additions & 37 deletions app-modules/caseload-management/config/permissions/api/custom.php

This file was deleted.

37 changes: 0 additions & 37 deletions app-modules/caseload-management/config/permissions/web/custom.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5be9fe6

Please sign in to comment.