delete-me: Simply support generating dump

This commit is contained in:
Clément Renault 2024-06-13 20:13:36 +02:00
parent 862d49e4af
commit b7b8f564c3
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -166,7 +166,12 @@ impl From<KindWithContent> for KindDump {
documents_count,
allow_index_creation,
},
KindWithContent::DocumentEdition { .. } => todo!(),
KindWithContent::DocumentEdition { .. } => KindDump::DocumentImport {
primary_key: None,
method: IndexDocumentsMethod::UpdateDocuments,
documents_count: 0,
allow_index_creation: false,
},
KindWithContent::DocumentDeletion { documents_ids, .. } => {
KindDump::DocumentDeletion { documents_ids }
}