Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.web
Commits
c3ffe446
Commit
c3ffe446
authored
Aug 12, 2019
by
Jaden
Committed by
Samuel GAIST
Sep 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[reports] only omit exp usernames in non-accessible exps
parent
f884e08e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
beat/web/reports/static/reports/app/directives/experimentsTable.js
...reports/static/reports/app/directives/experimentsTable.js
+7
-2
beat/web/reports/static/reports/app/directives/panelExperiments.js
...reports/static/reports/app/directives/panelExperiments.js
+6
-2
No files found.
beat/web/reports/static/reports/app/directives/experimentsTable.js
View file @
c3ffe446
...
...
@@ -60,6 +60,11 @@ angular.module('reportApp')
return
ReportService
.
experiments
.
find
(
n
=>
n
.
split
(
'
/
'
).
pop
()
===
expName
);
}
};
scope
.
getNoUserExpName
=
(
eName
)
=>
{
let
expName
=
scope
.
getFullExpName
(
eName
);
const
noUserName
=
expName
.
split
(
'
/
'
).
slice
(
1
).
join
(
'
/
'
);
return
noUserName
;
};
scope
.
getAccessMap
=
(
expName
)
=>
ReportService
.
accessMap
[
scope
.
getFullExpName
(
expName
)];
scope
.
getAnalyzerAccessMap
=
(
expName
)
=>
ReportService
.
analyzerAccessMap
[
scope
.
getFullExpName
(
expName
)];
...
...
@@ -146,8 +151,8 @@ angular.module('reportApp')
</span>
</td>
<td>
<a ng-if='getAccessMap(expName)' href='{{ getExpUrl(getFullExpName(expName)) }}'>{{
expName
}}</a>
<span ng-if='!getAccessMap(expName)'
>{{ expName
}}</span>
<a ng-if='getAccessMap(expName)' href='{{ getExpUrl(getFullExpName(expName)) }}'>{{
getFullExpName(expName)
}}</a>
<span ng-if='!getAccessMap(expName)'
title='experiment not accessible for current user'>{{ getNoUserExpName(expName)
}}</span>
</td>
<td>
<span ng-repeat='db in getExpDatabases(expName) track by db'>
...
...
beat/web/reports/static/reports/app/directives/panelExperiments.js
View file @
c3ffe446
...
...
@@ -42,6 +42,10 @@ angular.module('reportApp').directive("groupPanelExperiments", ['GroupsService',
scope
.
analyzerIsAccessible
=
()
=>
ReportService
.
analyzerAccessMap
[
scope
.
group
.
experiments
[
0
]];
scope
.
getExpName
=
(
expName
)
=>
scope
.
experiments
[
expName
]
?
expName
:
expName
.
split
(
'
/
'
).
pop
();
scope
.
getNoUserExpName
=
(
expName
)
=>
{
const
noUserName
=
expName
.
split
(
'
/
'
).
slice
(
1
).
join
(
'
/
'
);
return
noUserName
;
};
const
getExp
=
(
expName
)
=>
scope
.
experiments
[
expName
]
||
scope
.
experiments
[
expName
.
split
(
'
/
'
).
pop
()];
// find experiments that are not in the group but are
...
...
@@ -145,8 +149,8 @@ angular.module('reportApp').directive("groupPanelExperiments", ['GroupsService',
<td ng-if='!isViewmode()'><input ng-model='group.aliases[expName]' ng-model-options="{ debounce: 500 }"></input></td>
<td ng-if='isViewmode()'><span>{{ group.aliases[expName] }}</span></td>
<td>
<a ng-if='accessMap[expName]' href='{{ getExpUrl(expName) }}'>{{
getExpName(expName)
}}</a>
<
i ng-if='!accessMap[expName]'><small>experiment not accessible for current user</small></i
>
<a ng-if='accessMap[expName]' href='{{ getExpUrl(expName) }}'>{{
expName
}}</a>
<
span ng-if='!accessMap[expName]' title='experiment not accessible for current user'>{{ getNoUserExpName(expName) }}</span
>
</td>
<td>
<span ng-repeat='db in getExpDatabases(expName)'>
...
...
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