Skip to content

Commit

Permalink
[ADVAPP-1154]: Introduce the ability to create confidential interacti…
Browse files Browse the repository at this point in the history
…ons and to share those with other users or teams of users (#1261)

* feat(interaction): add confidentiality features to interactions

* chore: fix enforcement of copyright on all files

* chore: fix code style

* feat(interaction): enhance confidentiality features with new models and scopes

* chore: fix enforcement of copyright on all files

* feat(interaction): add icon representation for confidential interactions in infolist and table

* feat(interaction): update confidential interaction icons and enhance relationship handling

* feat(interaction): add relationships to InteractionConfidentialTeam model and enhance access control in ListInteractions tests

* chore: fix code style

* feat(interaction): implement ConfidentialInteractionFeatureFlag and update access control for confidential interactions

* chore: fix enforcement of copyright on all files

* feat(activity-feed): refactor button structure and improve loading indicator handling in activity feed widget

* feat(interaction): improve access control logic in InteractionConfidentialScope

* feat(interaction): update factory implementations and improve interaction confidentiality handling

* Fix factory issues

Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>

* changes to confidential display

Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>

---------

Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
Co-authored-by: amit-canyon <amit-canyon@users.noreply.github.com>
Co-authored-by: Orrison <Orrison@users.noreply.github.com>
Co-authored-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
  • Loading branch information
4 people authored Jan 29, 2025
1 parent 33af038 commit 844b733
Show file tree
Hide file tree
Showing 14 changed files with 741 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php

/*
<COPYRIGHT>
Copyright © 2016-2025, Canyon GBS LLC. All rights reserved.
Advising App™ is licensed under the Elastic License 2.0. For more details,
see https://github.com/canyongbs/advisingapp/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 Advising 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>
*/

namespace AdvisingApp\Interaction\Database\Factories;

use AdvisingApp\Interaction\Models\Interaction;
use AdvisingApp\Interaction\Models\InteractionConfidentialTeam;
use AdvisingApp\Team\Models\Team;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
* @extends Factory<InteractionConfidentialTeam>
*/
class InteractionConfidentialTeamFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'interaction_id' => Interaction::factory(),
'team_id' => Team::factory(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php

/*
<COPYRIGHT>
Copyright © 2016-2025, Canyon GBS LLC. All rights reserved.
Advising App™ is licensed under the Elastic License 2.0. For more details,
see https://github.com/canyongbs/advisingapp/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 Advising 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>
*/

namespace AdvisingApp\Interaction\Database\Factories;

use AdvisingApp\Interaction\Models\Interaction;
use AdvisingApp\Interaction\Models\InteractionConfidentialUser;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
* @extends Factory<InteractionConfidentialUser>
*/
class InteractionConfidentialUserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'interaction_id' => Interaction::factory(),
'user_id' => User::factory(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php

/*
<COPYRIGHT>
Copyright © 2016-2025, Canyon GBS LLC. All rights reserved.
Advising App™ is licensed under the Elastic License 2.0. For more details,
see https://github.com/canyongbs/advisingapp/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 Advising 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>
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
public function up(): void
{
Schema::table('interactions', function (Blueprint $table) {
$table->boolean('is_confidential')->default(false);
});
}

public function down(): void
{
Schema::table('interactions', function (Blueprint $table) {
$table->dropColumn('is_confidential');
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php

/*
<COPYRIGHT>
Copyright © 2016-2025, Canyon GBS LLC. All rights reserved.
Advising App™ is licensed under the Elastic License 2.0. For more details,
see https://github.com/canyongbs/advisingapp/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 Advising 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>
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
public function up(): void
{
Schema::create('interaction_confidential_users', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->foreignUuid('interaction_id')->constrained()->cascadeOnDelete();
$table->foreignUuid('user_id')->constrained()->cascadeOnDelete();
$table->timestamps();
});
}

public function down(): void
{
Schema::dropIfExists('interaction_confidential_users');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php

/*
<COPYRIGHT>
Copyright © 2016-2025, Canyon GBS LLC. All rights reserved.
Advising App™ is licensed under the Elastic License 2.0. For more details,
see https://github.com/canyongbs/advisingapp/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 Advising 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>
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
public function up(): void
{
Schema::create('interaction_confidential_teams', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->foreignUuid('interaction_id')->constrained()->cascadeOnDelete();
$table->foreignUuid('team_id')->constrained()->cascadeOnDelete();
$table->timestamps();
});
}

public function down(): void
{
Schema::dropIfExists('interaction_confidential_teams');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php

/*
<COPYRIGHT>
Copyright © 2016-2025, Canyon GBS LLC. All rights reserved.
Advising App™ is licensed under the Elastic License 2.0. For more details,
see https://github.com/canyongbs/advisingapp/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 Advising 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>
*/

use App\Features\ConfidentialInteractionFeatureFlag;
use Illuminate\Database\Migrations\Migration;

return new class () extends Migration {
public function up(): void
{
ConfidentialInteractionFeatureFlag::activate();
}

public function down(): void
{
ConfidentialInteractionFeatureFlag::deactivate();
}
};
Loading

0 comments on commit 844b733

Please sign in to comment.