diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html
index fd24fdc4e..7525842e9 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html
@@ -30,7 +30,7 @@
- {{user.userInfo.fullName}}
+ {{user.userInfo.full_name}}
-
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-message.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-message.ts
index 6e858cdf6..479f9492c 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-message.ts
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-message.ts
@@ -17,7 +17,7 @@
*/
export class ErrorMessage {
- errorKey: string;
+ error_key: string;
args: string[];
message: string;
}
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-result.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-result.ts
index 6203792fe..64e97659f 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-result.ts
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/error-result.ts
@@ -19,9 +19,9 @@
import {ErrorMessage} from "./error-message";
export class ErrorResult {
- errorMessages: Array
+ error_messages: Array
constructor(errorMessages: Array) {
- this.errorMessages = errorMessages;
+ this.error_messages = errorMessages;
}
}
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/operation.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/operation.ts
index eded8ae09..af5138c44 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/operation.ts
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/operation.ts
@@ -19,6 +19,6 @@
export class Operation {
name: string;
description: string;
- descriptionKey: string;
+ description_key: string;
permanent: boolean;
}
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/pagination-info.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/pagination-info.ts
index 87b78e093..4d5c758e8 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/pagination-info.ts
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/pagination-info.ts
@@ -17,7 +17,7 @@
*/
export class PaginationInfo {
- totalCount : number;
+ total_count : number;
offset: number;
limit: number;
}
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/permission.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/permission.ts
index 53d00cf8a..a5b3d0f1a 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/permission.ts
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/permission.ts
@@ -23,7 +23,7 @@ export class Permission {
name: string;
description: string;
permanent: boolean;
- descriptionKey: string;
+ description_key: string;
operation: Operation;
resource: Resource;
}
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/user-info.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/user-info.ts
index 0ac142b42..653a4919b 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/user-info.ts
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/user-info.ts
@@ -19,17 +19,17 @@
export class UserInfo {
user_id:string;
id:string;
- fullName:string;
+ full_name:string;
email:string;
validated:boolean;
locked:boolean;
- passwordChangeRequired:boolean;
+ password_change_required:boolean;
permanent:boolean;
- timestampAccountCreation:Date;
- timestampLastLogin:Date;
- timestampLastPasswordChange:Date;
- readOnly:boolean;
- userManagerId:string;
- validationToken:string;
+ timestamp_account_creation:Date;
+ timestamp_last_login:Date;
+ timestamp_last_password_change:Date;
+ read_only:boolean;
+ user_manager_id:string;
+ validation_token:string;
language:string;
}
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/paginated-entities/paginated-entities.component.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/paginated-entities/paginated-entities.component.ts
index f563cec4d..a2b967abe 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/paginated-entities/paginated-entities.component.ts
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/general/paginated-entities/paginated-entities.component.ts
@@ -132,7 +132,7 @@ export class PaginatedEntitiesComponent implements OnInit, FieldToggle, After
mergeMap((params: { search: string, page: number }) => {
return this.service(params.search, (params.page - 1) * this.pageSize, this.pageSize, this.sortField, this.sortOrder);
}), share());
- this.total$ = source.pipe(pluck('pagination', 'totalCount'));
+ this.total$ = source.pipe(pluck('pagination', 'total_count'));
this.items$ = source.pipe(pluck('data'));
}
@@ -189,6 +189,7 @@ export class PaginatedEntitiesComponent implements OnInit, FieldToggle, After
this.sortFieldChange.emit(this.sortField);
}
if (sortFieldChanged || sortOrderChanged) {
+ this.page = 1;
this.changePage(1);
}
}
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/user/users/manage-users-list/manage-users-list.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/user/users/manage-users-list/manage-users-list.component.html
index 5293a0ff8..b64f18270 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/user/users/manage-users-list/manage-users-list.component.html
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/user/users/manage-users-list/manage-users-list.component.html
@@ -18,43 +18,45 @@
-->
+ #parent>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
- |
-
- |
- {{'users.list.table.head.lastLogin' | translate}} |
-
- {{'users.list.table.head.lastPwChange' | translate}} |
-
-
-
-
- {{user.user_id}} |
- {{user.fullName}} |
- {{user.email}} |
- |
- |
- |
- {{user.timestampLastLogin | date:'yyyy-MM-ddTHH:mm:ss'}} |
- {{user.timestampAccountCreation | date : 'yyyy-MM-ddTHH:mm:ss'}} |
- {{user.timestampLastPasswordChange| date : 'yyyy-MM-ddTHH:mm:ss'}} |
-
-
-
+ [ngbTooltip]="heads.validated" [attr.aria-label]="heads.validated">
+
+
+
+
+
+
+
+
+
+
+
+ {{user.user_id}} |
+ {{user.full_name}} |
+ {{user.email}} |
+ |
+ |
+ |
+ {{user.timestamp_last_login | date:'yyyy-MM-ddTHH:mm:ss'}} |
+ {{user.timestamp_account_creation | date : 'yyyy-MM-ddTHH:mm:ss'}} |
+ {{user.timestamp_last_password_change| date : 'yyyy-MM-ddTHH:mm:ss'}} |
+
+
+
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/assets/i18n/en.json b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/assets/i18n/en.json
index f54e4d557..bfb2709a4 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/assets/i18n/en.json
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/assets/i18n/en.json
@@ -57,13 +57,13 @@
"id": "ID",
"user_id": "Login Name",
"email": "Email",
- "fullName": "Name",
+ "full_name": "Name",
"validated": "User Validated",
"locked": "User Locked",
"pwchange": "Password Change Required",
"lastLogin": "Last Login",
"created": "Created",
- "lastPwChange": "Last Password Change"
+ "last_password_change": "Last Password Change"
}
}
},
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/generate-users.sh b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/generate-users.sh
index 4f52aaf66..8e2245094 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/generate-users.sh
+++ b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/generate-users.sh
@@ -21,7 +21,7 @@
BASE_URL="http://localhost:8080/archiva"
USER_NAME="admin"
PASSWD="admin456"
-USERS=25
+USERS=50
#Authenticate
TOKEN=$(curl -s -X POST "${BASE_URL}/api/v2/redback/auth/authenticate" -H "accept: application/json" -H "Content-Type: application/json" \
@@ -40,7 +40,8 @@ while [ $NUM -ge 0 ]; do
curl -s -w ' - %{http_code}' -X POST "${BASE_URL}/api/v2/redback/users" -H "accept: application/json" \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
- -d "{\"user_id\":\"test${SUFFIX}\",\"fullName\":\"Test User ${SUFFIX}\",\"email\":\"test${SUFFIX}@test.org\",\"validated\":true,\"locked\":false,\"passwordChangeRequired\":false,\"password\":\"test123\"}"
+ -d "{\"user_id\":\"test${SUFFIX}\",\"full_name\":\"Test User ${SUFFIX}\",\"email\":\"test${SUFFIX}@test.org\",\"validated\":true,\"locked\":false,\"password_change_required\":false,\"password\":\"test123\"}"
NUM=$((NUM-1))
echo " "
+ sleep 0.2 # Sleeping to get different creation timestamps
done
\ No newline at end of file