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

227 Коммитов

Автор SHA1 Сообщение Дата
Kushagra Thapar de742c4be0
Updated azure-cosmos version to 3.6.0-beta1 and spring-data-cosmosdb versions to 2.2.2.M1 (#472) 2020-01-06 15:25:09 -08:00
Kushagra Thapar 0cd1326d1e
Updating version to next snapshot version (#470) 2020-01-02 09:38:34 -08:00
Kushagra Thapar 8c1631f835
Bumped up version for release (#469) 2019-12-31 11:40:38 -08:00
Kushagra Thapar 0449d5acc8
Add feed response statistics (#468)
* Added consistent and better exception handling,
Added reactive repository integration test.
Fixed few API bugs

* Added request charnge and activity id as part of ResponseDiagnostics using CosmosResponseStatistics

* Updated innerException to CosmosClientException

* Updated the instance fields to final
2019-12-31 00:21:00 -08:00
Kushagra Thapar 8c240abc91
Exception Handling (#467)
* Added consistent and better exception handling,
Added reactive repository integration test.
Fixed few API bugs

* Updated innerException to CosmosClientException
2019-12-30 19:08:37 -08:00
Kushagra Thapar 6ea8892b5c
Http header size cosmosdb fix (#466)
* Added auto create collection annotation field

* Fixed find by id APIs to return empty optional on not found
2019-12-26 16:46:49 -08:00
Kushagra Thapar 672876f3da
Passed sorting to next pageable request from cosmos page request (#461) 2019-12-16 13:05:55 -08:00
Kushagra Thapar 797fe3ef51
Updated versions to new release (#455) 2019-11-07 11:08:27 -08:00
Kushagra Thapar 840072ed13
Pagination Bug Fix (#453)
* Pagination bug fix
* Disable telemetry by default
* Updated cosmos db to 3.4.0
* Updated emulator tests to exlcude PageablePersonRepositoryIT.java
* Improved test to check correctness of new pagination implementation
* Updated readme to provide more clarity
2019-11-07 09:53:23 -08:00
Kushagra Thapar b4167d61be
Updated version to 2.2.1-SNAPSHOT (#449) 2019-10-22 13:28:06 -07:00
Kushagra Thapar c0d21a7905
Updated version to 2.2.0 (#448) 2019-10-21 22:29:19 -07:00
Kushagra Thapar 0dedf3db15
Fixed the logback serialization issue addressed in Cosmos DB SDK (#447) 2019-10-21 21:35:29 -07:00
Nicola Lagnena 8dd6025ec7 add id to args of String#format to match number of format specifiers (#438)
README file update
2019-10-21 15:59:20 -07:00
Kushagra Thapar 18dbdc054c
Diagnostics string feature (#445)
* Added Response Diagnostics String, and Query Metrics feature.
Updated versions to new spring-boot, spring-data versions.
Updated sample application with response diagnostics string processor.
Updated README on the usage of diagnostics information

* Added populateQueryMetrics to application.properties

* Added logback-test.xml for test logging

* Removed diagnostics logging from tests
2019-10-21 07:35:53 -07:00
Kushagra Thapar f7e06b79d4
Added Delete by Id and partition key API (#437)
* Added Delete by Id and partition key API

* Added request units to collection create implementation.
Updated composite token to be used when checking last page
2019-10-09 11:35:21 -05:00
Domenico Sibilio e72ce3ba88 Add documentation for dynamic collection naming and optimistic locking (#436) 2019-10-02 07:41:44 -07:00
Kushagra Thapar 03d639dfb0
Updated version to snapshot (#435) 2019-09-30 01:07:53 -07:00
Kushagra Thapar d028e00ab9
Full Reactive Repository Support, Rebranding DocumentDb to CosmosDb (#434)
* Addind reactive repository support

* deleteAll fix

* Fixing deleteAll issue
Rebranding DocumentDB types to Cosmos
Removing docdb dependency
Upgrading SDK to 3.2
Changing perf tests to use 3.2 sync api
Other refactoring

* Upgraded pom.xml to use new spring RC versions. Made other changes to support new versions

* Updated pom.xml to milestone version

* Removing unused imports

* Renaming bean method

* Renamed documentdb to cosmosdb

* updated pom.xml with correct file name

* Added new APIs for find by id with partitionkey

* Updated cosmos factory to take in connection policy and consistency level in account while creating cosmos client

* Removed and implemented some of the TODOs from spring feedback

* Updated readme to reflect CosmosRepository

* Updated Reactive Cosmos Entity MetaData to be used in Reactive Cosmos Query pipeline

* Updated sample to full reactive support.
Updated error handlers for reactive cosmos template to throw CosmosDbAccessException
2019-09-27 00:27:39 -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