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

Ppunk documents fetch fix # #523

Merged
merged 4 commits into from
Jun 6, 2023

Conversation

panzer-punk
Copy link
Contributor

Fixes #522

Fixed behavior for fields if new documents/fetch endpoint used.

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.

Hi @panzer-punk thanks a lot for your bug fix, I just pointed out something that broke the code.

I'm not sure if there is a replacement, please let me know.

*
* @return array|string|null
*/
private function fields(): mixed
Copy link
Member

Choose a reason for hiding this comment

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

The mixed broke the implementation it is only introduced in PHP 8 right? So we can't use that, because we still support php 7.4

Suggested change
private function fields(): mixed
private function fields()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brunoocasali yep, my bad. I'll fix it

@brunoocasali brunoocasali added the bug Something isn't working label Jun 6, 2023
@panzer-punk
Copy link
Contributor Author

@brunoocasali removed mixed return type

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.

Thanks a lot for your first contribution @panzer-punk 🤘

bors merge

meili-bors bot added a commit that referenced this pull request Jun 6, 2023
523: Ppunk documents fetch fix # r=brunoocasali a=panzer-punk

Fixes #522 

Fixed behavior for fields if new documents/fetch endpoint used.



Co-authored-by: Daniil Budarny <daniil@rutorika.ru>
Co-authored-by: Daniil <daniil@rutorika.ru>
@meili-bors
Copy link
Contributor

meili-bors bot commented Jun 6, 2023

Build failed:

@brunoocasali
Copy link
Member

bors merge

meili-bors bot added a commit that referenced this pull request Jun 6, 2023
523: Ppunk documents fetch fix # r=brunoocasali a=panzer-punk

Fixes #522 

Fixed behavior for fields if new documents/fetch endpoint used.



Co-authored-by: Daniil Budarny <daniil@rutorika.ru>
Co-authored-by: Daniil <daniil@rutorika.ru>
@meili-bors
Copy link
Contributor

meili-bors bot commented Jun 6, 2023

Canceled.

@brunoocasali
Copy link
Member

bors merge

@panzer-punk
Copy link
Contributor Author

@brunoocasali I'm not sure what's going on, I just tried to sync fork and I might've broken some checks. bors said there is some integration failure with guzzle 7 and php 7.4. Sorry

@meili-bors
Copy link
Contributor

meili-bors bot commented Jun 6, 2023

@meili-bors meili-bors bot merged commit 0b17f18 into meilisearch:main Jun 6, 2023
15 checks passed
@meili-bot
Copy link
Contributor

This message is sent automatically

Thank you very much for submitting your PR! Did you know that throughout the month of June we’re holding a rafle?
If you share the link to your merged PR in our #giveaway Discord channel, you’ll automatically join a lottery for a chance at winning some Meiliswag. 🙂
Don’t hesitate to join us: https://discord.com/channels/1006923006964154428/1111273670657200198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get documents with filters: Invalid value type at .fields: expected an array, but found a string
3 participants