meilisearch/dump
bors[bot] a402fc4486
Merge #3013
3013: Extract the dates out of the dumpv5. r=loiclec a=funilrys

Hi there, 

please review this PR that tries to fix #2986. I'm still learning Rust and I found that #2986 is an excellent way for me to read and learn what others do with Rust. So please excuse my semantics ...

Stay safe and healthy.

---

# Pull Request

This patch possibly fixes #2986.

This patch introduces a way to fill the IndexMetadata.created_at and IndexMetadata.updated_at keys from the tasks events. This is done by reading the creation date of the first event (created_at) and the creation date of the last event (updated_at).


## Related issue
Fixes #2986

## What does this PR do?
- Extract the dates out of the dumpv5.

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: funilrys <contact@funilrys.com>
2023-01-05 08:23:52 +00:00
..
src Merge #3013 2023-01-05 08:23:52 +00:00
tests/assets Add v1 reader 2022-12-01 14:03:15 +01:00
Cargo.toml Update version for the next release (v1.0.0) in Cargo.toml files 2022-12-08 12:20:17 +00:00
README.md remove an unused file 2022-10-27 11:34:02 +02:00

README.md

dump
├── indexes
│   ├── cattos
│   │   ├── documents.jsonl
│   │   └── settings.json
│   └── doggos
│       ├── documents.jsonl
│       └── settings.json
├── instance-uid.uuid
├── keys.jsonl
├── metadata.json
└── tasks
    ├── update_files
    │   └── [task_id].jsonl
    └── queue.jsonl