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

store revision list in keyPrefix:revisions #32

Merged

Conversation

ghedamat
Copy link
Contributor

fix #28

@@ -11,10 +12,12 @@ module.exports = CoreObject.extend({
set: function() { },
del: function() { },
zadd: function(key, score , tag) {
this.recentRevisions.push(key + ':' + tag);
assert(key.match(/:revisions$/));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@achambers @lukemelia I'm doing an assertion for this in the fake client.. it's not super nice and not even needed but given that we stub redis entirely it seemed the most appropriate place...

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, this is kind of ugly. maybe you can extend the fake client with a method that has the assert for just the test that cares about it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, as mentioned, I agree..
it spans across a bunch of tests, but we already reopen the redis client in some tests anyway so it should do no harm..

will ping you shortly with an update

@ghedamat ghedamat force-pushed the rename-revision-list-key branch 2 times, most recently from 9c7ddc8 to f82ede2 Compare September 15, 2015 21:16
@ghedamat
Copy link
Contributor Author

@lukemelia ping, let me know if this sounds better

@ghedamat ghedamat force-pushed the rename-revision-list-key branch from f82ede2 to 47f409e Compare September 15, 2015 21:17
},
zrem: function(val,revision) {
var i = this.recentRevisions.indexOf(revision)
zrem: function(key,revision) {
Copy link
Contributor

Choose a reason for hiding this comment

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

add space after comma

@lukemelia
Copy link
Contributor

One tiny nit, otherwise, looks good!

@ghedamat ghedamat force-pushed the rename-revision-list-key branch from 47f409e to 3563b16 Compare September 16, 2015 00:36
@ghedamat
Copy link
Contributor Author

@lukemelia done!

@ghedamat ghedamat force-pushed the rename-revision-list-key branch from 3563b16 to 1999ef8 Compare September 16, 2015 01:33
@ghedamat
Copy link
Contributor Author

also updated the README since we know list the keys there as well..

lukemelia added a commit that referenced this pull request Sep 16, 2015
store revision list in `keyPrefix:revisions`
@lukemelia lukemelia merged commit 027297e into ember-cli-deploy:master Sep 16, 2015
@lukemelia
Copy link
Contributor

👍

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.

Don't use prefix as key name for revisions list
2 participants