A lightning-fast search API that fits effortlessly into your apps, websites, and workflow
Go to file
bors[bot] 9e6a7e3aa9
Merge #153
153: integrate mini dashboard r=MarinPostma a=MarinPostma

This PR integrate the [mini dashboard](https://github.com/meilisearch/mini-dashboard) to transplant.

It adds a build feature `mini-dashboard` to statically add the mini-dashboard to the MeiliSearch binary. The mini-dashboard build feature is enabled by default and can be disabled by building MeiliSearch with `cargo build --no-default-features`.

- [x] Fetch the mini-dashboard from the Github release
- [x] Check that the SHA1 on the downloaded payload matches the one in the metadata
- [x] Unpack the mini dashboard in `meilisearch-http/mini-dashboard`
- [x] serve the mini-dashboard if the `mini-dashboard` feature is enabled
- [x] Update CI to build MeiliSearch with mini-dashboard for releases

close #87

## Shasum check and build optimizations.

In order to make sure that the right bundle for the mini-dashboard is downloaded, its shasum is computed and compared to the one specified in the `Cargo.toml`. If the shasums match, them the shasum is written to the `.mini-dashboard.sha1` file for later comparison. On subsequent builds, the build script will check that both the mini-dashboard assets and the shasum file are found and that the shasum file content matches the one from the toml file. It will only preform a re-generation on the static dashboard files if it finds that either the dashboard is not present where it expects it to be, or if it finds out that it is outdated, by comparing the shasums.

## Notes

I had to rely on a [custom patch](https://github.com/MarinPostma/actix-web-static-files/tree/actix-web-4) of actix-web-static-files, to support actix-web 4 beta6. there is currently a [pr on the official repo](https://github.com/kilork/actix-web-static-files/pull/35) to support actix-web 4, but it most likely won't be merged until actix is stabilized.


Co-authored-by: Marin Postma <postma.marin@protonmail.com>
2021-04-26 16:22:20 +00:00
.github review fixes 2021-04-26 10:20:46 +02:00
meilisearch-error serve static site 2021-04-22 10:26:54 +02:00
meilisearch-http review fixes 2021-04-26 10:20:46 +02:00
.dockerignore add docker recipe 2021-03-01 14:41:57 +01:00
.gitignore update gitignore 2021-04-26 18:21:09 +02:00
bors.toml Add bors configuration 2021-03-16 13:08:26 +01:00
Cargo.lock update actix-web-static-file rev 2021-04-22 11:42:41 +02:00
Cargo.toml create workspace with meilisearch-error 2021-03-01 14:41:55 +01:00
Dockerfile review fixes 2021-04-26 10:20:46 +02:00
LICENSE add license 2021-02-28 10:08:36 +01:00
README.md initial commit 2020-12-12 13:32:06 +01:00

transplant of meilisearch http on the new engine