Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Harbor
Commits
cd66899a
Unverified
Commit
cd66899a
authored
4 years ago
by
Will Sun
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #12417 from AllForNothing/rename-role
Rename project role for UI
parents
1637e6a5
706c6bdb
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
src/portal/src/app/project/helm-chart/helm-chart-detail/chart-detail/chart-detail.component.spec.ts
+1
-1
...-chart-detail/chart-detail/chart-detail.component.spec.ts
src/portal/src/app/project/member/add-member/add-member.component.html
+2
-2
...c/app/project/member/add-member/add-member.component.html
src/portal/src/app/project/member/member.component.html
+1
-1
src/portal/src/app/project/member/member.component.html
src/portal/src/app/project/project-detail/project-detail.component.spec.ts
+1
-1
...p/project/project-detail/project-detail.component.spec.ts
src/portal/src/app/project/repository/artifact-list-page/artifact-list-page.component.spec.ts
+1
-1
...y/artifact-list-page/artifact-list-page.component.spec.ts
src/portal/src/app/project/repository/artifact/artifact-summary.component.spec.ts
+1
-1
...ct/repository/artifact/artifact-summary.component.spec.ts
src/portal/src/app/project/summary/summary.component.html
+1
-1
src/portal/src/app/project/summary/summary.component.html
src/portal/src/app/project/summary/summary.component.spec.ts
+1
-1
src/portal/src/app/project/summary/summary.component.spec.ts
src/portal/src/app/shared/shared.const.ts
+5
-5
src/portal/src/app/shared/shared.const.ts
src/portal/src/i18n/lang/en-us-lang.json
+3
-3
src/portal/src/i18n/lang/en-us-lang.json
src/portal/src/i18n/lang/es-es-lang.json
+3
-3
src/portal/src/i18n/lang/es-es-lang.json
src/portal/src/i18n/lang/fr-fr-lang.json
+3
-3
src/portal/src/i18n/lang/fr-fr-lang.json
src/portal/src/i18n/lang/pt-br-lang.json
+3
-3
src/portal/src/i18n/lang/pt-br-lang.json
src/portal/src/i18n/lang/tr-tr-lang.json
+3
-3
src/portal/src/i18n/lang/tr-tr-lang.json
src/portal/src/i18n/lang/zh-cn-lang.json
+3
-3
src/portal/src/i18n/lang/zh-cn-lang.json
src/portal/src/i18n/lang/zh-tw-lang.json
+3
-3
src/portal/src/i18n/lang/zh-tw-lang.json
src/portal/src/lib/entities/shared.const.ts
+2
-2
src/portal/src/lib/entities/shared.const.ts
tests/resources/Harbor-Pages/Project-Members.robot
+3
-3
tests/resources/Harbor-Pages/Project-Members.robot
tests/resources/TestCaseBody.robot
+2
-2
tests/resources/TestCaseBody.robot
with
42 additions
and
42 deletions
+42
-42
src/portal/src/app/project/helm-chart/helm-chart-detail/chart-detail/chart-detail.component.spec.ts
+
1
-
1
View file @
cd66899a
...
@@ -137,7 +137,7 @@ describe('ChartDetailComponent', () => {
...
@@ -137,7 +137,7 @@ describe('ChartDetailComponent', () => {
"
current_user_role_id
"
:
1
,
"
current_user_role_id
"
:
1
,
"
has_project_admin_role
"
:
true
,
"
has_project_admin_role
"
:
true
,
"
is_member
"
:
true
,
"
is_member
"
:
true
,
"
role_name
"
:
'
ma
st
er
'
,
"
role_name
"
:
'
ma
intain
er
'
,
"
repo_count
"
:
0
,
"
repo_count
"
:
0
,
"
chart_count
"
:
1
,
"
chart_count
"
:
1
,
"
registry_id
"
:
0
,
"
registry_id
"
:
0
,
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/project/member/add-member/add-member.component.html
+
2
-
2
View file @
cd66899a
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
<label
for=
"checkrads_project_admin"
>
{{'MEMBER.PROJECT_ADMIN' | translate}}
</label>
<label
for=
"checkrads_project_admin"
>
{{'MEMBER.PROJECT_ADMIN' | translate}}
</label>
</clr-radio-wrapper>
</clr-radio-wrapper>
<clr-radio-wrapper>
<clr-radio-wrapper>
<input
clrRadio
type=
"radio"
name=
"member_role"
id=
"checkrads_project_ma
st
er"
[value]=
4
[(ngModel)]=
"member.role_id"
>
<input
clrRadio
type=
"radio"
name=
"member_role"
id=
"checkrads_project_ma
intain
er"
[value]=
4
[(ngModel)]=
"member.role_id"
>
<label
for=
"checkrads_project_ma
st
er"
>
{{'MEMBER.PROJECT_MA
ST
ER' | translate}}
</label>
<label
for=
"checkrads_project_ma
intain
er"
>
{{'MEMBER.PROJECT_MA
INTAIN
ER' | translate}}
</label>
</clr-radio-wrapper>
</clr-radio-wrapper>
<clr-radio-wrapper>
<clr-radio-wrapper>
<input
clrRadio
type=
"radio"
name=
"member_role"
id=
"checkrads_developer"
[value]=
2
[(ngModel)]=
"member.role_id"
>
<input
clrRadio
type=
"radio"
name=
"member_role"
id=
"checkrads_developer"
[value]=
2
[(ngModel)]=
"member.role_id"
>
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/project/member/member.component.html
+
1
-
1
View file @
cd66899a
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<clr-dropdown-menu
*clrIfOpen
>
<clr-dropdown-menu
*clrIfOpen
>
<label
class=
"dropdown-header"
>
{{'MEMBER.SET_ROLE' | translate}}
</label>
<label
class=
"dropdown-header"
>
{{'MEMBER.SET_ROLE' | translate}}
</label>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 1)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.PROJECT_ADMIN' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 1)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.PROJECT_ADMIN' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 4)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.PROJECT_MA
ST
ER' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 4)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.PROJECT_MA
INTAIN
ER' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 2)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.DEVELOPER' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 2)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.DEVELOPER' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 3)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.GUEST' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 3)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.GUEST' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 5)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.LIMITED_GUEST' | translate}}
</button>
<button
clrDropdownItem
(click)=
"changeMembersRole(selectedRow, 5)"
[disabled]=
"!(selectedRow.length && hasUpdateMemberPermission) || onlySelf"
>
{{'MEMBER.LIMITED_GUEST' | translate}}
</button>
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/project/project-detail/project-detail.component.spec.ts
+
1
-
1
View file @
cd66899a
...
@@ -57,7 +57,7 @@ describe('ProjectDetailComponent', () => {
...
@@ -57,7 +57,7 @@ describe('ProjectDetailComponent', () => {
data
:
of
({
data
:
of
({
projectResolver
:
{
projectResolver
:
{
ismember
:
true
,
ismember
:
true
,
role_name
:
'
ma
st
er
'
,
role_name
:
'
ma
intain
er
'
,
}
}
})
})
};
};
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/project/repository/artifact-list-page/artifact-list-page.component.spec.ts
+
1
-
1
View file @
cd66899a
...
@@ -61,7 +61,7 @@ describe('ArtifactListPageComponent', () => {
...
@@ -61,7 +61,7 @@ describe('ArtifactListPageComponent', () => {
data
:
of
({
data
:
of
({
projectResolver
:
{
projectResolver
:
{
ismember
:
true
,
ismember
:
true
,
role_name
:
'
ma
st
er
'
,
role_name
:
'
ma
intain
er
'
,
}
}
}),
}),
params
:
{
params
:
{
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/project/repository/artifact/artifact-summary.component.spec.ts
+
1
-
1
View file @
cd66899a
...
@@ -51,7 +51,7 @@ describe('ArtifactSummaryComponent', () => {
...
@@ -51,7 +51,7 @@ describe('ArtifactSummaryComponent', () => {
data
:
of
({
data
:
of
({
projectResolver
:
{
projectResolver
:
{
ismember
:
true
,
ismember
:
true
,
role_name
:
'
ma
st
er
'
,
role_name
:
'
ma
intain
er
'
,
}
}
})
})
};
};
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/project/summary/summary.component.html
+
1
-
1
View file @
cd66899a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<h5
class=
"mt-0 width-7-5"
>
{{'SUMMARY.PROJECT_MEMBER' | translate}}
</h5>
<h5
class=
"mt-0 width-7-5"
>
{{'SUMMARY.PROJECT_MEMBER' | translate}}
</h5>
<ul
class=
"list-unstyled"
>
<ul
class=
"list-unstyled"
>
<li>
{{ summaryInformation?.project_admin_count }} {{'SUMMARY.ADMIN' | translate}}
</li>
<li>
{{ summaryInformation?.project_admin_count }} {{'SUMMARY.ADMIN' | translate}}
</li>
<li>
{{ summaryInformation?.ma
st
er_count }} {{'SUMMARY.MA
ST
ER' | translate}}
</li>
<li>
{{ summaryInformation?.ma
intain
er_count }} {{'SUMMARY.MA
INTAIN
ER' | translate}}
</li>
<li>
{{ summaryInformation?.developer_count }} {{'SUMMARY.DEVELOPER' | translate}}
</li>
<li>
{{ summaryInformation?.developer_count }} {{'SUMMARY.DEVELOPER' | translate}}
</li>
<li>
{{ summaryInformation?.guest_count }} {{'SUMMARY.GUEST' | translate}}
</li>
<li>
{{ summaryInformation?.guest_count }} {{'SUMMARY.GUEST' | translate}}
</li>
<li>
{{ summaryInformation?.limited_guest_count }} {{'SUMMARY.LIMITED_GUEST' | translate}}
</li>
<li>
{{ summaryInformation?.limited_guest_count }} {{'SUMMARY.LIMITED_GUEST' | translate}}
</li>
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/project/summary/summary.component.spec.ts
+
1
-
1
View file @
cd66899a
...
@@ -59,7 +59,7 @@ describe('SummaryComponent', () => {
...
@@ -59,7 +59,7 @@ describe('SummaryComponent', () => {
repo_count
:
0
,
repo_count
:
0
,
chart_count
:
0
,
chart_count
:
0
,
project_admin_count
:
1
,
project_admin_count
:
1
,
ma
st
er_count
:
0
,
ma
intain
er_count
:
0
,
developer_count
:
0
developer_count
:
0
};
};
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/app/shared/shared.const.ts
+
5
-
5
View file @
cd66899a
...
@@ -66,13 +66,13 @@ export const RoleInfo = {
...
@@ -66,13 +66,13 @@ export const RoleInfo = {
1
:
"
MEMBER.PROJECT_ADMIN
"
,
1
:
"
MEMBER.PROJECT_ADMIN
"
,
2
:
"
MEMBER.DEVELOPER
"
,
2
:
"
MEMBER.DEVELOPER
"
,
3
:
"
MEMBER.GUEST
"
,
3
:
"
MEMBER.GUEST
"
,
4
:
"
MEMBER.PROJECT_MA
ST
ER
"
,
4
:
"
MEMBER.PROJECT_MA
INTAIN
ER
"
,
5
:
"
MEMBER.LIMITED_GUEST
"
,
5
:
"
MEMBER.LIMITED_GUEST
"
,
};
};
export
const
RoleMapping
=
{
export
const
RoleMapping
=
{
"
projectAdmin
"
:
"
MEMBER.PROJECT_ADMIN
"
,
"
projectAdmin
"
:
"
MEMBER.PROJECT_ADMIN
"
,
"
ma
st
er
"
:
"
MEMBER.PROJECT_MA
ST
ER
"
,
"
ma
intain
er
"
:
"
MEMBER.PROJECT_MA
INTAIN
ER
"
,
"
developer
"
:
"
MEMBER.DEVELOPER
"
,
"
developer
"
:
"
MEMBER.DEVELOPER
"
,
"
guest
"
:
"
MEMBER.GUEST
"
,
"
guest
"
:
"
MEMBER.GUEST
"
,
"
limitedGuest
"
:
"
MEMBER.LIMITED_GUEST
"
,
"
limitedGuest
"
:
"
MEMBER.LIMITED_GUEST
"
,
...
@@ -82,13 +82,13 @@ export const ProjectRoles = [
...
@@ -82,13 +82,13 @@ export const ProjectRoles = [
{
id
:
1
,
value
:
"
MEMBER.PROJECT_ADMIN
"
},
{
id
:
1
,
value
:
"
MEMBER.PROJECT_ADMIN
"
},
{
id
:
2
,
value
:
"
MEMBER.DEVELOPER
"
},
{
id
:
2
,
value
:
"
MEMBER.DEVELOPER
"
},
{
id
:
3
,
value
:
"
MEMBER.GUEST
"
},
{
id
:
3
,
value
:
"
MEMBER.GUEST
"
},
{
id
:
4
,
value
:
"
MEMBER.PROJECT_MA
ST
ER
"
},
{
id
:
4
,
value
:
"
MEMBER.PROJECT_MA
INTAIN
ER
"
},
{
id
:
5
,
value
:
"
MEMBER.LIMITED_GUEST
"
},
{
id
:
5
,
value
:
"
MEMBER.LIMITED_GUEST
"
},
];
];
export
enum
Roles
{
export
enum
Roles
{
PROJECT_ADMIN
=
1
,
PROJECT_ADMIN
=
1
,
PROJECT_MA
ST
ER
=
4
,
PROJECT_MA
INTAIN
ER
=
4
,
DEVELOPER
=
2
,
DEVELOPER
=
2
,
GUEST
=
3
,
GUEST
=
3
,
LIMITED_GUEST
=
5
,
LIMITED_GUEST
=
5
,
...
@@ -99,4 +99,4 @@ export enum ResourceType {
...
@@ -99,4 +99,4 @@ export enum ResourceType {
REPOSITORY
=
1
,
REPOSITORY
=
1
,
CHART_VERSION
=
2
,
CHART_VERSION
=
2
,
REPOSITORY_TAG
=
3
,
REPOSITORY_TAG
=
3
,
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/portal/src/i18n/lang/en-us-lang.json
+
3
-
3
View file @
cd66899a
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
"ROLE"
:
"Role"
,
"ROLE"
:
"Role"
,
"SYS_ADMIN"
:
"System Admin"
,
"SYS_ADMIN"
:
"System Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_MA
ST
ER"
:
"Ma
st
er"
,
"PROJECT_MA
INTAIN
ER"
:
"Ma
intain
er"
,
"DEVELOPER"
:
"Developer"
,
"DEVELOPER"
:
"Developer"
,
"GUEST"
:
"Guest"
,
"GUEST"
:
"Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -439,7 +439,7 @@
...
@@ -439,7 +439,7 @@
"ROLE"
:
"Role"
,
"ROLE"
:
"Role"
,
"SYS_ADMIN"
:
"System Admin"
,
"SYS_ADMIN"
:
"System Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_MA
ST
ER"
:
"Ma
st
er"
,
"PROJECT_MA
INTAIN
ER"
:
"Ma
intain
er"
,
"DEVELOPER"
:
"Developer"
,
"DEVELOPER"
:
"Developer"
,
"GUEST"
:
"Guest"
,
"GUEST"
:
"Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -778,7 +778,7 @@
...
@@ -778,7 +778,7 @@
"ARTIFACT_COUNT"
:
"Artifact count"
,
"ARTIFACT_COUNT"
:
"Artifact count"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"ADMIN"
:
"Admin(s)"
,
"ADMIN"
:
"Admin(s)"
,
"MA
ST
ER"
:
"Ma
st
er(s)"
,
"MA
INTAIN
ER"
:
"Ma
intain
er(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"GUEST"
:
"Guest(s)"
,
"GUEST"
:
"Guest(s)"
,
"LIMITED_GUEST"
:
"Limited guest(s)"
"LIMITED_GUEST"
:
"Limited guest(s)"
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/i18n/lang/es-es-lang.json
+
3
-
3
View file @
cd66899a
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
"ROLE"
:
"Rol"
,
"ROLE"
:
"Rol"
,
"SYS_ADMIN"
:
"Administrador del sistema"
,
"SYS_ADMIN"
:
"Administrador del sistema"
,
"PROJECT_ADMIN"
:
"Administrador del proyecto"
,
"PROJECT_ADMIN"
:
"Administrador del proyecto"
,
"PROJECT_MA
ST
ER"
:
"Mantenedor"
,
"PROJECT_MA
INTAIN
ER"
:
"Mantenedor"
,
"DEVELOPER"
:
"Desarrollador"
,
"DEVELOPER"
:
"Desarrollador"
,
"GUEST"
:
"Invitado"
,
"GUEST"
:
"Invitado"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -439,7 +439,7 @@
...
@@ -439,7 +439,7 @@
"ROLE"
:
"Role"
,
"ROLE"
:
"Role"
,
"SYS_ADMIN"
:
"System Admin"
,
"SYS_ADMIN"
:
"System Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_MA
ST
ER"
:
"Ma
st
er"
,
"PROJECT_MA
INTAIN
ER"
:
"Ma
intain
er"
,
"DEVELOPER"
:
"Developer"
,
"DEVELOPER"
:
"Developer"
,
"GUEST"
:
"Guest"
,
"GUEST"
:
"Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -779,7 +779,7 @@
...
@@ -779,7 +779,7 @@
"ARTIFACT_COUNT"
:
"Artifact count"
,
"ARTIFACT_COUNT"
:
"Artifact count"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"ADMIN"
:
"Admin(s)"
,
"ADMIN"
:
"Admin(s)"
,
"MA
ST
ER"
:
"Ma
st
er(s)"
,
"MA
INTAIN
ER"
:
"Ma
intain
er(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"GUEST"
:
"Guest(s)"
,
"GUEST"
:
"Guest(s)"
,
"LIMITED_GUEST"
:
"Limited guest(s)"
"LIMITED_GUEST"
:
"Limited guest(s)"
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/i18n/lang/fr-fr-lang.json
+
3
-
3
View file @
cd66899a
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
"USER_TYPE"
:
"User"
,
"USER_TYPE"
:
"User"
,
"SYS_ADMIN"
:
"System Admin"
,
"SYS_ADMIN"
:
"System Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_MA
ST
ER"
:
"préposé à la maintenance"
,
"PROJECT_MA
INTAIN
ER"
:
"préposé à la maintenance"
,
"DEVELOPER"
:
"Développeur"
,
"DEVELOPER"
:
"Développeur"
,
"GUEST"
:
"Invité"
,
"GUEST"
:
"Invité"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -431,7 +431,7 @@
...
@@ -431,7 +431,7 @@
"ROLE"
:
"Role"
,
"ROLE"
:
"Role"
,
"SYS_ADMIN"
:
"System Admin"
,
"SYS_ADMIN"
:
"System Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_MA
ST
ER"
:
"Ma
st
er"
,
"PROJECT_MA
INTAIN
ER"
:
"Ma
intain
er"
,
"DEVELOPER"
:
"Developer"
,
"DEVELOPER"
:
"Developer"
,
"GUEST"
:
"Guest"
,
"GUEST"
:
"Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -764,7 +764,7 @@
...
@@ -764,7 +764,7 @@
"ARTIFACT_COUNT"
:
"Artifact count"
,
"ARTIFACT_COUNT"
:
"Artifact count"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"ADMIN"
:
"Admin(s)"
,
"ADMIN"
:
"Admin(s)"
,
"MA
ST
ER"
:
"Ma
st
er(s)"
,
"MA
INTAIN
ER"
:
"Ma
intain
er(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"GUEST"
:
"Guest(s)"
,
"GUEST"
:
"Guest(s)"
,
"LIMITED_GUEST"
:
"Limited guest(s)"
"LIMITED_GUEST"
:
"Limited guest(s)"
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/i18n/lang/pt-br-lang.json
+
3
-
3
View file @
cd66899a
...
@@ -280,7 +280,7 @@
...
@@ -280,7 +280,7 @@
"ROLE"
:
"Função"
,
"ROLE"
:
"Função"
,
"SYS_ADMIN"
:
"Administrador do Sistema"
,
"SYS_ADMIN"
:
"Administrador do Sistema"
,
"PROJECT_ADMIN"
:
"Administrador do Projeto"
,
"PROJECT_ADMIN"
:
"Administrador do Projeto"
,
"PROJECT_MA
ST
ER"
:
"Mantenedor"
,
"PROJECT_MA
INTAIN
ER"
:
"Mantenedor"
,
"DEVELOPER"
:
"Desenvolvedor"
,
"DEVELOPER"
:
"Desenvolvedor"
,
"GUEST"
:
"Visitante"
,
"GUEST"
:
"Visitante"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -387,7 +387,7 @@
...
@@ -387,7 +387,7 @@
"ROLE"
:
"Role"
,
"ROLE"
:
"Role"
,
"SYS_ADMIN"
:
"System Admin"
,
"SYS_ADMIN"
:
"System Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_ADMIN"
:
"Project Admin"
,
"PROJECT_MA
ST
ER"
:
"Ma
st
er"
,
"PROJECT_MA
INTAIN
ER"
:
"Ma
intain
er"
,
"DEVELOPER"
:
"Developer"
,
"DEVELOPER"
:
"Developer"
,
"GUEST"
:
"Guest"
,
"GUEST"
:
"Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -775,7 +775,7 @@
...
@@ -775,7 +775,7 @@
"ARTIFACT_COUNT"
:
"Artifact count"
,
"ARTIFACT_COUNT"
:
"Artifact count"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"STORAGE_CONSUMPTION"
:
"Storage consumption"
,
"ADMIN"
:
"Admin(s)"
,
"ADMIN"
:
"Admin(s)"
,
"MA
ST
ER"
:
"Ma
st
er(s)"
,
"MA
INTAIN
ER"
:
"Ma
intain
er(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"DEVELOPER"
:
"Developer(s)"
,
"GUEST"
:
"Guest(s)"
,
"GUEST"
:
"Guest(s)"
,
"LIMITED_GUEST"
:
"Limited guest(s)"
"LIMITED_GUEST"
:
"Limited guest(s)"
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/i18n/lang/tr-tr-lang.json
+
3
-
3
View file @
cd66899a
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
"ROLE"
:
"Rol"
,
"ROLE"
:
"Rol"
,
"SYS_ADMIN"
:
"Sistem Yöneticisi"
,
"SYS_ADMIN"
:
"Sistem Yöneticisi"
,
"PROJECT_ADMIN"
:
"Proje Yöneticisi"
,
"PROJECT_ADMIN"
:
"Proje Yöneticisi"
,
"PROJECT_MA
ST
ER"
:
"Uzman"
,
"PROJECT_MA
INTAIN
ER"
:
"Uzman"
,
"DEVELOPER"
:
"Geliştirici"
,
"DEVELOPER"
:
"Geliştirici"
,
"GUEST"
:
"Konuk"
,
"GUEST"
:
"Konuk"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -439,7 +439,7 @@
...
@@ -439,7 +439,7 @@
"ROLE"
:
"Rol"
,
"ROLE"
:
"Rol"
,
"SYS_ADMIN"
:
"Sistem Yöneticisi"
,
"SYS_ADMIN"
:
"Sistem Yöneticisi"
,
"PROJECT_ADMIN"
:
"Proje Yöneticisi"
,
"PROJECT_ADMIN"
:
"Proje Yöneticisi"
,
"PROJECT_MA
ST
ER"
:
"Uzman"
,
"PROJECT_MA
INTAIN
ER"
:
"Uzman"
,
"DEVELOPER"
:
"Geliştirici"
,
"DEVELOPER"
:
"Geliştirici"
,
"GUEST"
:
"Misafir"
,
"GUEST"
:
"Misafir"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
"LIMITED_GUEST"
:
"Limited Guest"
,
...
@@ -778,7 +778,7 @@
...
@@ -778,7 +778,7 @@
"ARTIFACT_COUNT"
:
"Buluntu adeti"
,
"ARTIFACT_COUNT"
:
"Buluntu adeti"
,
"STORAGE_CONSUMPTION"
:
"Depolama tüketimi"
,
"STORAGE_CONSUMPTION"
:
"Depolama tüketimi"
,
"ADMIN"
:
"Yönetici(ler)"
,
"ADMIN"
:
"Yönetici(ler)"
,
"MA
ST
ER"
:
"Uzman(lar)"
,
"MA
INTAIN
ER"
:
"Uzman(lar)"
,
"DEVELOPER"
:
"Geliştirici(ler)"
,
"DEVELOPER"
:
"Geliştirici(ler)"
,
"GUEST"
:
"Misafir(ler)"
,
"GUEST"
:
"Misafir(ler)"
,
"LIMITED_GUEST"
:
"Limited guest(s)"
"LIMITED_GUEST"
:
"Limited guest(s)"
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/i18n/lang/zh-cn-lang.json
+
3
-
3
View file @
cd66899a
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
"ROLE"
:
"角色"
,
"ROLE"
:
"角色"
,
"SYS_ADMIN"
:
"系统管理员"
,
"SYS_ADMIN"
:
"系统管理员"
,
"PROJECT_ADMIN"
:
"项目管理员"
,
"PROJECT_ADMIN"
:
"项目管理员"
,
"PROJECT_MA
ST
ER"
:
"维护人员"
,
"PROJECT_MA
INTAIN
ER"
:
"维护人员"
,
"DEVELOPER"
:
"开发人员"
,
"DEVELOPER"
:
"开发人员"
,
"GUEST"
:
"访客"
,
"GUEST"
:
"访客"
,
"LIMITED_GUEST"
:
"受限访客"
,
"LIMITED_GUEST"
:
"受限访客"
,
...
@@ -438,7 +438,7 @@
...
@@ -438,7 +438,7 @@
"ROLE"
:
"权限"
,
"ROLE"
:
"权限"
,
"SYS_ADMIN"
:
"系统管理员"
,
"SYS_ADMIN"
:
"系统管理员"
,
"PROJECT_ADMIN"
:
"项目管理员"
,
"PROJECT_ADMIN"
:
"项目管理员"
,
"PROJECT_MA
ST
ER"
:
"维护人员"
,
"PROJECT_MA
INTAIN
ER"
:
"维护人员"
,
"DEVELOPER"
:
"开发者"
,
"DEVELOPER"
:
"开发者"
,
"GUEST"
:
"访客"
,
"GUEST"
:
"访客"
,
"LIMITED_GUEST"
:
"受限访客"
,
"LIMITED_GUEST"
:
"受限访客"
,
...
@@ -779,7 +779,7 @@
...
@@ -779,7 +779,7 @@
"ARTIFACT_COUNT"
:
"Artifact 数量"
,
"ARTIFACT_COUNT"
:
"Artifact 数量"
,
"STORAGE_CONSUMPTION"
:
"存储消耗"
,
"STORAGE_CONSUMPTION"
:
"存储消耗"
,
"ADMIN"
:
"管理员"
,
"ADMIN"
:
"管理员"
,
"MA
ST
ER"
:
"维护人员"
,
"MA
INTAIN
ER"
:
"维护人员"
,
"DEVELOPER"
:
"开发者"
,
"DEVELOPER"
:
"开发者"
,
"GUEST"
:
"访客"
,
"GUEST"
:
"访客"
,
"LIMITED_GUEST"
:
"受限访客"
"LIMITED_GUEST"
:
"受限访客"
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/i18n/lang/zh-tw-lang.json
+
3
-
3
View file @
cd66899a
...
@@ -280,7 +280,7 @@
...
@@ -280,7 +280,7 @@
"ROLE"
:
"角色"
,
"ROLE"
:
"角色"
,
"SYS_ADMIN"
:
"系統管理員"
,
"SYS_ADMIN"
:
"系統管理員"
,
"PROJECT_ADMIN"
:
"項目管理員"
,
"PROJECT_ADMIN"
:
"項目管理員"
,
"PROJECT_MA
ST
ER"
:
"維護人員"
,
"PROJECT_MA
INTAIN
ER"
:
"維護人員"
,
"DEVELOPER"
:
"開發人員"
,
"DEVELOPER"
:
"開發人員"
,
"GUEST"
:
"訪客"
,
"GUEST"
:
"訪客"
,
"LIMITED_GUEST"
:
"受限訪客"
,
"LIMITED_GUEST"
:
"受限訪客"
,
...
@@ -436,7 +436,7 @@
...
@@ -436,7 +436,7 @@
"ROLE"
:
"權限"
,
"ROLE"
:
"權限"
,
"SYS_ADMIN"
:
"系統管理員"
,
"SYS_ADMIN"
:
"系統管理員"
,
"PROJECT_ADMIN"
:
"項目管理員"
,
"PROJECT_ADMIN"
:
"項目管理員"
,
"PROJECT_MA
ST
ER"
:
"維護人員"
,
"PROJECT_MA
INTAIN
ER"
:
"維護人員"
,
"DEVELOPER"
:
"開發者"
,
"DEVELOPER"
:
"開發者"
,
"GUEST"
:
"訪客"
,
"GUEST"
:
"訪客"
,
"LIMITED_GUEST"
:
"受限訪客"
"LIMITED_GUEST"
:
"受限訪客"
...
@@ -775,7 +775,7 @@
...
@@ -775,7 +775,7 @@
"ARTIFACT_COUNT"
:
"工件數量"
,
"ARTIFACT_COUNT"
:
"工件數量"
,
"STORAGE_CONSUMPTION"
:
"存儲消耗"
,
"STORAGE_CONSUMPTION"
:
"存儲消耗"
,
"ADMIN"
:
"管理員"
,
"ADMIN"
:
"管理員"
,
"MA
ST
ER"
:
"維護人員"
,
"MA
INTAIN
ER"
:
"維護人員"
,
"DEVELOPER"
:
"開發者"
,
"DEVELOPER"
:
"開發者"
,
"GUEST"
:
"訪客"
,
"GUEST"
:
"訪客"
,
"LIMITED_GUEST"
:
"受限訪客"
"LIMITED_GUEST"
:
"受限訪客"
...
...
This diff is collapsed.
Click to expand it.
src/portal/src/lib/entities/shared.const.ts
+
2
-
2
View file @
cd66899a
...
@@ -133,9 +133,9 @@ export const PROJECT_ROOTS = [
...
@@ -133,9 +133,9 @@ export const PROJECT_ROOTS = [
LABEL
:
"
GROUP.PROJECT_ADMIN
"
LABEL
:
"
GROUP.PROJECT_ADMIN
"
},
},
{
{
NAME
:
"
ma
st
er
"
,
NAME
:
"
ma
intain
er
"
,
VALUE
:
4
,
VALUE
:
4
,
LABEL
:
"
GROUP.PROJECT_MA
ST
ER
"
LABEL
:
"
GROUP.PROJECT_MA
INTAIN
ER
"
},
},
{
{
NAME
:
"
developer
"
,
NAME
:
"
developer
"
,
...
...
This diff is collapsed.
Click to expand it.
tests/resources/Harbor-Pages/Project-Members.robot
+
3
-
3
View file @
cd66899a
...
@@ -87,7 +87,7 @@ User Can Not Change Role
...
@@ -87,7 +87,7 @@ User Can Not Change Role
#this keyworkd seems will not use any more, will delete in the future
#this keyworkd seems will not use any more, will delete in the future
Non-admin View Member Account
Non-admin View Member Account
[
arguments
]
${times}
[
arguments
]
${times}
Xpath Should Match X Times
//clr-dg-row-ma
st
er
${times}
Xpath Should Match X Times
//clr-dg-row-ma
intain
er
${times}
User Can Not Add Member
User Can Not Add Member
Retry Wait Until Page Contains Element
xpath=//button[@disabled='' and contains(.,'User')]
Retry Wait Until Page Contains Element
xpath=//button[@disabled='' and contains(.,'User')]
...
@@ -192,7 +192,7 @@ User Should Be Admin
...
@@ -192,7 +192,7 @@ User Should Be Admin
Logout Harbor
Logout Harbor
Push Image With Tag
${ip}
${user}
${password}
${project}
hello-world
v2
Push Image With Tag
${ip}
${user}
${password}
${project}
hello-world
v2
User Should Be Ma
st
er
User Should Be Ma
intain
er
[
Arguments
]
${user}
${pwd}
${project}
${is_oidc_mode}
=
${false}
[
Arguments
]
${user}
${pwd}
${project}
${is_oidc_mode}
=
${false}
Run Keyword If
${is_oidc_mode}
=
=
${false}
Sign In Harbor
${HARBOR_URL}
${user}
${pwd}
Run Keyword If
${is_oidc_mode}
=
=
${false}
Sign In Harbor
${HARBOR_URL}
${user}
${pwd}
...
ELSE
Sign In Harbor With OIDC User
${HARBOR_URL}
username=
${user}
...
ELSE
Sign In Harbor With OIDC User
${HARBOR_URL}
username=
${user}
...
@@ -202,7 +202,7 @@ User Should Be Master
...
@@ -202,7 +202,7 @@ User Should Be Master
Go Into Project
${project}
Go Into Project
${project}
Delete Repo
${project}
Delete Repo
${project}
Switch To Member
Switch To Member
Retry Wait Until Page Contains Element
xpath=//clr-dg-row[contains(.,'
${user}
')]//clr-dg-cell[contains(.,'Ma
st
er')]
Retry Wait Until Page Contains Element
xpath=//clr-dg-row[contains(.,'
${user}
')]//clr-dg-cell[contains(.,'Ma
intain
er')]
Logout Harbor
Logout Harbor
Push Image With Tag
${ip}
${user}
${password}
${project}
hello-world
v3
Push Image With Tag
${ip}
${user}
${password}
${project}
hello-world
v3
...
...
This diff is collapsed.
Click to expand it.
tests/resources/TestCaseBody.robot
+
2
-
2
View file @
cd66899a
...
@@ -196,8 +196,8 @@ Manage Project Member Without Sign In Harbor
...
@@ -196,8 +196,8 @@ Manage Project Member Without Sign In Harbor
User Should Be Developer
${test_user1}
${sign_in_pwd}
project
${d}
is_oidc_mode=
${is_oidc_mode}
User Should Be Developer
${test_user1}
${sign_in_pwd}
project
${d}
is_oidc_mode=
${is_oidc_mode}
Change User Role In Project
${sign_in_user}
${sign_in_pwd}
project
${d}
${test_user1}
Admin
is_oidc_mode=
${is_oidc_mode}
Change User Role In Project
${sign_in_user}
${sign_in_pwd}
project
${d}
${test_user1}
Admin
is_oidc_mode=
${is_oidc_mode}
User Should Be Admin
${test_user1}
${sign_in_pwd}
project
${d}
${test_user2}
is_oidc_mode=
${is_oidc_mode}
User Should Be Admin
${test_user1}
${sign_in_pwd}
project
${d}
${test_user2}
is_oidc_mode=
${is_oidc_mode}
Change User Role In Project
${sign_in_user}
${sign_in_pwd}
project
${d}
${test_user1}
Ma
st
er
is_oidc_mode=
${is_oidc_mode}
Change User Role In Project
${sign_in_user}
${sign_in_pwd}
project
${d}
${test_user1}
Ma
intain
er
is_oidc_mode=
${is_oidc_mode}
User Should Be Ma
st
er
${test_user1}
${sign_in_pwd}
project
${d}
is_oidc_mode=
${is_oidc_mode}
User Should Be Ma
intain
er
${test_user1}
${sign_in_pwd}
project
${d}
is_oidc_mode=
${is_oidc_mode}
Manage Project Member
${sign_in_user}
${sign_in_pwd}
project
${d}
${test_user1}
Remove
is_oidc_mode=
${is_oidc_mode}
Manage Project Member
${sign_in_user}
${sign_in_pwd}
project
${d}
${test_user1}
Remove
is_oidc_mode=
${is_oidc_mode}
User Should Not Be A Member Of Project
${test_user1}
${sign_in_pwd}
project
${d}
is_oidc_mode=
${is_oidc_mode}
User Should Not Be A Member Of Project
${test_user1}
${sign_in_pwd}
project
${d}
is_oidc_mode=
${is_oidc_mode}
Push image
ip=
${ip}
user=
${sign_in_user}
pwd=
${sign_in_pwd}
project=project
${d}
image=hello-world
Push image
ip=
${ip}
user=
${sign_in_user}
pwd=
${sign_in_pwd}
project=project
${d}
image=hello-world
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help