Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Tenant Token #248

Merged
merged 4 commits into from
Mar 10, 2022
Merged

Conversation

brunoocasali
Copy link
Member

@brunoocasali brunoocasali commented Mar 9, 2022

Create the generateTenantToken following the specification meilisearch/specifications#89

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.

I put a suggestion on a comment but as it is not essential so I approve! 🎉

/// <param name="expiresAt">Date to express how long the generated token will last. If null the token will last forever.</param>
/// <exception cref="MeilisearchTenantTokenApiKeyInvalid">When there is no <paramref name="apiKey"/> defined in the client or as argument.</exception>
/// <exception cref="MeilisearchTenantTokenExpired">When the sent <paramref name="expiresAt"/> param is in the past</exception>
/// <returns>Responds with the generated token.</returns>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// <returns>Responds with the generated token.</returns>
/// <returns>Returns a generated tenant token.</returns>

Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

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

LGTM 🔥🔥

/// <summary>
/// Generate a tenant token to be used during search.
/// </summary>
/// <param name="searchRules">Object with the rules to be inject in the search call.</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// <param name="searchRules">Object with the rules to be inject in the search call.</param>
/// <param name="searchRules">Object with the rules applied in a search call.</param>

@brunoocasali
Copy link
Member Author

@alallema and @bidoubiwa since GH will dismiss your reviews if I implement your suggestions here, I will submit a new PR :)

@brunoocasali brunoocasali merged commit ddc8d02 into bump-meilisearch-v0.26.0 Mar 10, 2022
@brunoocasali brunoocasali deleted the feature/tenant-token branch March 10, 2022 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants