Persist DataImport.payload usage for Elements initialisation
According to https://wiki.vpn/en/arkindex/dev-doc/dataimport-payload we can move the following payload attributes as nullable model args:
-
element
becomes a FK towardElement
-
name_contains
becomes a CharField -
best_class
becomes a CharField -
element_type
becomes a FK towardElementType
-
elements
becomes a booleanuse_selection
after #315 (closed) is completed
These payload fields can be thrown away after workflow creation:
-
ml_tools
(ml_tools
are only used to configure the workflow, and should not be passed to the init task`) -
chunks
(used to configure the tasks) -
thumbnails
This needs only a MR on the backend, tasks already support those args.
DataImport.ml_tools
cached property that must go away too.
Edited by Eva Bardou