Skip to content

[v1.4] Add word dictionary settings #571

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

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

alallema
Copy link
Contributor

@alallema alallema commented Aug 22, 2023

Pull Request

Related issue

Fixes #569

What does this PR do?

  • Add dictionary settings
  • Create tests

@alallema alallema added the enhancement New feature or request label Aug 22, 2023
@alallema alallema requested a review from brunoocasali August 22, 2023 14:23
@alallema alallema changed the title Add word dictionary settings [v1.4] [Prototype] Add word dictionary settings Aug 22, 2023
/**
* @param list<non-empty-string> $wordDictionary
*/
public function updateWordDictionary(array $wordDictionary): array
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we typehint returned array structure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I thought about it, but all setting updates return a task, and none are specified, so I didn't put anything in.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Then you could declare the Task return type in some file and then import the type where a task is returned,but then maybe in a separate PR :)

Copy link
Contributor Author

@alallema alallema Aug 23, 2023

Choose a reason for hiding this comment

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

I will create an issue about it. In the meantime I've just put array without details inside

Copy link
Collaborator

Choose a reason for hiding this comment

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

An alternative could be to introduce some value object that would hold the task info

@norkunas
Copy link
Collaborator

I'd suggest to update CI to run with the docker image that supports these settings to see if tests works :)

@alallema alallema changed the title [v1.4] [Prototype] Add word dictionary settings [v1.4] Add word dictionary settings Aug 23, 2023
@alallema
Copy link
Contributor Author

alallema commented Aug 23, 2023

I'd suggest to update CI to run with the docker image that supports these settings to see if tests works :)

The pre-release arrives on Monday and I'll just change the base branch for a bump so that the tests can run on it.
Thanks for the review @norkunas ❤️

@alallema alallema changed the base branch from main to bump-meilisearch-v1.4.0 August 29, 2023 10:07
@alallema alallema requested a review from brunoocasali August 29, 2023 10:08
Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>

Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>

Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
@alallema alallema force-pushed the prototype/word-dictionnary branch from bc3d5c6 to f6ff832 Compare August 29, 2023 10:27
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

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

LGTM!

@brunoocasali brunoocasali merged commit 0c43ca2 into bump-meilisearch-v1.4.0 Sep 5, 2023
@brunoocasali brunoocasali deleted the prototype/word-dictionnary branch September 5, 2023 20:41
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.

[v1.4] [Prototype] User dictionary settings API
3 participants