Skip to content

Conversation

eddumelendez
Copy link
Contributor

Add Couchbase Auto-Configuration support for entities and repositories.

<exclusions>
<exclusion>
<artifactId>jcl-over-slf4j</artifactId>
<groupId>org.slf4j</groupId>
Copy link
Member

Choose a reason for hiding this comment

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

please swap those (groupId first)

@simonbasle
Copy link

@eddumelendez @snicoll since the spring-data-couchbase module is in the process of being rewritten and ported to Couchbase SDK 2.x, I think it'd be better to wait for it before starting integration in Spring Boot. See (work in progress) https://github.com/spring-projects/spring-data-couchbase/tree/2.0.x

@eddumelendez
Copy link
Contributor Author

@simonbasle I will update the PR fixing @snicoll comments and I will create another branch moving to spring-data-couchbase version 2.0.x. I will share with you guys. Thanks.

@philwebb philwebb added the status: on-hold We can't start working on this issue yet label Jul 16, 2015
@simonbasle
Copy link

coming back to this today, it looks to me like the spring-data-couchbase version is never set, or am I mistaken? @eddumendelez did you make any attempt at moving this over to spring-data-couchbase 2.0.0 (which is in M1 for now actually)?

@eddumelendez
Copy link
Contributor Author

@simonbasle Currently using Gosling-RELEASE in this dependency

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-releasetrain</artifactId>
    <version>${spring-data-releasetrain.version}</version>
    <scope>import</scope>
    <type>pom</type>
</dependency>

In which version will be spring-data-couchbase:2.0.0 in order to include it in the PR? I worked in changes for 2.0.0 but let me review this weekend in order to update this PR.

@snicoll
Copy link
Member

snicoll commented Sep 18, 2015

@eddumelendez we'd like to merge this PR and it won't be in the Spring Data release train before the next major so you'll need to add the dependency yourself in spring-boot-dependencies. Let us know if you don't have time to work on the PR so that someone else can take over (RC1 date is approaching).

@simonbasle
Copy link

@eddumelendez it won't be part of the official Spring Data release train before Hopper... Current version is 2.0.0.M1 which is a milestone released outside of the release train (published in the Spring snapshot repository).

@snicoll when is the RC1 deadline for the next Spring Boot version? I wonder if it is ok to include a Milestone version in it... And the current code is close to a state where at least a M2 could be released...

@snicoll
Copy link
Member

snicoll commented Sep 18, 2015

When is your RC scheduled? Ours is in two weeks.

@simonbasle
Copy link

with the Page, Slice and PagingAndSortingRepository support that I just added, I think we can schedule a RC in 1 to 2 weeks as well... however I'm not sure that @olivergierke is available to do that in the next two weeks :(

@eddumelendez
Copy link
Contributor Author

I will submit the update to this PR tonight, at my time 😄

@eddumelendez
Copy link
Contributor Author

PR has been updated :)

@snicoll
Copy link
Member

snicoll commented Sep 21, 2015

Thanks for you hard word Eddu.

@simonbasle I discussed this matter with @wilkinsona and we need a stable couchebase release for our release candidate so I am afraid it won't happen for 1.3. We may consider it for a point release though.

@simonbasle
Copy link

@snicoll ah I see, too bad 💔 I'll work toward a stable release of SDC... a new version (at least a milestone) is needed anyway since we must rely on a Couchbase SDK release that is available on Maven Central (as pointed out by the CI error)...

@eddumelendez thanks for the 🎁 of PR 😃, looks like there's a tiny bit more work to do, I'll keep you updated

@simonbasle
Copy link

(tracking the issue of spring-data-couchbase needing dependency on a GA couchbase sdk in https://jira.spring.io/browse/DATACOUCH-164)

@snicoll
Copy link
Member

snicoll commented Sep 21, 2015

👍

@snicoll
Copy link
Member

snicoll commented Dec 16, 2015

@simonbasle what's the status on the couchbase SDK?

@simonbasle
Copy link

@snicoll we are pretty much ready for a 2.0.0 👍 but we need to do a RC before the release, and I've been unable to get in touch with @olivergierke in the past few weeks about that matter 😢 💔

@eddumelendez eddumelendez force-pushed the gh-3498 branch 2 times, most recently from b674fd8 to 8ecd16a Compare December 28, 2015 09:02
@eddumelendez
Copy link
Contributor Author

PR has been updated with the RC, couchbase validator added, HealthIndicator has been added too. :)

@eddumelendez
Copy link
Contributor Author

PR has been updated with version 2.0.0.RELEASE.

@snicoll snicoll added type: enhancement A general enhancement for: team-attention An issue we'd like other members of the team to review and removed status: on-hold We can't start working on this issue yet labels Feb 9, 2016
protected static class CouchbaseConfiguration {

@Bean
public CouchbaseOperations cassandraOperations() {

Choose a reason for hiding this comment

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

typo there method name should be couchbaseOperations 😉

@@ -273,6 +274,11 @@
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-couchbase</artifactId>
<version>1.4.0.BUILD-SNAPSHOT</version>

Choose a reason for hiding this comment

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

@snicoll have a doubt about this version number being relevant. should the version of a spring-boot couchbase starter be in sync with the spring data version number or the current spring boot version number?

Copy link
Member

Choose a reason for hiding this comment

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

Nope. What you're suggesting would be a nightmare IMO ;-) All "official" Spring Boot starters have the same version: the version of Spring Boot you're using.

Choose a reason for hiding this comment

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

Good point, makes sense

@simonbasle
Copy link

look good to me, 👍 and thanks for doing that @eddumelendez!

@snicoll snicoll self-assigned this Feb 9, 2016
@snicoll snicoll removed the for: team-attention An issue we'd like other members of the team to review label Feb 10, 2016
@snicoll snicoll added this to the 1.4.0.M1 milestone Feb 10, 2016
@snicoll
Copy link
Member

snicoll commented Feb 15, 2016

I am trying to run the sample and I can't manage to get it working. I've started to document how to create the all view for the User and managed to get that working but no matter what I do, the findAll returns an empty list. Can @eddumelendez or @simonbasle help? Thanks!

snicoll added a commit to snicoll/spring-boot that referenced this pull request Feb 15, 2016
@simonbasle
Copy link

@snicoll maybe it has to do with the consistency of the view? views can take a small amount of time indexing new data and can return stale data by default (see AbstractCouchbaseConfiguration.defaultConsistency). This was made default so that a large amount of document being indexed wouldn't impact the performance too much, but I wonder if strong consistency should be made the default... cc @daschl

@snicoll snicoll closed this in da3b49e Feb 16, 2016
snicoll added a commit that referenced this pull request Feb 16, 2016
* pr/3499:
  Polish contribution
  Add Couchbase support
@eddumelendez eddumelendez deleted the gh-3498 branch January 17, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants