Skip to content

Conversation

@brunoocasali
Copy link
Member

@brunoocasali brunoocasali commented Jul 29, 2022

Related to meilisearch/integration-guides#150 take #2

We will use this door to send information from the Rails gem.

@brunoocasali brunoocasali added the enhancement New feature or request label Jul 29, 2022
@brunoocasali brunoocasali changed the title Allow client to receive a custom user-agent Enhancement/Custom Analytics Jul 29, 2022
@brunoocasali brunoocasali changed the title Enhancement/Custom Analytics Enhancement/Custom Clients Jul 29, 2022
@brunoocasali brunoocasali changed the title Enhancement/Custom Clients Support Custom Clients Jul 29, 2022
@brunoocasali brunoocasali changed the title Support Custom Clients Support custom agents Jul 29, 2022
Copy link
Contributor

@alallema alallema left a comment

Choose a reason for hiding this comment

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

LGTM! 🌯

expect(index.options).to eq(options.merge({ convert_body?: true }))

expect(MeiliSearch::Index).to receive(:get).with(
"#{URL}/indexes/options",
Copy link
Contributor

Choose a reason for hiding this comment

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

A bit confusing to call the index options, it looks like a route name and not a resource indexes/options.
But a part for that the test is good!

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, I'll generate an issue to handle that plus a way to randomize the indexes names as we do in the rails :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Issue created! #355

@brunoocasali
Copy link
Member Author

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented Aug 1, 2022

@meili-bors meili-bors bot merged commit 6860f67 into main Aug 1, 2022
@meili-bors meili-bors bot deleted the feature/custom-analytics branch August 1, 2022 13:56
bors bot added a commit to meilisearch/meilisearch-rails that referenced this pull request Aug 1, 2022
179: Feature/Analytics r=brunoocasali a=brunoocasali

Merge after meilisearch/meilisearch-ruby#354

With both PRs, we can send a custom header with the name of this gem according to meilisearch/integration-guides#150.

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.

4 participants