Skip to content

Conversation

@brunoocasali
Copy link
Member

  • Add User-Agent inside the pre-defined headers.

Add Rust support as requested here meilisearch/integration-guides#150

@brunoocasali
Copy link
Member Author

brunoocasali commented Apr 3, 2022

@irevoire it seems to be breaking but the breaking comes from inside a dependency in the wasm-build 🤔

@brunoocasali brunoocasali force-pushed the feature/add-user-agent-header branch from 20d68f9 to c57b5de Compare April 4, 2022 11:50
@irevoire
Copy link
Contributor

irevoire commented Apr 7, 2022

I'll check the pr next week!

@bidoubiwa
Copy link
Contributor

Since mockito is not compatible with wasm

  • Completely remove mockito and thus the mocking for the tests.
  • Find an alternative to mockito that is compatible
  • Remove wasm compatibility

@bidoubiwa bidoubiwa marked this pull request as draft May 5, 2022 10:26
@bidoubiwa bidoubiwa added the enhancement New feature or request label May 5, 2022
irevoire added a commit that referenced this pull request May 5, 2022
Having a link to the web_app `lib.rs` in the examples was making
it try to compile as a dev dependencies which is a constraint we
don’t want.
I removed it and instead included ALL the examples in our workspace
which means we’re now using THEIR cargo.toml instead of ours and
meilisearch-rust is compiled as a normal dependency for these examples.
I also added a `cargo check` for all the examples / tests / code in the
repo. This should execute faster than the test and thus throw errors faster.

This should unlock #254
@brunoocasali brunoocasali force-pushed the feature/add-user-agent-header branch from c57b5de to b2d8773 Compare May 5, 2022 20:05
bors bot added a commit that referenced this pull request May 5, 2022
286: Remove the wasm lib.rs from the manifest r=brunoocasali a=irevoire

Having a link to the web_app `lib.rs` in the examples was making
it try to compile as a dev dependencies which is a constraint we
don’t want.
I removed it and instead included ALL the examples in our workspace
which means we’re now using THEIR cargo.toml instead of ours and
meilisearch-rust is compiled as a normal dependency for these examples.
I also added a `cargo check` for all the examples / tests / code in the
repo. This should execute faster than the test and thus throw errors faster.

This should unlock #254


Co-authored-by: Irevoire <[email protected]>
bors bot added a commit that referenced this pull request May 5, 2022
286: Remove the wasm lib.rs from the manifest r=brunoocasali a=irevoire

Having a link to the web_app `lib.rs` in the examples was making
it try to compile as a dev dependencies which is a constraint we
don’t want.
I removed it and instead included ALL the examples in our workspace
which means we’re now using THEIR cargo.toml instead of ours and
meilisearch-rust is compiled as a normal dependency for these examples.
I also added a `cargo check` for all the examples / tests / code in the
repo. This should execute faster than the test and thus throw errors faster.

This should unlock #254


Co-authored-by: Irevoire <[email protected]>
Co-authored-by: Bruno Casali <[email protected]>
brunoocasali pushed a commit that referenced this pull request May 5, 2022
Having a link to the web_app `lib.rs` in the examples was making
it try to compile as a dev dependencies which is a constraint we
don’t want.
I removed it and instead included ALL the examples in our workspace
which means we’re now using THEIR cargo.toml instead of ours and
meilisearch-rust is compiled as a normal dependency for these examples.
I also added a `cargo check` for all the examples / tests / code in the
repo. This should execute faster than the test and thus throw errors faster.

This should unlock #254
bors bot added a commit that referenced this pull request May 5, 2022
286: Remove the wasm lib.rs from the manifest r=brunoocasali a=irevoire

Having a link to the web_app `lib.rs` in the examples was making
it try to compile as a dev dependencies which is a constraint we
don’t want.
I removed it and instead included ALL the examples in our workspace
which means we’re now using THEIR cargo.toml instead of ours and
meilisearch-rust is compiled as a normal dependency for these examples.
I also added a `cargo check` for all the examples / tests / code in the
repo. This should execute faster than the test and thus throw errors faster.

This should unlock #254


Co-authored-by: Irevoire <[email protected]>
Co-authored-by: Bruno Casali <[email protected]>
bors bot added a commit that referenced this pull request May 5, 2022
286: Remove the wasm lib.rs from the manifest r=brunoocasali a=irevoire

Having a link to the web_app `lib.rs` in the examples was making
it try to compile as a dev dependencies which is a constraint we
don’t want.
I removed it and instead included ALL the examples in our workspace
which means we’re now using THEIR cargo.toml instead of ours and
meilisearch-rust is compiled as a normal dependency for these examples.
I also added a `cargo check` for all the examples / tests / code in the
repo. This should execute faster than the test and thus throw errors faster.

This should unlock #254


Co-authored-by: Irevoire <[email protected]>
Co-authored-by: Bruno Casali <[email protected]>
@brunoocasali
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request May 5, 2022
254: Feature/Analytics r=brunoocasali a=brunoocasali

- Add `User-Agent` inside the pre-defined headers.

Add Rust support as requested here meilisearch/integration-guides#150


Co-authored-by: Bruno Casali <[email protected]>
@bors
Copy link
Contributor

bors bot commented May 5, 2022

Build failed:

@brunoocasali brunoocasali marked this pull request as ready for review May 5, 2022 21:50
Copy link
Contributor

@irevoire irevoire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay 🎉

@brunoocasali
Copy link
Member Author

bors merge

@bors
Copy link
Contributor

bors bot commented May 6, 2022

Build succeeded:

@bors bors bot merged commit b8a12a4 into main May 6, 2022
@bors bors bot deleted the feature/add-user-agent-header branch May 6, 2022 19:13
bors bot added a commit that referenced this pull request May 9, 2022
287: Update version for the next release (v0.17.0) r=curquiza a=brunoocasali

This version makes this package compatible with Meilisearch v0.27.0 🎉
Check out the changelog of [Meilisearch v0.27.0](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0) for more information on the changes.

## ⚠️ Breaking changes

* Remove jsonindex (#278) `@abhizer`

## 🚀 Enhancements

* Add cli-app example to meilisearch-rust (#279) `@salugi`
* Ensure nested field support (#273) `@bidoubiwa`
* Add new search parameters `highlightPreTag`, `highlightPostTag` and `cropMarker` (#274) `@bidoubiwa`
* Add User-Agent header to have analytics in every HTTP request (#254) `@brunoocasali`

Analytics is enabled by default in the server, but you can disable them by following [this guide](https://docs.meilisearch.com/learn/what_is_meilisearch/telemetry.html#how-to-disable-data-collection)
Also, of course, every analytics data we collect are **ANONYMOUS** [read the guide for more information](https://docs.meilisearch.com/learn/what_is_meilisearch/telemetry.html).



Thanks again to `@abhizer,` `@bidoubiwa,`  `@irevoire,` `@salugi` and a1! 🎉


Co-authored-by: Bruno Casali <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants