Граф коммитов

220 Коммитов

Автор SHA1 Сообщение Дата
Kushagra Thapar 75d5576d4b Merge branch 'v2.1.x' of https://github.com/microsoft/spring-data-cosmosdb into v2.1.x 2019-12-26 13:16:01 -08:00
Kushagra Thapar 4c750da6f6
Release/2.1.9 (#464)
* Updated version to 2.1.8

* Bumped version to 2.1.9
2019-12-26 13:15:42 -08:00
Kushagra Thapar 89ad8d9293 Merge branch 'v2.1.x' of https://github.com/microsoft/spring-data-cosmosdb into v2.1.x 2019-12-26 11:29:57 -08:00
Kushagra Thapar a02ce1f0da
Find by id api fix (#463)
* Updated version to 2.1.8

* Fixed find by id API to return empty on error

* Added another test for findById Not Found scenario

* changed this.repository to repository
2019-12-26 11:29:31 -08:00
Kushagra Thapar 737f469cdf Merge branch 'v2.1.x' of https://github.com/microsoft/spring-data-cosmosdb into v2.1.x 2019-12-26 09:53:23 -08:00
Kushagra Thapar 6149596828
Auto create container flag (#462)
* Updated version to 2.1.8

* Added autoCreateCollection annotation field

* Linting error fix

* Fixed test with empty result because of the fix

* Reverting findById API behavior

* Removed unused collection object
2019-12-23 16:10:07 -08:00
Kushagra Thapar 4600b7bde9
Update snapshot version 2.1.9 snapshot (#444)
* Updated version to 2.1.9-SNAPSHOT version
2019-10-20 21:59:07 -07:00
Kushagra Thapar 85b6496f34 Merge branch 'v2.1.x' of https://github.com/microsoft/spring-data-cosmosdb into v2.1.x 2019-10-18 02:38:29 -07:00
Kushagra Thapar 3e636d3be5
Updated version to 2.1.8 (#443) 2019-10-18 02:38:10 -07:00
Kushagra Thapar 664ca2aa0b Updated version to 2.1.8 2019-10-18 02:12:04 -07:00
Kushagra Thapar dbd75f6e70
Added deprecation of DocumentDbAPIs (#442)
* Added deprecation of DocumentDbAPIs

* Updated ISO date pattern

* Updated continuation token for last page

* Added deleteByIdAndPartitionKey API
2019-10-18 02:08:05 -07:00
Kushagra Thapar 6c207219a5
Added new feature API for find by id and partition using read document() call (#433) 2019-09-26 18:41:27 -07:00
Domenico Sibilio 4f43dcf266 Optimistic Lock implementation based on _etag field (#396)
* Optimistic Lock first implementation

* Ignore warnings on "_etag" field name not matching Java conventions

* Fix JUnit test that was checking on wrong illegal arguments

* Update precondition not met message to match new version

* Precondition is not met to is not met
2019-09-26 09:40:35 -07:00
Domenico Sibilio a1f7dd3116 Enable SpEL expressions for @Document collection name (#390)
* Evaluate SpEL expressions for @Document collection name

* Polish SpEL expression resolution for @Document collection

* DocumentDbFactory renamed to CosmosDbFactory

* Fix broken JUnit tests due to wrong ObjectMapper
2019-09-25 12:35:40 -07:00
Kushagra Thapar b500a9ac7f
Optimized test resources (#430)
* Updated tests to optimize resources, not create resources multiple times, and re-use existing resources

* Updated cosmosItemProperties toObject to mappingDocumentDbConverter read() API call
2019-09-25 08:07:18 -07:00
kxmas 488660839d customize object mapper from the object mapper factory (#382)
* customize object mapper from the object mapper factory

* remove objectmapper instance creation from tests

* Revert "remove ZoneDateTimeDeserializer. Redunandant of JavaTimeModule from Jackson"
2019-09-24 13:37:39 -07:00
kxmas 3ae374f0f8 Custom partition key name (#383) 2019-09-24 10:57:54 -07:00
Kushagra Thapar d9c60860b5
Updated travis not to run on external PRs (#427) 2019-09-11 13:05:05 -07:00
Sherzod Mamadaliev 1cd5f13608 Fix string charset name to constant (#417) 2019-09-11 00:34:19 -07:00
JiaLin 6c97dc5f4a update spring dependency versions 2019-08-19 22:10:57 +08:00
Kushagra Thapar 2d976a5a42 Updating the version to 2.1.8-SNAPSHOT (#414) 2019-08-19 15:15:19 +08:00
Kushagra Thapar 68d7405b98 Updated readme to show 2.1.7 version (#413) 2019-08-19 09:35:57 +08:00
Kushagra Thapar cb6a76cb23 Removed dependency from reactive cosmos template because it was initiating two cosmos clients (#412) 2019-08-16 17:05:46 +08:00
Kushagra Thapar d1304164a1 Implemented reactive API replacing sync API for DocumentDbTemplate (#411)
* Implemented reactive API replacing sync API for DocumentDbTemplate

* Updated Sample code
Updated examples
Use of Cosmos Key Credential
Bumped up versions for spring-data sdk, examples, samples

* Code review comments. Improvements with APIs, and codacy comments
2019-08-16 12:06:15 +08:00
Kushagra Thapar b9476204cc Cosmos key credential support (#408)
* Added support for Cosmos Key Credential
Added new tests
Updated existing tests
Updated azure-cosmos version to 3.1.0
Added secondary key to application.properties
Updated build.xml with secondary key

* add cosmosdb.secondaryKey for CI

* add cosmosdb.secondaryKey in setup.bat for CI

* Removing getter, as its not required and we don't want to expose public
API for cosmosClient

* Adding private getter back because of compilation issues
2019-08-09 18:53:41 +08:00
Kushagra Thapar 1fefc23172 Spring Data Cosmos DB v3 reactor SDK implementation (#394)
* Adding v3 sdk dependency

* Adding support to Reactor types using Cosmos V3 beta SDK
This PR includes Reactive Operations, Templates and Repository as part of a complete plan of migrating entire operations to new Cosmos SDK

* Fixing comment

* Debug commit

* Debug commit

* Debugging test failures

* Debugging test failures

* Debugging test failures

* Debugging test failures

* Debugging test failures

* Debugging test failures

* Debugging test failures

* Moving to latest cosmos sdk (v3)

* Removing debugging code

* Minor refactoring changes

* Removed unused code, print statements, TODOs

* Reducing the number of characters in a line

* Reducing number of lines again to resolve check style

* Code review comments, removed unused variables, converted private instances to local variables

* More code review comments by codacy

* More codacy comments

* Another set of codacy comments

* Added comments to empty method body

* Code Review comments

* Removed unused and un-implemented code
2019-07-31 14:36:44 +08:00
Xiaolu Dai b0f028b3fd
add customize db config to README.md (#402) 2019-07-27 21:45:43 +08:00
Xiaolu Dai 96514d8fe3
use another way to implement travis_wait (#401) 2019-07-27 11:13:32 +08:00
Xiaolu Dai aab78b64d4
remove leading and trailing quote (#397)
* remove leading and trailing quote

* update setup.bat to remove quotes from cosmosdb.key

* switch to openjdk8 because oraclejdk8 of travis fails to install
2019-07-25 11:25:34 +08:00
Domenico Sibilio 6db6c8b960 Fix typos in HowToContribute.md (#392)
* Fix typos in HowToContribute.md
* Fix typo Comos DB to CosmosDB
2019-07-20 19:18:40 +08:00
Sarag Luna b65e2bf176
Fix CI (#395)
* fix broken ci

* use travis_wait
2019-07-20 17:00:49 +08:00
weiping 60f9c38739
Requires DocumentDBConfig be provided as bean (#357) 2019-06-08 08:07:07 +08:00
Pan Li a34f2cca20
Adjust ci pipeline. (#367)
* Adjust ci pipeline.

Signed-off-by: Pan Li <panli@microsoft.com>
2019-05-08 22:04:24 -05:00
blackbaud-alanacable 3a2754b452 Issue 363 (#365)
Preserve Sort when creating DocumentDbPageRequest
2019-05-02 10:41:16 +08:00
weiping f349fce589
Change master version to a snapshot version (#356) 2019-03-27 09:44:58 +08:00
Pan Li f26b4bffa0
Update master version to 2.1.2. (#351)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-18 10:59:18 -05:00
weiping 9d8ed0f3f0
Add snapshots repository configuration to README (#344)
* Add snapshots repository configuration to README

* Add nexus snapshot badge to README
2019-03-12 15:51:48 +08:00
weiping 25a71636d0
Rename snapshot version to be picked up by shields (#346) 2019-03-12 13:42:14 +08:00
Pan Li 4d828c4002
Upgrade master version to 2.1.2.BUILD-SNAPSHOT. (#340)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-06 02:47:39 -06:00
Pan Li 96da2c46fc
Update master version to 2.1.1. (#339)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-06 02:24:36 -06:00
Pan Li 0b264933f0
Allow user custom RequestOptions when configuration, #322. (#323)
* The config about PartitionKey and Throughput may be override.

Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-06 01:51:09 -06:00
Pan Li 9aea95a0cb
Delete collection for each IT test. (#329)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-06 00:49:27 -06:00
Pan Li b744cc9378
Adjust timestamp level to second (#331)
* Adjust time stamp to second level.

Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-06 00:27:18 -06:00
Pan Li d27a55534c
Add 3 times retry for telemetry sending. (#334)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-06 00:08:45 -06:00
Pan Li 14873e01f1
Remove dependency on ai sdk. (#330)
* Remove dependency on ai sdk.
* Send data by springframework web restTemplate.

Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-05 08:47:04 -06:00
Pan Li 966084bc80
Add Data/Telemetry to README. (#327)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-03-03 19:44:47 -06:00
Pan Li 5563d32efe
Adjust travis ci pipeline. (#325)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-02-27 19:48:46 -06:00
Pan Li d090dcf2a7
Fix refer link for partitionKey sample. (#318)
Signed-off-by: Pan Li <panli@microsoft.com>
2019-01-16 20:05:53 -06:00
Pan Li f5d53ea8d2
update sample for spring boot 2.1.0. (#316)
Signed-off-by: Pan Li <panli@microsoft.com>
2018-12-18 23:33:11 -06:00
Pan Li a1140cbab9
Upgrade version to 2.1.1.BUILD-SNAPSHOT. (#315)
Signed-off-by: Pan Li <panli@microsoft.com>
2018-12-18 23:20:12 -06:00