Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Adham Hashibon
force-bdss
Commits
7a88b086
Commit
7a88b086
authored
6 years ago
by
James Johnson
Browse files
Options
Downloads
Patches
Plain Diff
Kpi check added to verifier
parent
dd052776
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!163
Verifier Additions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/core/verifier.py
+9
-1
9 additions, 1 deletion
force_bdss/core/verifier.py
with
9 additions
and
1 deletion
force_bdss/core/verifier.py
+
9
−
1
View file @
7a88b086
...
...
@@ -9,6 +9,7 @@ class VerifierError(HasStrictTraits):
error
=
Str
()
def
verify_workflow
(
workflow
):
"""
Verifies if the workflow can be executed, and specifies where the
error occurs and why.
...
...
@@ -45,6 +46,14 @@ def _check_mco(workflow):
if
len
(
param
.
type
.
strip
())
==
0
:
errors
.
append
(
VerifierError
(
subject
=
param
,
error
=
"
Parameter has empty type
"
))
for
kpi
in
mco
.
kpis
:
if
len
(
kpi
.
name
.
strip
())
==
0
:
errors
.
append
(
VerifierError
(
subject
=
kpi
,
error
=
"
Kpi has empty name
"
))
if
len
(
kpi
.
objective
.
strip
())
==
0
:
errors
.
append
(
VerifierError
(
subject
=
kpi
,
error
=
"
Kpi objective is not set
"
))
return
errors
...
...
@@ -72,7 +81,6 @@ def _check_execution_layers(workflow):
return
errors
def
_check_data_source
(
data_source_model
):
errors
=
[]
...
...
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