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

Use correct Put class for updating settings. Fixes #1295 #1296

Merged
merged 1 commit into from
May 5, 2017
Merged

Use correct Put class for updating settings. Fixes #1295 #1296

merged 1 commit into from
May 5, 2017

Conversation

nickygerritsen
Copy link
Contributor

This fixes #1295 and adds a test that verifies this.

@ewgRa
Copy link
Contributor

ewgRa commented May 4, 2017

Strange, that another tests in this SettingsTest class are written in a same way, but they do not fail...

I haven't ability to check it right now, but did your test fail, if you revert changes in "lib/Elastica/Index.php" back?

Maybe there is wrong tests if it is not fail...

@nickygerritsen
Copy link
Contributor Author

Yeah my test failed before. The other tests in this class are different: they use getSetting and then set on that object instead of directly using setSettings on the index. The later is what was broken (and not tested at all yet).

@ewgRa
Copy link
Contributor

ewgRa commented May 4, 2017

@nickygerritsen Indeed 👍

ping @ruflin

@ruflin
Copy link
Owner

ruflin commented May 5, 2017

@nickygerritsen Could you put a note in the CHANGELOG.md file?

@nickygerritsen
Copy link
Contributor Author

Done!

@ruflin ruflin merged commit 4b5781f into ruflin:master May 5, 2017
@ruflin
Copy link
Owner

ruflin commented May 5, 2017

@nickygerritsen Thanks for the fix
@nickygerritsen @ewgRa Do we need some follow up PR's to fix more stuff?

@ewgRa
Copy link
Contributor

ewgRa commented May 5, 2017

@ruflin I don't think so, it was kind of typo, and fully fixed and covered by test now.

@Tobion
Copy link
Collaborator

Tobion commented May 31, 2017

@ruflin can you make a patch release as this bug could affect many people?

@ruflin
Copy link
Owner

ruflin commented Jun 2, 2017

@Tobion Yes, that is possible. Put it on my TODO list for next week. Hope that works.

@mweibel
Copy link
Contributor

mweibel commented Jun 7, 2017

@ruflin +1 on the patch release. Affects us right now :) Thanks! 👍

@ruflin
Copy link
Owner

ruflin commented Jun 7, 2017

@mweibel
Copy link
Contributor

mweibel commented Jun 7, 2017

Thanks! I noticed 5.2.1 has a BC break if you override Elastica\Client::request()

see: FriendsOfSymfony/FOSElasticaBundle#1258

@ruflin
Copy link
Owner

ruflin commented Jun 12, 2017

Oh, good point :-( Should we add this to the CHANGELOG? Thanks for fixing it in the bundle.

mhernik pushed a commit to mhernik/Elastica that referenced this pull request Jul 24, 2017
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.

[5.2] Index::setSettings broken?
5 participants