Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
naming-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ics-software
naming-backend
Commits
cda4db6c
Commit
cda4db6c
authored
1 year ago
by
Lars Johansson
Browse files
Options
Downloads
Patches
Plain Diff
Update report
parent
bc6378d6
No related branches found
No related tags found
No related merge requests found
Pipeline
#141565
passed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/openepics/names/rest/controller/ReportController.java
+5
-3
5 additions, 3 deletions
...org/openepics/names/rest/controller/ReportController.java
with
5 additions
and
3 deletions
src/main/java/org/openepics/names/rest/controller/ReportController.java
+
5
−
3
View file @
cda4db6c
...
...
@@ -62,7 +62,6 @@ public class ReportController {
private
static
final
String
SPACE
=
" "
;
private
static
final
String
DIVIDER_32
=
"--------------------------------"
;
private
static
final
String
DIVIDER_64
=
DIVIDER_32
+
DIVIDER_32
;
private
static
final
String
DIVIDER_96
=
DIVIDER_32
+
DIVIDER_32
+
DIVIDER_32
;
private
static
final
String
DIVIDER_128
=
DIVIDER_32
+
DIVIDER_32
+
DIVIDER_32
+
DIVIDER_32
;
...
...
@@ -71,11 +70,11 @@ public class ReportController {
private
static
final
String
NBR_ALL
=
"# all: "
;
private
static
final
String
NBR_CANCELLED
=
"# cancelled: "
;
private
static
final
String
NBR_DELETED
=
"# deleted: "
;
private
static
final
String
NBR_LEGACY
=
"# legacy: "
;
private
static
final
String
NBR_OTHER
=
"# other: "
;
private
static
final
String
NBR_PENDING
=
"# pending: "
;
private
static
final
String
NBR_REJECTED
=
"# rejected: "
;
private
NamesService
namesService
;
private
StructuresService
structuresService
;
...
...
@@ -143,11 +142,13 @@ public class ReportController {
ResponsePageNameElements
nameElementsEssNames
=
namesService
.
readNames
(
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
Boolean
.
FALSE
,
null
,
null
,
null
,
null
);
ResponsePageNameElements
nameElementsEssNamesDeleted
=
namesService
.
readNames
(
Boolean
.
TRUE
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
Boolean
.
FALSE
,
null
,
null
,
null
,
null
);
ResponsePageNameElements
nameElementsEssNamesNotDeleted
=
namesService
.
readNames
(
Boolean
.
FALSE
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
Boolean
.
FALSE
,
null
,
null
,
null
,
null
);
ResponsePageNameElements
nameElementsEssNamesNotDeletedLegacy
=
namesService
.
readNamesLegacy
(
null
,
null
,
null
,
null
,
null
);
long
nbrEssNameSystemstructure
=
0
;
long
nbrEssNameSystemstructureDevicestructure
=
0
;
long
nbrEssNameSystemstructureDevicestructureIndex
=
0
;
long
nbrEssNameOther
=
0
;
long
nbrEssNameLegacy
=
nameElementsEssNamesNotDeletedLegacy
.
getTotalCount
();
for
(
NameElement
nameElement
:
nameElementsEssNamesNotDeleted
.
getList
())
{
if
(!
StringUtils
.
isEmpty
(
nameElement
.
getSystemStructure
())
...
...
@@ -451,7 +452,8 @@ public class ReportController {
sb
.
append
(
DIVIDER_96
).
append
(
NEWLINE
);
// # names with system structure only - system group, system, system + subsystem
sb
.
append
(
"ESS Name "
+
metricsEssName
).
append
(
NEWLINE
);
sb
.
append
(
DIVIDER_64
).
append
(
NEWLINE
);
sb
.
append
(
addSpaceUntilSize
(
""
,
47
)
+
NBR_LEGACY
+
nbrEssNameLegacy
).
append
(
NEWLINE
);
sb
.
append
(
DIVIDER_96
).
append
(
NEWLINE
);
sb
.
append
(
"System structure "
+
metricsEssNameSystemstructure
).
append
(
NEWLINE
);
sb
.
append
(
"System structure + Device structure "
+
metricsEssNameSystemstructureDevicestructure
).
append
(
NEWLINE
);
sb
.
append
(
"System structure + Device structure + Index "
+
metricsEssNameSystemstructureDevicestructureIndex
).
append
(
NEWLINE
);
...
...
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