Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Commits
79a465b7
Commit
79a465b7
authored
5 years ago
by
Flavio TARSETTI
Browse files
Options
Downloads
Plain Diff
Merge branch '487-reports-fixes' into 'master'
Bug fixes for the reports app Closes #487 See merge request
!280
parents
30bd2dbf
7a088aae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!280
Bug fixes for the reports app
Pipeline
#29136
passed
5 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beat/web/reports/static/reports/app/directives/layout.js
+3
-2
3 additions, 2 deletions
beat/web/reports/static/reports/app/directives/layout.js
beat/web/reports/static/reports/app/directives/tableItem.js
+4
-7
4 additions, 7 deletions
beat/web/reports/static/reports/app/directives/tableItem.js
with
7 additions
and
9 deletions
beat/web/reports/static/reports/app/directives/layout.js
+
3
−
2
View file @
79a465b7
...
...
@@ -27,13 +27,14 @@
* generating group panels using the GroupsService data,
* and holding the menu for adding a group
*/
angular
.
module
(
'
reportApp
'
).
directive
(
"
groupsLayout
"
,
[
'
GroupsService
'
,
'
UrlService
'
,
function
(
GroupsService
,
UrlService
){
angular
.
module
(
'
reportApp
'
).
directive
(
"
groupsLayout
"
,
[
'
GroupsService
'
,
'
UrlService
'
,
'
ReportService
'
,
function
(
GroupsService
,
UrlService
,
ReportService
){
return
{
scope
:
{
},
link
:
function
(
scope
,
el
,
attr
){
scope
.
GroupsService
=
GroupsService
;
scope
.
isViewmode
=
UrlService
.
isViewmode
;
scope
.
isLocked
=
()
=>
ReportService
.
status
===
'
locked
'
;
// drag handle CSS selector
scope
.
sortableOptions
=
{
...
...
@@ -41,7 +42,7 @@ angular.module('reportApp').directive("groupsLayout", ['GroupsService', 'UrlServ
};
},
template
:
`
<experiments-table></experiments-table>
<experiments-table
ng-if='!isLocked()'
></experiments-table>
<div ng-if='!isViewmode()' group-add-group-menu class='panel'></div>
<div id='groupsLayout' class='panel-group'>
...
...
This diff is collapsed.
Click to expand it.
beat/web/reports/static/reports/app/directives/tableItem.js
+
4
−
7
View file @
79a465b7
...
...
@@ -93,10 +93,7 @@ angular.module('reportApp')
return
scope
.
fieldTypeCache
[
field
];
let
type
;
if
(
field
===
scope
.
fields
[
0
]){
type
=
'
string
'
;
scope
.
fieldTypeCache
[
field
]
=
type
;
}
let
isExpNameCol
=
field
===
scope
.
fields
[
0
]
&&
field
===
'
Experiment
'
;
let
hasFieldObj
=
Object
.
values
(
scope
.
tableables
)
.
find
(
o
=>
o
[
field
]);
...
...
@@ -107,7 +104,7 @@ angular.module('reportApp')
type
=
'
integer
'
;
}
else
if
(
Number
.
isFinite
(
fVal
)){
type
=
'
float
'
;
}
else
if
(
typeof
fVal
===
'
string
'
){
}
else
if
(
typeof
fVal
===
'
string
'
||
isExpNameCol
){
type
=
'
string
'
;
}
else
{
type
=
undefined
;
...
...
@@ -129,11 +126,11 @@ angular.module('reportApp')
if
(
field
===
scope
.
fields
[
0
]){
val
=
alias
;
}
else
if
(
!
fVal
){
}
else
if
(
fVal
===
undefined
){
val
=
'
-
'
;
}
else
{
let
tmp
;
if
(
fVal
.
value
){
if
(
fVal
.
hasOwnProperty
(
'
value
'
)
){
tmp
=
fVal
.
value
;
}
else
{
tmp
=
fVal
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment