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

Remove not needed dependencies from production code #34

Merged
merged 1 commit into from
Aug 25, 2015
Merged

Conversation

JeroenDeDauw
Copy link
Member

No description provided.

@JeroenDeDauw
Copy link
Member Author

I did not get rid of wikibase/data-model-serialization right away as it turns out that we'd still need to pass in the dv (de)serializer anyway. It's also unclear what to best do then. Just passing in several serializers does not seem good, as then every time a new feature needing another one is added, you'd need an extra constructor param. Passing the factories would not have that issue... not the nicest approach ever though probably the best that can be done

Still, removed 7 of 13 component deps :)

/**
* @covers Wikibase\Api\Service\RevisionSaver
*/
class RevisionSaverTest extends \PHPUnit_Framework_TestCase {
Copy link
Member Author

Choose a reason for hiding this comment

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

That's a lot of lines of test code to test the constructor which has no logic anyway. Also found some other very dubious tests, though those did not break, so I left them alone.

addshore added a commit that referenced this pull request Aug 25, 2015
Remove not needed dependencies from production code
@addshore addshore merged commit 3e27220 into master Aug 25, 2015
@addshore addshore deleted the rm-deps branch August 25, 2015 07:29
addwiki-ci pushed a commit that referenced this pull request Feb 15, 2021
* Use ^2.7 of addwiki packages

This isn't actually "needed" but seemingly things are having
issues because of the switch from master to main branches.
So let's see if this fixes things.

* Try no composer cache

* Keep master branch alias until next release

* Remove no cache options, didn't do anything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants