CreateClassification allows using ML classes from other corpora
>>> ml_class = cli.request('CreateMLClass', id=FIRST_CORPUS_ID, body={"name": "something"})
>>> element = next(cli.paginate('ListElements', corpus_id=SECOND_CORPUS_ID))
>>> cli.request('CreateClassification', body={"element": element['id'], "ml_class": ml_class['id']})
This should cause a HTTP 400 because the ML class and the element are not on the same corpus, but it does not.
This affects 129540 classifications in prod, on elements of the Public | RIMES
corpus with class(es) from the Test Erwan
corpus. In preprod, this affects 54562 classifications from various corpora including HORAE, HORPIC, Import JFK and Raphael_test.
Edited by Erwan Rouchet