Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e4675ca5
Commit
e4675ca5
authored
Dec 08, 2017
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: user groups to teams, replace rest mentions
parent
5d3bfee2
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
14 deletions
+14
-14
CHANGELOG.md
+1
-1
ROADMAP.md
+1
-1
public/app/features/dashboard/acl/acl.ts
+1
-1
public/app/features/dashboard/acl/specs/acl_specs.ts
+3
-3
public/app/features/org/partials/create_team.html
+1
-1
public/app/features/org/partials/team_details.html
+3
-3
public/app/features/org/partials/teams.html
+2
-2
public/app/features/org/specs/team_details_ctrl_specs.ts
+1
-1
public/app/features/org/teams_ctrl.ts
+1
-1
No files found.
CHANGELOG.md
View file @
e4675ca5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
### WIP (in develop branch currently as its unstable or unfinished)
### WIP (in develop branch currently as its unstable or unfinished)
-
Dashboard folders
-
Dashboard folders
-
User group
s
-
Team
s
-
Dashboard permissions (on folder & dashboard level), permissions can be assigned to groups or individual users
-
Dashboard permissions (on folder & dashboard level), permissions can be assigned to groups or individual users
-
UX changes to nav & side menu
-
UX changes to nav & side menu
-
New dashboard grid layout system
-
New dashboard grid layout system
...
...
ROADMAP.md
View file @
e4675ca5
...
@@ -6,7 +6,7 @@ But it will give you an idea of our current vision and plan.
...
@@ -6,7 +6,7 @@ But it will give you an idea of our current vision and plan.
### Short term (1-4 months)
### Short term (1-4 months)
-
Release Grafana v5
-
Release Grafana v5
-
User group
s
-
Team
s
-
Dashboard folders
-
Dashboard folders
-
Dashboard & folder permissions (assigned to users or groups)
-
Dashboard & folder permissions (assigned to users or groups)
-
New Dashboard layout engine
-
New Dashboard layout engine
...
...
public/app/features/dashboard/acl/acl.ts
View file @
e4675ca5
...
@@ -12,7 +12,7 @@ export class AclCtrl {
...
@@ -12,7 +12,7 @@ export class AclCtrl {
{
value
:
4
,
text
:
'Admin'
}
{
value
:
4
,
text
:
'Admin'
}
];
];
aclTypes
=
[
aclTypes
=
[
{
value
:
'Group'
,
text
:
'
User Group
'
},
{
value
:
'Group'
,
text
:
'
Team
'
},
{
value
:
'User'
,
text
:
'User'
},
{
value
:
'User'
,
text
:
'User'
},
{
value
:
'Viewer'
,
text
:
'Everyone With Viewer Role'
},
{
value
:
'Viewer'
,
text
:
'Everyone With Viewer Role'
},
{
value
:
'Editor'
,
text
:
'Everyone With Editor Role'
}
{
value
:
'Editor'
,
text
:
'Everyone With Editor Role'
}
...
...
public/app/features/dashboard/acl/specs/acl_specs.ts
View file @
e4675ca5
...
@@ -54,7 +54,7 @@ describe('AclCtrl', () => {
...
@@ -54,7 +54,7 @@ describe('AclCtrl', () => {
ctx
.
ctrl
.
typeChanged
();
ctx
.
ctrl
.
typeChanged
();
});
});
it
(
'should sort the result by role,
user group
and user'
,
()
=>
{
it
(
'should sort the result by role,
team
and user'
,
()
=>
{
expect
(
ctx
.
ctrl
.
items
[
0
].
role
).
to
.
eql
(
'Viewer'
);
expect
(
ctx
.
ctrl
.
items
[
0
].
role
).
to
.
eql
(
'Viewer'
);
expect
(
ctx
.
ctrl
.
items
[
1
].
role
).
to
.
eql
(
'Editor'
);
expect
(
ctx
.
ctrl
.
items
[
1
].
role
).
to
.
eql
(
'Editor'
);
expect
(
ctx
.
ctrl
.
items
[
2
].
teamId
).
to
.
eql
(
2
);
expect
(
ctx
.
ctrl
.
items
[
2
].
teamId
).
to
.
eql
(
2
);
...
@@ -124,7 +124,7 @@ describe('AclCtrl', () => {
...
@@ -124,7 +124,7 @@ describe('AclCtrl', () => {
});
});
});
});
describe
(
'when duplicate
user group
permissions are added'
,
()
=>
{
describe
(
'when duplicate
team
permissions are added'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
backendSrv
.
get
.
reset
();
backendSrv
.
get
.
reset
();
backendSrv
.
post
.
reset
();
backendSrv
.
post
.
reset
();
...
@@ -148,7 +148,7 @@ describe('AclCtrl', () => {
...
@@ -148,7 +148,7 @@ describe('AclCtrl', () => {
});
});
});
});
describe
(
'when one inherited and one not inherited
user group
permission are added'
,
()
=>
{
describe
(
'when one inherited and one not inherited
team
permission are added'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
backendSrv
.
get
.
reset
();
backendSrv
.
get
.
reset
();
backendSrv
.
post
.
reset
();
backendSrv
.
post
.
reset
();
...
...
public/app/features/org/partials/create_team.html
View file @
e4675ca5
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
class=
"p-t-2"
>
<div
class=
"p-t-2"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form max-width-21"
>
<div
class=
"gf-form max-width-21"
>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
'ctrl.teamName'
required
give-focus=
"true"
placeholder=
"Enter
User Group
Name"
></input>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
'ctrl.teamName'
required
give-focus=
"true"
placeholder=
"Enter
Team
Name"
></input>
</div>
</div>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<button
class=
"btn gf-form-btn btn-success"
ng-click=
"ctrl.createTeam();ctrl.dismiss();"
>
Create
</button>
<button
class=
"btn gf-form-btn btn-success"
ng-click=
"ctrl.createTeam();ctrl.dismiss();"
>
Create
</button>
...
...
public/app/features/org/partials/team_details.html
View file @
e4675ca5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"page-container"
>
<div
class=
"page-container"
>
<div
class=
"page-header"
>
<div
class=
"page-header"
>
<h1>
Edit
User Group
</h1>
<h1>
Edit
Team
</h1>
</div>
</div>
<form
name=
"teamDetailsForm"
class=
"gf-form-group gf-form-inline"
>
<form
name=
"teamDetailsForm"
class=
"gf-form-group gf-form-inline"
>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</form>
</form>
<div
class=
"gf-form-group"
>
<div
class=
"gf-form-group"
>
<h3
class=
"page-heading"
>
User Group
Members
</h3>
<h3
class=
"page-heading"
>
Team
Members
</h3>
<form
name=
"ctrl.addMemberForm"
class=
"gf-form-group"
>
<form
name=
"ctrl.addMemberForm"
class=
"gf-form-group"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
...
@@ -44,6 +44,6 @@
...
@@ -44,6 +44,6 @@
</table>
</table>
<div>
<div>
<em
class=
"muted"
ng-hide=
"ctrl.teamMembers.length > 0"
>
<em
class=
"muted"
ng-hide=
"ctrl.teamMembers.length > 0"
>
This
user group
has no members yet.
This
team
has no members yet.
</em>
</em>
</div>
</div>
public/app/features/org/partials/teams.html
View file @
e4675ca5
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"gf-form gf-form--grow"
>
<div
class=
"gf-form gf-form--grow"
>
<label
class=
"gf-form-label"
>
Search
</label>
<label
class=
"gf-form-label"
>
Search
</label>
<input
type=
"text"
class=
"gf-form-input max-width-20"
placeholder=
"Find
User Group
by name"
tabindex=
"1"
give-focus=
"true"
<input
type=
"text"
class=
"gf-form-input max-width-20"
placeholder=
"Find
Team
by name"
tabindex=
"1"
give-focus=
"true"
ng-model=
"ctrl.query"
ng-model-options=
"{ debounce: 500 }"
spellcheck=
'false'
ng-change=
"ctrl.get()"
/>
ng-model=
"ctrl.query"
ng-model-options=
"{ debounce: 500 }"
spellcheck=
'false'
ng-change=
"ctrl.get()"
/>
</div>
</div>
...
@@ -59,6 +59,6 @@
...
@@ -59,6 +59,6 @@
</div>
</div>
<em
class=
"muted"
ng-hide=
"ctrl.teams.length > 0"
>
<em
class=
"muted"
ng-hide=
"ctrl.teams.length > 0"
>
No
User Group
s found.
No
Team
s found.
</em>
</em>
</div>
</div>
public/app/features/org/specs/team_details_ctrl_specs.ts
View file @
e4675ca5
...
@@ -24,7 +24,7 @@ var backendSrv = {
...
@@ -24,7 +24,7 @@ var backendSrv = {
});
});
}));
}));
describe
(
'when user is chosen to be added to
user group
'
,
()
=>
{
describe
(
'when user is chosen to be added to
team
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
const
userItem
=
{
const
userItem
=
{
id
:
2
,
id
:
2
,
...
...
public/app/features/org/teams_ctrl.ts
View file @
e4675ca5
...
@@ -43,7 +43,7 @@ export class TeamsCtrl {
...
@@ -43,7 +43,7 @@ export class TeamsCtrl {
deleteTeam
(
team
)
{
deleteTeam
(
team
)
{
appEvents
.
emit
(
'confirm-modal'
,
{
appEvents
.
emit
(
'confirm-modal'
,
{
title
:
'Delete'
,
title
:
'Delete'
,
text
:
'Are you sure you want to delete
User Group
'
+
team
.
name
+
'?'
,
text
:
'Are you sure you want to delete
Team
'
+
team
.
name
+
'?'
,
yesText
:
"Delete"
,
yesText
:
"Delete"
,
icon
:
"fa-warning"
,
icon
:
"fa-warning"
,
onConfirm
:
()
=>
{
onConfirm
:
()
=>
{
...
...
Write
Preview
Markdown
is supported
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