SemanticMediaWiki / SemanticScribunto

Provides service functions to support the Scribunto extension
Other
23 stars 14 forks source link

fix #48 (mw.set drops property names with numbers in key-value mode) #49

Closed oetterer closed 6 years ago

oetterer commented 6 years ago

adds:

closes #48

oetterer commented 6 years ago

hm. Can I be so bold and assume, that the failing master test is not caused by my fix...

mwjames commented 6 years ago

hm. Can I be so bold and assume, that the failing master test is not caused by my fix..

Yes, and most likely caused by [0].

PS: [1] shows how to deal with different MW releases where the output changed.

[0] https://github.com/wikimedia/mediawiki/commit/3bae295aef6f6495dc37802f1f4f6956c9a5648c [1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/24ef304aa31a2cd20123bf5e40b1a178dd7d5f31/tests/phpunit/Integration/JSONScript/TestCases/s-0014.json#L70-L112

Cheers

On 3/22/18, Tobias Oetterer notifications@github.com wrote:

hm. Can I be so bold and assume, that the failing master test is not caused by my fix...

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/SemanticMediaWiki/SemanticScribunto/pull/49#issuecomment-375333692

oetterer commented 6 years ago

thank you @mwjames, that helps. Will fix the tests tomorrow!

oetterer commented 6 years ago

@mwjames you could have mentioned, that I had to patch \SMW\Scribunto\Integration\JSONScript\SemanticScribuntoJsonTestCaseScriptRunnerTest first to use this feature! ;) All ready now. I took the liberty to merge the test patches, but normally I would let you (or @kghbln) do the honors.

mwjames commented 6 years ago

@mwjames you could have mentioned, that I had to patch

Sorry this slipped my mind.

I thought I'd give you an early feedback so that you can work your way through without me having to intervene during the weekend.

kghbln commented 6 years ago

@mwjames Should I do a 1.1.1 next week?

mwjames commented 6 years ago

Should I do a 1.1.1 next week?

If you have time then that would be splendid.