Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Added support for Redis as a backing datastore for social connections #198

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Turbots
Copy link

@Turbots Turbots commented Mar 29, 2016

This is my first commit for the Redis backed datastore for social connections. It uses the 1.7.0.RC1 release of spring-data-redis which enables support for Redis repositories. Maybe we should wait for spring-data-redis-1.7.0.RELEASE but I wanted to get it out there asap 👶

There are still some unit tests to be performed and I need to implement one final method of the, namely:

findConnectionsToUsers()

Also, I'm still not sure about the names of my classes, could someone maybe recommend more suitable names?

Thank you for commenting/contributing/improving my code 😋

@andreasevers
Copy link

👍

@kencoenen
Copy link

👍 Nice one

Added unit tests running on local redis
Unit tests will be skipped if redis is not found through the use of JUnit rules
Fixed a bug when finding social connections by providerUserId - field was not Indexed in Redis
Implemented and tested RedisUsersConnectionRepository
@odrotbohm
Copy link

@mp911de / @christophstrobl — Might be worth a glance, too. Just to double check the obvious. :)


SocialRedisConnection findOneByUserIdAndProviderIdAndProviderUserId(String userId, String providerId, String providerUserId);

void deleteByUserIdAndProviderIdAndProviderUserId(final String userId, final String providerId, final String providerUserId);
Copy link

@mp911de mp911de May 25, 2016

Choose a reason for hiding this comment

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

Derived delete…By… methods are not yet supported by Redis Repositories, see DATAKV-135 which is the pre-requisite. Entities can be deleted directly using the Repository.delete(…) method or RedisKeyValueAdapter.delete(…).

Copy link
Author

Choose a reason for hiding this comment

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

Cool, thanks for looking at it, I will make the adjustments, add unit tests and update the dependency version from 1.7.0.RC1 to 1.7.1.RELEASE

Updated spring-data-redis version to 1.7.1.RELEASE
Added RedisHash keyspace for server side queries in case of Redis Cluster
Updated delete method
Added unit tests
@habuma
Copy link
Contributor

habuma commented Jun 23, 2016

This looks interesting and something I might merge. If you have not done so yet, please sign the Individual Contributor Agreement at https://support.springsource.com/spring_committer_signup.

@Turbots
Copy link
Author

Turbots commented Jun 24, 2016

I've signed the (new) agreement, thanks for looking into this!

@habuma
Copy link
Contributor

habuma commented Oct 12, 2016

Closing PR and then will immediately reopen, in hopes of triggering Travis CI.

@habuma habuma closed this Oct 12, 2016
@habuma habuma reopened this Oct 12, 2016
@Turbots
Copy link
Author

Turbots commented Oct 12, 2016

Cool, thanks @habuma !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants