@if (programmingExercise.solutionParticipation?.repositoryUri) {
- @if (!localVCEnabled) {
- Solution
- } @else {
- Solution
- }
+ Solution
}
@if (programmingExercise.solutionParticipation?.results?.length) {
@@ -118,25 +110,11 @@
@if (programmingExercise.testRepositoryUri) {
- @if (!localVCEnabled) {
- Test
- } @else {
- Test
- }
+ Test
}
- @if (!localVCEnabled) {
-
- @if (programmingExercise.templateParticipation?.buildPlanId) {
- Template
- }
- @if (programmingExercise.solutionParticipation?.buildPlanId) {
- Solution
- }
- |
- }
@@ -262,9 +240,7 @@
[jhiFeatureToggle]="FeatureToggle.ProgrammingExercises"
jhiDeleteButton
[entityTitle]="programmingExercise.title!"
- deleteQuestion="{{
- localVCEnabled ? 'artemisApp.programmingExercise.delete.questionLocalVC.single' : 'artemisApp.programmingExercise.delete.question'
- }}"
+ deleteQuestion="artemisApp.programmingExercise.delete.questionLocalVC.single"
(delete)="deleteProgrammingExercise(programmingExercise.id!, $event)"
[dialogError]="dialogError$"
[additionalChecks]="
@@ -312,9 +288,7 @@
[jhiFeatureToggle]="FeatureToggle.ProgrammingExercises"
jhiDeleteButton
[entityTitle]="'Multiple Programming Exercises'"
- deleteQuestion="{{
- localVCEnabled ? 'artemisApp.programmingExercise.delete.questionLocalVC.multiple' : 'artemisApp.exerciseActions.deleteMultipleExercisesQuestion'
- }}"
+ deleteQuestion="artemisApp.programmingExercise.delete.questionLocalVC.multiple"
(delete)="deleteMultipleProgrammingExercises(selectedExercises, $event)"
[requireConfirmationOnlyForAdditionalChecks]="true"
[additionalChecks]="
diff --git a/src/main/webapp/app/programming/manage/programming-exercise.component.ts b/src/main/webapp/app/programming/manage/programming-exercise.component.ts
index 2ab51cdafa48..520a86512ce6 100644
--- a/src/main/webapp/app/programming/manage/programming-exercise.component.ts
+++ b/src/main/webapp/app/programming/manage/programming-exercise.component.ts
@@ -33,7 +33,7 @@ import {
faWrench,
} from '@fortawesome/free-solid-svg-icons';
import { downloadZipFileFromResponse } from 'app/shared/util/download.util';
-import { PROFILE_LOCALCI, PROFILE_LOCALVC, PROFILE_THEIA } from 'app/app.constants';
+import { PROFILE_LOCALCI, PROFILE_THEIA } from 'app/app.constants';
import { SortDirective } from 'app/shared/sort/sort.directive';
import { FormsModule } from '@angular/forms';
import { SortByDirective } from 'app/shared/sort/sort-by.directive';
@@ -93,7 +93,6 @@ export class ProgrammingExerciseComponent extends ExerciseComponent implements O
FeatureToggle = FeatureToggle;
solutionParticipationType = ProgrammingExerciseParticipationType.SOLUTION;
templateParticipationType = ProgrammingExerciseParticipationType.TEMPLATE;
- localVCEnabled = true;
localCIEnabled = true;
onlineIdeEnabled = false;
@@ -129,7 +128,6 @@ export class ProgrammingExerciseComponent extends ExerciseComponent implements O
this.programmingExercises = res.body!;
this.profileService.getProfileInfo().subscribe((profileInfo) => {
this.buildPlanLinkTemplate = profileInfo.buildPlanURLTemplate;
- this.localVCEnabled = profileInfo.activeProfiles.includes(PROFILE_LOCALVC);
this.localCIEnabled = profileInfo.activeProfiles.includes(PROFILE_LOCALCI);
this.onlineIdeEnabled = profileInfo.activeProfiles.includes(PROFILE_THEIA);
});
@@ -239,16 +237,13 @@ export class ProgrammingExerciseComponent extends ExerciseComponent implements O
}
/**
- * Downloads the instructor repository. Used when the "localvc" profile is active.
- * For the local VCS, linking to an external site displaying the repository does not work.
- * Instead, the repository is downloaded.
+ * Downloads the instructor repository
*
* @param programmingExerciseId
* @param repositoryType
*/
downloadRepository(programmingExerciseId: number | undefined, repositoryType: RepositoryType) {
if (programmingExerciseId) {
- // Repository type cannot be 'AUXILIARY' as auxiliary repositories are currently not supported for the local VCS.
this.programmingExerciseService.exportInstructorRepository(programmingExerciseId, repositoryType, undefined).subscribe((response: HttpResponse ) => {
downloadZipFileFromResponse(response);
this.alertService.success('artemisApp.programmingExercise.export.successMessageRepos');
diff --git a/src/main/webapp/app/programming/shared/repository-view/repository-view.component.html b/src/main/webapp/app/programming/shared/repository-view/repository-view.component.html
index 45a8470fbeff..0a3c8add5310 100644
--- a/src/main/webapp/app/programming/shared/repository-view/repository-view.component.html
+++ b/src/main/webapp/app/programming/shared/repository-view/repository-view.component.html
@@ -34,7 +34,7 @@
}
- @if (vcsAccessLogRoute && enableVcsAccessLog && allowVcsAccessLog && localVcEnabled) {
+ @if (vcsAccessLogRoute && enableVcsAccessLog && allowVcsAccessLog) {
diff --git a/src/main/webapp/app/programming/shared/repository-view/repository-view.component.ts b/src/main/webapp/app/programming/shared/repository-view/repository-view.component.ts
index aa1059bf0954..ae01f328c376 100644
--- a/src/main/webapp/app/programming/shared/repository-view/repository-view.component.ts
+++ b/src/main/webapp/app/programming/shared/repository-view/repository-view.component.ts
@@ -14,8 +14,6 @@ import { faClockRotateLeft } from '@fortawesome/free-solid-svg-icons';
import { ProgrammingExerciseService } from 'app/programming/manage/services/programming-exercise.service';
import { ButtonComponent, ButtonSize, ButtonType } from 'app/shared/components/button.component';
import { Feedback } from 'app/assessment/shared/entities/feedback.model';
-import { PROFILE_LOCALVC } from 'app/app.constants';
-import { ProfileService } from 'app/core/layouts/profiles/shared/profile.service';
import { TranslateDirective } from 'app/shared/language/translate.directive';
import { ResultComponent } from 'app/exercise/result/result.component';
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
@@ -46,7 +44,6 @@ export class RepositoryViewComponent implements OnInit, OnDestroy {
private accountService = inject(AccountService);
domainService = inject(DomainService);
private route = inject(ActivatedRoute);
- private profileService = inject(ProfileService);
private programmingExerciseParticipationService = inject(ProgrammingExerciseParticipationService);
private programmingExerciseService = inject(ProgrammingExerciseService);
private router = inject(Router);
@@ -77,7 +74,6 @@ export class RepositoryViewComponent implements OnInit, OnDestroy {
result: Result;
resultHasInlineFeedback = false;
showInlineFeedback = false;
- localVcEnabled = true;
faClockRotateLeft = faClockRotateLeft;
participationWithLatestResultSub: Subscription;
@@ -119,9 +115,6 @@ export class RepositoryViewComponent implements OnInit, OnDestroy {
this.loadDifferentParticipation(this.repositoryType, exerciseId);
}
});
- this.profileService.getProfileInfo().subscribe((profileInfo) => {
- this.localVcEnabled = profileInfo.activeProfiles.includes(PROFILE_LOCALVC);
- });
}
/**
diff --git a/src/main/webapp/app/shared/components/code-button/code-button.component.html b/src/main/webapp/app/shared/components/code-button/code-button.component.html
index 3229f837d1d7..d91c9b1cce53 100644
--- a/src/main/webapp/app/shared/components/code-button/code-button.component.html
+++ b/src/main/webapp/app/shared/components/code-button/code-button.component.html
@@ -82,27 +82,15 @@
>{{ getHttpOrSshRepositoryUri() }}
- @if (!localVCEnabled()) {
-
-
-
- } @else {
-
-
-
- }
+
+
+
|