Skip to content

Commit 460efed

Browse files
clean up merge artifacts
1 parent d9672e5 commit 460efed

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

src/main/java/de/tum/cit/aet/artemis/lecture/web/LectureUnitResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public ResponseEntity<Void> ingestLectureUnit(@PathVariable long lectureId, @Pat
224224
throw new BadRequestAlertException("Requested lecture unit is not part of the specified lecture", ENTITY_NAME, "lectureIdMismatch");
225225
}
226226
if (lectureUnit.getLecture().isTutorialLecture()) {
227-
return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();
227+
throw new BadRequestAlertException("Units of tutorial lectures can not be ingested", ENTITY_NAME, "tutorialLectureIngestion");
228228
}
229229
if (!(lectureUnit instanceof AttachmentVideoUnit)) {
230230
throw new BadRequestAlertException("Only attachment video units can be ingested into Pyris", ENTITY_NAME, "invalidLectureUnitType");

src/main/webapp/app/lecture/manage/lecture-update/lecture-update.component.ts

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
22
import { Component, OnDestroy, OnInit, computed, effect, inject, model, signal, viewChild } from '@angular/core';
3+
import { Observable, Subscription } from 'rxjs';
34
import { FormsModule } from '@angular/forms';
45
import { ActivatedRoute, Router } from '@angular/router';
5-
import { Lecture } from 'app/lecture/shared/entities/lecture.model';
6-
import { faCircleInfo } from '@fortawesome/free-solid-svg-icons';
76
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
8-
import { faBan, faPuzzlePiece, faQuestionCircle, faSave } from '@fortawesome/free-solid-svg-icons';
7+
import { faBan, faCircleInfo, faPuzzlePiece, faQuestionCircle, faSave } from '@fortawesome/free-solid-svg-icons';
98
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
109
import { captureException } from '@sentry/angular';
11-
import { CalendarService } from 'app/core/calendar/shared/service/calendar.service';
12-
import { LectureUpdatePeriodComponent } from 'app/lecture/manage/lecture-period/lecture-period.component';
13-
import { LectureUpdateUnitsComponent } from 'app/lecture/manage/lecture-units/lecture-units.component';
14-
import { DocumentationButtonComponent, DocumentationType } from 'app/shared/components/buttons/documentation-button/documentation-button.component';
1510
import { ACCEPTED_FILE_EXTENSIONS_FILE_BROWSER, ALLOWED_FILE_EXTENSIONS_HUMAN_READABLE } from 'app/shared/constants/file-extensions.constants';
16-
import { FormDateTimePickerComponent } from 'app/shared/date-time-picker/date-time-picker.component';
17-
import { FormSectionStatus, FormStatusBarComponent } from 'app/shared/form/form-status-bar/form-status-bar.component';
18-
import { TranslateDirective } from 'app/shared/language/translate.directive';
19-
import { MarkdownEditorMonacoComponent } from 'app/shared/markdown-editor/monaco/markdown-editor-monaco.component';
2011
import { FormulaAction } from 'app/shared/monaco-editor/model/actions/formula.action';
2112
import { ArtemisTranslatePipe } from 'app/shared/pipes/artemis-translate.pipe';
22-
import { AlertService } from 'app/shared/service/alert.service';
2313
import { getCurrentLocaleSignal, onError } from 'app/shared/util/global.utils';
24-
import { ArtemisNavigationUtilService } from 'app/shared/util/navigation.utils';
2514
import dayjs, { Dayjs } from 'dayjs/esm';
2615
import cloneDeep from 'lodash-es/cloneDeep';
27-
import { SelectButtonModule } from 'primeng/selectbutton';
16+
import { TranslateDirective } from 'app/shared/language/translate.directive';
17+
import { FormDateTimePickerComponent } from 'app/shared/date-time-picker/date-time-picker.component';
18+
import { FormSectionStatus, FormStatusBarComponent } from 'app/shared/form/form-status-bar/form-status-bar.component';
19+
import { LectureTitleChannelNameComponent } from '../lecture-title-channel-name/lecture-title-channel-name.component';
2820
import { LectureSeriesCreateComponent } from 'app/lecture/manage/lecture-series-create/lecture-series-create.component';
29-
import { TranslateService } from '@ngx-translate/core';
21+
import { MarkdownEditorMonacoComponent } from 'app/shared/markdown-editor/monaco/markdown-editor-monaco.component';
22+
import { LectureUpdatePeriodComponent } from 'app/lecture/manage/lecture-period/lecture-period.component';
23+
import { LectureUpdateUnitsComponent } from 'app/lecture/manage/lecture-units/lecture-units.component';
24+
import { DocumentationButtonComponent, DocumentationType } from 'app/shared/components/buttons/documentation-button/documentation-button.component';
25+
import { SelectButtonModule } from 'primeng/selectbutton';
3026
import { CheckboxModule } from 'primeng/checkbox';
3127
import { TooltipModule } from 'primeng/tooltip';
32-
import { Observable, Subscription } from 'rxjs';
33-
import { LectureTitleChannelNameComponent } from '../lecture-title-channel-name/lecture-title-channel-name.component';
28+
import { TranslateService } from '@ngx-translate/core';
29+
import { CalendarService } from 'app/core/calendar/shared/service/calendar.service';
3430
import { LectureService } from '../services/lecture.service';
31+
import { AlertService } from 'app/shared/service/alert.service';
32+
import { ArtemisNavigationUtilService } from 'app/shared/util/navigation.utils';
33+
import { Lecture } from 'app/lecture/shared/entities/lecture.model';
3534

3635
export enum LectureCreationMode {
3736
SINGLE = 'single',

0 commit comments

Comments
 (0)