Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fml40-reference-implementation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KWH40
fml40-reference-implementation
Commits
e81ad455
Commit
e81ad455
authored
4 years ago
by
Jiahang Chen
Browse files
Options
Downloads
Patches
Plain Diff
update joblist
parent
85f1954f
No related branches found
No related tags found
No related merge requests found
Pipeline
#458420
passed
4 years ago
Stage: build_wheel
Stage: build_doc
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ml/dt_factory.py
+5
-2
5 additions, 2 deletions
ml/dt_factory.py
ml/ml40/features/properties/values/documents/jobs/job_list.py
+0
-18
0 additions, 18 deletions
...l40/features/properties/values/documents/jobs/job_list.py
with
5 additions
and
20 deletions
ml/dt_factory.py
+
5
−
2
View file @
e81ad455
...
...
@@ -186,9 +186,12 @@ def build_sub_features(feature_ins, feature):
"""
sub_features
=
feature
.
get
(
"
subFeatures
"
,
[])
### Because of the uniqueness of subfeatures, like ml40::JobList can have many fml40::ForwardingJob in subFeatures
for
sub_f
in
sub_features
:
sub_f_name
=
sub_f
.
get
(
"
name
"
)
if
sub_f_name
is
None
:
sub_f_name
=
sub_f
.
get
(
"
class
"
,
""
)
sub_f_obj
=
DT_FACTORY
.
get
(
remove_namespace
(
sub_f
_name
),
None
)
sub_f_obj
=
DT_FACTORY
.
get
(
remove_namespace
(
sub_f
.
get
(
"
class
"
,
""
)
),
None
)
if
sub_f_obj
is
None
:
APP_LOGGER
.
critical
(
"
Subfeature: %s is missing
"
%
sub_f_name
)
else
:
...
...
This diff is collapsed.
Click to expand it.
ml/ml40/features/properties/values/documents/jobs/job_list.py
+
0
−
18
View file @
e81ad455
...
...
@@ -6,21 +6,3 @@ def __init__(self, name="", identifier=""):
super
().
__init__
(
name
=
name
,
identifier
=
identifier
)
self
.
__jobs
=
list
()
self
.
__json_out
=
dict
()
@property
def
jobs
(
self
):
return
self
.
__jobs
@jobs.setter
def
jobs
(
self
,
value
):
self
.
__jobs
=
value
def
to_json
(
self
):
self
.
__json_out
=
super
().
to_json
()
if
self
.
jobs
:
self
.
__json_out
[
"
jobs
"
]
=
list
()
for
job
in
self
.
jobs
:
self
.
__json_out
[
"
jobs
"
].
append
(
job
.
to_json
())
return
self
.
__json_out
\ No newline at end of file
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