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
!304
New entity types handling
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New entity types handling
entity-types
into
master
Overview
5
Commits
3
Pipelines
1
Changes
2
All threads resolved!
Hide all comments
Merged
Yoann Schneider
requested to merge
entity-types
into
master
2 years ago
Overview
5
Commits
3
Pipelines
1
Changes
2
All threads resolved!
Hide all comments
Expand
Closes
#184 (closed)
0
0
Merge request reports
Viewing commit
293f5adc
Prev
Next
Show latest version
2 files
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
293f5adc
use type_id
· 293f5adc
Yoann Schneider
authored
2 years ago
arkindex_worker/worker/entity.py
+
1
−
1
Options
@@ -27,7+27,7 @@
Missing ones may be created automatically if needed.
:param entity_types: Entity type names to search.
:param create_missing: Whether the missing types should be created. Defaults to True.
:raises MissingEntityType: When an entity type is missing and cannot create.
"""
# Retrieve entity_type ID
@@ -101,7+101,7 @@
"
CreateEntity
"
,
body
=
{
"
name
"
:
name
,
"
type
"
:
entity_type_id
,
"
type
_id
"
:
entity_type_id
,
"
metas
"
:
metas
,
"
validated
"
:
validated
,
"
corpus
"
:
self
.
corpus_id
,
Loading