Commit Graph

419 Commits

Author SHA1 Message Date
David Kelly
7601b2beba DATACOUCH-484 - Thread safety issue using findBy.
Support for positional parameters necessitated caching them, however
that was not done in a threadsafe fashion.  ThreadLocal storage is
sufficient to take care of the issue.  Added test for it while at it.
2019-11-20 15:38:29 -07:00
David Kelly
e8468b7d2e DATACOUCH-479 - Fix issue with testcontainers usage.
After updating the POM to not have a fixed testcontainers version, we
discovered the tests were failing with later versions of testcontainers.  It
seems that they updated how they did WaitStrategy, deprecating the old way, so
our WaitStrategy was not being called.  That means no setup was done to
the cluster (passwords, buckets, etc...).  Simple fix was to move to the
new interface.
2019-11-20 15:31:24 -07:00
Mark Paluch
c96c497807 DATACOUCH-488 - Prepare 3.2.2 (Moore SR2). 2019-11-18 12:31:53 +01:00
Mark Paluch
b49df4288e DATACOUCH-488 - Updated changelog. 2019-11-18 12:31:52 +01:00
Mark Paluch
b7ababbc04 DATACOUCH-487 - Updated changelog. 2019-11-18 12:16:29 +01:00
Christoph Strobl
44c036a076 DATACOUCH-481 - Prepare 3.2.1 (Moore SR1). 2019-11-04 14:54:16 +01:00
Christoph Strobl
2a51368c19 DATACOUCH-481 - Updated changelog. 2019-11-04 14:54:15 +01:00
Christoph Strobl
04a1608fcf DATACOUCH-480 - Updated changelog. 2019-11-04 10:34:53 +01:00
Mark Paluch
ffea38114f DATACOUCH-469 - Prepare 3.2 GA (Moore). 2019-09-30 15:50:44 +02:00
Mark Paluch
e9bc3ffb34 DATACOUCH-469 - Updated changelog. 2019-09-30 15:50:43 +02:00
Mark Paluch
e4a59accf0 DATACOUCH-468 - Updated changelog. 2019-09-30 11:16:17 +02:00
Mark Paluch
b02bc45b81 DATACOUCH-470 - Prepare 3.2 RC3 (Moore). 2019-09-06 10:10:13 +02:00
Mark Paluch
312527b85b DATACOUCH-470 - Updated changelog. 2019-09-06 10:10:12 +02:00
David Kelly
35c72238cb DATACOUCH-475 Couchbase builds failing.
There was an integration test which wasn't named properly, and
so it was running with regular tests.  This left the container
around, and all subsequent integration tests failed.  Simple
fix.
2019-08-15 14:11:29 -07:00
Mark Paluch
d020453008 DATACOUCH-471 - Add HTTPS entries into spring.schemas.
To resolve XSD files properly from the classpath, their HTTPS reference must be present in the spring.schemas to avoid internet interaction for resolving an XSD file.
2019-08-07 08:31:40 +02:00
Mark Paluch
65bf1579bc DATACOUCH-458 - Prepare 3.2 RC2 (Moore). 2019-08-05 15:35:05 +02:00
Mark Paluch
9ca5380c8a DATACOUCH-458 - Updated changelog. 2019-08-05 15:35:04 +02:00
Mark Paluch
f36d03527b DATACOUCH-457 - Updated changelog. 2019-08-05 11:34:29 +02:00
Mark Paluch
756d4622b1 DATACOUCH-450 - Updated changelog. 2019-08-05 11:08:57 +02:00
David Kelly
98a4999f37 DATACOUCH-383 - RxJavaCouchbaseTemplate should return generated id when saving.
Seems we fixed this for the non-Rx version, but not the RxJava version.  Followed
same basic strategy which was used for version, added a simple test.
2019-08-01 09:58:32 -07:00
Mark Paluch
1de7acd1eb DATACOUCH-465 - Adapt to changed API in Commons. 2019-07-26 09:25:40 +02:00
David Kelly
4341edf941 DATACOUCH-462 - ReactiveCouchbaseRepository count() will raise exception when bucket is empty.
Small cleanup in the deleteAll test (which actually tests this as well), while
we are there.

Also, removed an unused import
2019-06-28 10:21:41 -06:00
David Kelly
64a91f1eb6 DATACOUCH-356 Fix cast issue in deleteAll (#201)
Plus a test.  I didn't notice that Douglas Six did basically the
same thing in another PR (this was a re-do of an earlier PR which
didn't quite do what we'd like).  So since I already had it done
and had a test, I closed that PR (#163) and added him to the author
list.

Also - repository.count() raises a NoSuchElementException after you
delete all the documents.  That seems like a bug, but we will deal
with that separately.
2019-06-26 16:37:11 -06:00
Johannes Jasper
55235b2bc2 DATACOUCH-206 - Provides a way to set distinct consistency on repository methods.
* add @WithConsistency annotation
* evaluate it and set consistency in AbstractN1qlBasedQuery
* evaluate it and set consistency in ReactiveAbstractN1qlBasedQuery
* add documentation on @WithConsistency

Original pull request: #198.
2019-06-26 21:48:01 +02:00
David Kelly
7b3352e8db Fix test issue which only shows up in java 11 (#199)
Seems that LocalDateTime now has microseconds, so the comparison of the unconverted
and converted LocalDateTime will fail, since the conversion/mapping only retains
millisecond precision.
2019-06-21 09:30:55 -07:00
Christoph Strobl
74e5dfea5d DATACOUCH-444 - Prepare 3.2 RC1 (Moore). 2019-06-14 14:43:17 +02:00
Christoph Strobl
c2d70ddfe6 DATACOUCH-444 - Updated changelog. 2019-06-14 14:43:16 +02:00
Christoph Strobl
1dff42a219 DATACOUCH-449 - Updated changelog. 2019-06-14 13:27:17 +02:00
Mark Paluch
abee71cf54 DATACOUCH-439 - URL Cleanup. 2019-06-05 11:34:54 +02:00
David Nault
67479aa756 DATACOUCH-452 - SimpleCouchbaseRepositoryIntegrationTests fails
Ignore the flaky test until we can investigate cause of failure.
2019-05-22 11:28:22 -07:00
David Nault
9080c2dede DATACOUCH-451 - Should be able to run integration tests and all unit tests
This change enables running the integration tests with the command:

    mvn verify

Update the integration tests so they compile and pass. Rename them according
to Spring Data convention (*IntegrationTests.java) so they are executed by the
failsafe plugin instead of the surefire plugin. Move them to same folder as
unit tests according to Spring Data convention.

Update the surefire plugin configuration to include unit tests in classes
named `*Test` as well as `*Tests`. Prior to this change about half of the unit
tests were being ignored.

Integration test changes
========================

Use static factory methods for Sort and PageRequest instead of calling the
constructors which are now private.

Import EvaluationContextExtension from its new package. Remove reference to
deprecated EvaluationContextExtensionSupport.

Retry all calls to `getRepository` because otherwise they may fail due to
concurrent index creation.

Fix test `shouldDeriveViewParameters` to assume results are unordered.

Fail fast if the `server.properties` resource is missing.

Increase query and view timeouts; container is a big sluggish sometimes.
2019-05-20 18:46:21 -07:00
Mark Paluch
9842e1f7e9 DATACOUCH-448 - Updated changelog. 2019-05-13 18:19:11 +02:00
Mark Paluch
fb2fd5a9fa DATACOUCH-447 - Updated changelog. 2019-05-13 14:59:29 +02:00
Mark Paluch
59f795741e DATACOUCH-445 - Prepare 3.2 M4 (Moore). 2019-05-13 11:59:05 +02:00
Mark Paluch
be93125d18 DATACOUCH-445 - Updated changelog. 2019-05-13 11:59:03 +02:00
Oliver Drotbohm
186b48b3cf DATACOUCH-441 - Updated changelog. 2019-05-10 14:18:15 +02:00
Oliver Drotbohm
767c746905 DATACOUCH-443 - Updated changelog. 2019-05-10 12:57:28 +02:00
Christoph Strobl
bca2c4a409 DATACOUCH-436 - Prepare 3.2 M3 (Moore). 2019-04-11 11:23:56 +02:00
Christoph Strobl
69c1b6fb3f DATACOUCH-436 - Updated changelog. 2019-04-11 11:23:55 +02:00
Oliver Drotbohm
599c3222e4 DATACOUCH-430 - Updated changelog. 2019-04-01 20:56:32 +02:00
Oliver Drotbohm
cc8c57ebc9 DATACOUCH-428 - Updated changelog. 2019-04-01 19:37:03 +02:00
Oliver Drotbohm
96a5929d35 DATACOUCH-440 - Updated changelog. 2019-04-01 18:52:21 +02:00
Oliver Drotbohm
e04feb97e9 DATACOUCH-427 - Updated changelog. 2019-04-01 18:49:25 +02:00
Spring Operator
2f4500e9c7 DATACOUCH-439 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 219 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Original Pull Request: #195
2019-03-22 11:19:57 +01:00
Spring Operator
769460bcb7 DATACOUCH-439 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://assets.spring.io/drupal/node/feed.xml with 1 occurrences migrated to:
  https://assets.spring.io/drupal/node/feed.xml ([https](https://assets.spring.io/drupal/node/feed.xml) result 200).
* [ ] http://stackoverflow.com/questions/tagged/spring-data with 1 occurrences migrated to:
  https://stackoverflow.com/questions/tagged/spring-data ([https](https://stackoverflow.com/questions/tagged/spring-data) result 200).
* [ ] http://stackoverflow.com/questions/tagged/spring-data-couchbase with 2 occurrences migrated to:
  https://stackoverflow.com/questions/tagged/spring-data-couchbase ([https](https://stackoverflow.com/questions/tagged/spring-data-couchbase) result 200).
* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* [ ] http://docs.spring.io/spring-data/couchbase/docs/current/api/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/couchbase/docs/current/api/ ([https](https://docs.spring.io/spring-data/couchbase/docs/current/api/) result 301).
* [ ] http://docs.spring.io/spring-data/couchbase/docs/current/reference/html/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/couchbase/docs/current/reference/html/ ([https](https://docs.spring.io/spring-data/couchbase/docs/current/reference/html/) result 301).
* [ ] http://docs.spring.io/spring/docs/current/spring-framework-reference/html/dao.html with 1 occurrences migrated to:
  https://docs.spring.io/spring/docs/current/spring-framework-reference/html/dao.html ([https](https://docs.spring.io/spring/docs/current/spring-framework-reference/html/dao.html) result 301).
* [ ] http://help.github.com/forking/ with 1 occurrences migrated to:
  https://help.github.com/forking/ ([https](https://help.github.com/forking/) result 301).
* [ ] http://projects.spring.io/spring-data-couchbase with 2 occurrences migrated to:
  https://projects.spring.io/spring-data-couchbase ([https](https://projects.spring.io/spring-data-couchbase) result 301).
* [ ] http://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd ([https](https://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd) result 301).
* [ ] http://www.springframework.org/schema/data/repository/spring-repository-1.0.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/data/repository/spring-repository-1.0.xsd ([https](https://www.springframework.org/schema/data/repository/spring-repository-1.0.xsd) result 301).
* [ ] http://www.springsource.org/projects with 1 occurrences migrated to:
  https://www.springsource.org/projects ([https](https://www.springsource.org/projects) result 301).
* [ ] http://www.springsource.org/spring-data with 1 occurrences migrated to:
  https://www.springsource.org/spring-data ([https](https://www.springsource.org/spring-data) result 301).
* [ ] http://repo.spring.io/libs-milestone with 1 occurrences migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* [ ] http://repo.spring.io/libs-snapshot with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).
* [ ] http://www.springsource.org/download with 1 occurrences migrated to:
  https://www.springsource.org/download ([https](https://www.springsource.org/download) result 302).

# Ignored
These URLs were intentionally ignored.

* http://www.springframework.org/schema/beans with 9 occurrences
* http://www.springframework.org/schema/context with 3 occurrences
* http://www.springframework.org/schema/data/couchbase with 10 occurrences
* http://www.springframework.org/schema/data/repository with 4 occurrences
* http://www.springframework.org/schema/tool with 4 occurrences
* http://www.w3.org/2001/XMLSchema with 3 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 2 occurrences

Original Pull Request: #189
2019-03-21 09:26:41 +01:00
Spring Operator
c7bcf811a7 DATACOUCH-439 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 10 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.springframework.org/schema/context/spring-context.xsd with 4 occurrences migrated to:
  https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd) result 200).
* http://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd with 10 occurrences migrated to:
  https://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd ([https](https://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd) result 200).
* http://www.springframework.org/schema/data/repository/spring-repository.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/data/repository/spring-repository.xsd ([https](https://www.springframework.org/schema/data/repository/spring-repository.xsd) result 200).
* http://java.sun.com/xml/ns/javaee/beans_1_0.xsd with 1 occurrences migrated to:
  https://java.sun.com/xml/ns/javaee/beans_1_0.xsd ([https](https://java.sun.com/xml/ns/javaee/beans_1_0.xsd) result 302).

# Ignored
These URLs were intentionally ignored.

* http://java.sun.com/xml/ns/javaee with 2 occurrences
* http://maven.apache.org/POM/4.0.0 with 2 occurrences
* http://www.springframework.org/schema/beans with 20 occurrences
* http://www.springframework.org/schema/context with 4 occurrences
* http://www.springframework.org/schema/data/couchbase with 20 occurrences
* http://www.springframework.org/schema/data/repository with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 12 occurrences

Original Pull Request: #188
2019-03-20 10:10:37 +01:00
Subhashni Balakrishnan
e1e4385896 DATACOUCH-438 - Move off deprecations in Spring Data Commons.
Remove stray import IsNewStrategyFactory. This has been removed from commons and causing build failure.

Related ticket: DATACMNS-1496.
2019-03-13 19:01:26 +01:00
Christoph Strobl
3967e2dcdd DATACOUCH-422 - Prepare 3.2 M2 (Moore). 2019-03-07 09:41:17 +01:00
Christoph Strobl
729fb1f85a DATACOUCH-422 - Updated changelog. 2019-03-07 09:41:16 +01:00
Subhashni Balakrishnan
b041f0a93e DATACOUCH-434 - Fix reactive repository asciidoc link
Original Pull Request: #179.
2019-02-26 14:08:57 -08:00