Skip to content

Added a table module to switch storage with config option#560

Merged
gwicke merged 2 commits into
wikimedia:masterfrom
Pchelolo:backend_switch
Mar 21, 2016
Merged

Added a table module to switch storage with config option#560
gwicke merged 2 commits into
wikimedia:masterfrom
Pchelolo:backend_switch

Conversation

@Pchelolo
Copy link
Copy Markdown
Contributor

Introduced a simple wrapper for storage modules that allows to select backend implementation with a config option. After this is landed, and vagrant is updated, we can remove the wmf_sqlite.yaml and wikimedia.org.sqlite.yaml files. Also, we don't need to do the magic with temp files when running tests in sqlite mode.

cc @wikimedia/services

Comment thread sys/table.js
@@ -0,0 +1,13 @@
"use strict";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A small comment explaining what this does would be useful.

@gwicke
Copy link
Copy Markdown
Member

gwicke commented Mar 21, 2016

Nice! Might be nice to add a little comment, but otherwise this looks good to go to me.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.05%) to 92.947% when pulling 6e5d04f on Pchelolo:backend_switch into 2b33a47 on wikimedia:master.

gwicke added a commit that referenced this pull request Mar 21, 2016
Added a table module to switch storage with config option
@gwicke gwicke merged commit fd4aafd into wikimedia:master Mar 21, 2016
@Pchelolo
Copy link
Copy Markdown
Contributor Author

Created a patch for vagrant to use new config option: https://gerrit.wikimedia.org/r/278764

@d00rman
Copy link
Copy Markdown
Contributor

d00rman commented Mar 22, 2016

This also needs a prod config change

wmfgerrit pushed a commit to wikimedia/mediawiki-vagrant that referenced this pull request Mar 22, 2016
After wikimedia/restbase#560 we're able
to switch between cassandra and sqlite by a config option. This
patch adds this option to vagrant, so we would be able to delete
vagrant-specific configs from RESTBase codebase.

Change-Id: I8a8fecaeed99fc1b3df55dd0fe9f534e29e2a66c
@d00rman
Copy link
Copy Markdown
Contributor

d00rman commented Mar 22, 2016

This also needs a prod config change

Ah no, actually it doesn't strictly need it due to the set default. Nevertheless, it's good to have the complete config, so I put up https://gerrit.wikimedia.org/r/#/c/278893/ for today's PuppetSWAT.

@Pchelolo Pchelolo deleted the backend_switch branch April 8, 2016 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants