Skip to content

Commit debcd07

Browse files
fix userinfo imageUrl
1 parent ebe7e0f commit debcd07

7 files changed

Lines changed: 7394 additions & 152 deletions

File tree

school_data_hub_flutter/lib/features/learning_support/domain/learning_support_helper.dart

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -84,32 +84,6 @@ class LearningSupportHelper {
8484
return goals;
8585
}
8686

87-
// //- TODO: Is this necessary?
88-
// static SupportGoal? getGoalForCategory(PupilProxy pupil, int goalCategoryId) {
89-
// if (pupil.supportGoals != null) {
90-
// if (pupil.supportGoals!.isNotEmpty) {
91-
// final SupportGoal? goal = pupil.supportGoals!.lastWhereOrNull(
92-
// (element) => element.supportCategoryId == goalCategoryId);
93-
// return goal;
94-
// }
95-
// return null;
96-
// }
97-
// return null;
98-
// }
99-
100-
// static SupportCategoryStatus? getCategoryStatus(
101-
// PupilProxy pupil, int goalCategoryId) {
102-
// if (pupil.supportCategoryStatuses != null) {
103-
// if (pupil.supportCategoryStatuses!.isNotEmpty) {
104-
// final SupportCategoryStatus? categoryStatus =
105-
// pupil.supportCategoryStatuses!.lastWhereOrNull(
106-
// (element) => element.supportCategoryId == goalCategoryId);
107-
// return categoryStatus;
108-
// }
109-
// }
110-
// return null;
111-
// }
112-
11387
static bool isAuthorizedToChangeStatus(SupportCategoryStatus status) {
11488
if (_sessionManager.isAdmin == true ||
11589
status.createdBy == _sessionManager.signedInUser!.userName) {

school_data_hub_flutter/lib/features/user/data/user_api_service.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class UserApiService {
7575
required int reliefTimeUnits,
7676
required int credit,
7777
required bool isTester,
78-
String? imageUrl,
7978
Set<int>? pupilsAuth,
8079
}) async {
8180
await ClientHelper.apiCall(
@@ -94,8 +93,6 @@ class UserApiService {
9493
),
9594
errorMessage: 'Benutzer aktualisieren',
9695
);
97-
// TODO: when server supports UserInfo.imageUrl, add imageUrl to the
98-
// endpoint and pass it here (client must be regenerated).
9996
}
10097

10198
/// Reset a user's password. Returns `true` on success.

school_data_hub_flutter/lib/features/user/domain/user_manager.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ typedef UpdateUserParams = ({
4646
int reliefTimeUnits,
4747
int credit,
4848
bool isTester,
49-
String? imageUrl,
5049
Set<int>? pupilsAuth,
5150
});
5251

@@ -215,7 +214,6 @@ class UserManager {
215214
reliefTimeUnits: params.reliefTimeUnits,
216215
credit: params.credit,
217216
isTester: params.isTester,
218-
imageUrl: params.imageUrl,
219217
pupilsAuth: params.pupilsAuth,
220218
);
221219
await fetchUsersCommand.runAsync();

0 commit comments

Comments
 (0)