MeiliSearch/meilisearch/tests
meili-bors[bot] 43e822e802
Merge #4238
4238: Task queue webhook r=dureuill a=irevoire

# Prototype `prototype-task-queue-webhook-1`

The prototype is available through Docker by using the following command:

```bash
docker run -p 7700:7700 -v $(pwd)/meili_data:/meili_data getmeili/meilisearch:prototype-task-queue-webhook-1
```

# Pull Request

Implements the task queue webhook.

## Related issue
Fixes https://github.com/meilisearch/meilisearch/issues/4236

## What does this PR do?
- Provide a new cli and env var for the webhook, respectively called `--task-webhook-url` and `MEILI_TASK_WEBHOOK_URL`
- Also supports sending the requests with a custom `Authorization` header by specifying the optional `--task-webhook-authorization-header` CLI parameter or `MEILI_TASK_WEBHOOK_AUTHORIZATION_HEADER` env variable.
- Throw an error if the specified URL is invalid
- Every time a batch is processed, send all the finished tasks into the webhook with our public `TaskView` type as a JSON Line GZIPed body.
- Add one test.

## PR checklist

### Before becoming ready to review
- [x] Add a test
- [x] Compress the data we send
- [x] Chunk and stream the data we send
- [x] Remove the unwrap in the index-scheduler when sending the data fails
- [x] The analytics are missing

### Before merging
- [x] Release a prototype



Co-authored-by: Tamo <tamo@meilisearch.com>
Co-authored-by: Clément Renault <clement@meilisearch.com>
2023-12-21 14:43:46 +00:00
..
assets Change the naming of attributeScale and wordScale into byAttribute and byWord 2023-12-14 16:31:00 +01:00
auth Make the experimental route /metrics activable via HTTP 2023-10-13 22:12:54 +00:00
common fix warnings 2023-10-30 11:00:46 +01:00
dashboard Renames meilisearch-http to meilisearch 2022-12-08 08:22:53 -07:00
documents Fix tests 2023-10-30 15:11:07 +01:00
dumps Merge branch 'main' into change-proximity-precision-settings 2023-12-18 09:08:47 +01:00
features Remove proximityPrecision form the experimental feature 2023-12-14 15:52:42 +01:00
index refactor the tests suite slightly 2023-09-11 16:56:26 +02:00
search Fix tests 2023-12-20 17:16:46 +01:00
settings Merge branch 'main' into change-proximity-precision-settings 2023-12-18 09:08:47 +01:00
snapshot fix the flaky test 2023-09-11 16:56:26 +02:00
stats refactor the tests suite slightly 2023-09-11 16:56:26 +02:00
swap_indexes refactor the tests suite slightly 2023-09-11 16:56:26 +02:00
tasks stream and chunk the data 2023-12-19 10:35:51 +01:00
content_type.rs refactor the tests suite slightly 2023-09-11 16:56:26 +02:00
integration.rs integration test on "/experimental-features" route 2023-07-06 09:01:28 +02:00