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:
-
elementbecomes a FK towardElement -
name_containsbecomes a CharField -
best_classbecomes a CharField -
element_typebecomes a FK towardElementType -
elementsbecomes a booleanuse_selectionafter #315 (closed) is completed
These payload fields can be thrown away after workflow creation:
-
ml_tools(ml_toolsare 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