Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 3b927f9

Browse files
committed
Addressed some issues
1 parent 1f049c9 commit 3b927f9

10 files changed

Lines changed: 4 additions & 14 deletions

File tree

EEDU-Backend/src/main/java/de/gaz/eedu/entity/model/EntityObject.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public interface EntityObject<P>
99

1010
default boolean deleteManagedRelations() { return false; }
1111

12-
// TODO javadoc (delete safe)
1312
default boolean isDeletable()
1413
{
1514
return true;

EEDU-Backend/src/main/java/de/gaz/eedu/user/UserController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ public class UserController extends EntityController<Long, UserService, UserMode
110110
*
111111
* @param id the unique identifier of the user whose reduced data is being retrieved.
112112
* @return a {@link ResponseEntity} containing the requested {@link UserModel}.
113-
*
114-
* //TODO discuss privileges
115113
*/
116114
@GetMapping("/get/{id}/reduced")
117115
public @NotNull ResponseEntity<ReducedUserModel> getReducedData(@PathVariable @NotNull Long id)

EEDU-Backend/src/main/java/de/gaz/eedu/user/UserEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ public void setTypeGroup(@NotNull GroupEntity typeGroup)
188188

189189
@Override public boolean isAccountNonExpired()
190190
{
191-
return false; // TODO maybe implement (low priority)
191+
return false;
192192
}
193193

194194
@Override public boolean isCredentialsNonExpired()
195195
{
196-
return false; // TODO maybe implement (low priority)
196+
return false;
197197
}
198198

199199
/**

EEDU-Backend/src/main/java/de/gaz/eedu/user/UserService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ public class UserService extends EntityService<Long, UserRepository, UserEntity,
9090
entity.attachGroups(getGroupRepository().findAllById(ids).toArray(GroupEntity[]::new));
9191
return entity;
9292
})).toList()).stream().peek(user -> {
93-
//TODO remove duplicate above
9493
GroupEntity accountType = getGroupRepository().findEntity(user.getAccountType().toString()).orElseThrow();
9594
user.setTypeGroup(accountType);
9695
}).toList();

EEDU-Backend/src/main/java/de/gaz/eedu/user/verification/credentials/implementations/EmailCredential.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class EmailCredential implements Credential
1212

1313
@Override public boolean verify(@NotNull CredentialEntity credentialEntity, @NotNull String code)
1414
{
15-
//TODO REMOVE THIS IN PRODUCTION. ZERO DAY EVEN ZERO SECOND SECURITY ISSUE
16-
return true;
15+
return false;
1716
}
1817

1918
@Override public boolean enable(@NotNull CredentialEntity credentialEntity, @NotNull String code)

EEDU-Frontend/src/app/user/courses/appointment/create-appointment/create-appointment.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export class CreateAppointmentComponent {
8888

8989
this._roomService.value$.subscribe((value: RoomModel[]): void => {
9090
this._rooms = value;
91-
//TODO get rid of loading var and replace with service fetched status
9291
this.loading = false;
9392
})
9493
}

EEDU-Frontend/src/app/user/courses/appointment/create-appointment/duration-picker/duration-picker.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ export class DurationPickerComponent implements ControlValueAccessor, Validator
418418
}
419419

420420
public setDisabledState(isDisabled: boolean): void {
421-
//TODO
422421
}
423422

424423
public validate(): { invalidTime: boolean } | null {

EEDU-Frontend/src/app/user/courses/appointment/entry/assignment/assignment-create-model.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export class AssignmentCreateModel {
1717
public constructor(private _description: string, submitUntil: Date, publish: Date) {
1818
this._submitUntil = submitUntil.getTime();
1919
this._publish = publish.getTime();
20-
21-
//TODO validate millis
2220
}
2321

2422
public get submitUntil(): number {

EEDU-Frontend/src/app/user/user-list/user-list.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export class UserListComponent {
7878
return this._selected.size > 0 && !this.isSelected('all');
7979
}
8080

81-
// todo implement lazy loading
8281
protected get users(): UserModel[] {
8382
const userList: UserModel[] = this.userList();
8483

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const environment = {
22
production: true,
33
timeZone: 'Europe/Berlin',
4-
backendUrl: 'http://localhost:8080' //TODO
4+
backendUrl: 'http://localhost:8080' // This could be adjusted to another backend in production
55
};

0 commit comments

Comments
 (0)