Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
Workers
Base Worker
Merge requests
!134
Return the response payload in creation helpers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Return the response payload in creation helpers
response-payload
into
master
Overview
0
Commits
1
Pipelines
1
Changes
3
Merged
Valentin Rigal
requested to merge
response-payload
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
3
Expand
Closes
#72 (closed)
Some helpers were returning IDs only from the response payload:
create_sub_element
create_entity
create_metadata
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
44c791ce
1 commit,
3 years ago
3 files
+
10
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
arkindex_worker/worker/classification.py
+
4
−
0
Options
@@ -132,6 +132,8 @@ class ClassificationMixin(object):
self
.
report
.
add_classification
(
element
.
id
,
ml_class
)
return
created
def
create_classifications
(
self
,
element
,
classifications
):
"""
Create multiple classifications at once on the given element through the API
@@ -199,3 +201,5 @@ class ClassificationMixin(object):
logger
.
warning
(
f
"
Couldn
'
t save created classifications in local cache:
{
e
}
"
)
return
created_cls
Loading