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

251 Коммитов

Автор SHA1 Сообщение Дата
Kushagra Thapar 82060b320f Removed unused imports 2020-04-03 14:04:38 -07:00
Kushagra Thapar ea6b7dbfdc Added assertThat() at the end of the test 2020-04-03 13:59:38 -07:00
Kushagra Thapar 18b5541dcc Fixed time to live annotation to consider into container creation 2020-04-03 13:39:28 -07:00
Kushagra Thapar 351c23d8d9
Deleted test containers after test completion (#521)
* Deleted test containers after test completion

* Merged RoleRepositoryCollectionIT in IntegerIdDomainRepositoryIT

* Fixed codacy issues
2020-03-31 23:41:59 -07:00
Kushagra Thapar 3ea31a9a67
Updated post release versions to 2.2.4-SNAPSHOT (#519) 2020-03-25 16:02:10 -07:00
Kushagra Thapar 946e0c8d6b
Updated version to 2.2.3.FIX1 for release (#518) 2020-03-24 22:49:10 -07:00
Kushagra Thapar 558e056760
Updated cosmos version to v3.7.1 (#517)
* Updated cosmos version to v3.7.1. Fixed flaky tests. Removed unused method

* Updated test resources RUs
2020-03-24 22:36:35 -07:00
Kushagra Thapar 4ca716c3a7
Updated Readme to reflect default ru value and its usage (#510) 2020-03-09 13:59:37 -07:00
Kushagra Thapar a84f5b7d20
Using auto create container flag in reactive repository (#509) 2020-03-09 11:04:10 -07:00
Kushagra Thapar 0ac8d64328
Updated pom to SNAPSHOT version (#506) 2020-02-25 18:57:46 -08:00
Kushagra Thapar e8a7e34b3b
Updated pom versions (#503) 2020-02-25 18:13:58 -08:00
Kushagra Thapar e9db481244
Added new upsert API which returns updated entity (#501) 2020-02-25 17:23:15 -08:00
Kushagra Thapar 7defda2cd6
Find all by partition key (#500)
* Updated term collection name, collection keyword with container name and container keyword

* Reverted cosmos version from this PR, will put that change in a separate PR

* Initial commit for find all items by partition key

* Added integration tests for find all API

* Longer line fix
2020-02-25 16:03:54 -08:00
Kushagra Thapar 97277d332c
Updated term collection name to container name (#497)
* Updated term collection name, collection keyword with container name and container keyword

* Reverted cosmos version from this PR, will put that change in a separate PR
2020-02-25 13:16:37 -08:00
Kushagra Thapar c4797a7437
Updated azure cosmos version to 3.7.0 (#498) 2020-02-25 09:10:04 -08:00
Kushagra Thapar 54a45fd5d7
Updated entity class name to domain type to follow spring conventions (#496) 2020-02-24 16:11:07 -08:00
Jonathan Leitschuh 67858fe1e1
Use HTTPS instead of HTTP to resolve dependencies (#487)
This fixes a security vulnerability in this project where the `pom.xml`
files were configuring Maven to resolve dependencies over HTTP instead of
HTTPS.

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
2020-02-24 14:30:03 -08:00
Kushagra Thapar ebff63ddaf
Added optimistic locking implementation for reactive cosmos repository (#489)
* Added optimistic locking implementation for reactive cosmos repository

* Removed unused imports

* Converted exception handling to try catch block
2020-02-12 21:01:39 -08:00
Kushagra Thapar 55034472ef
Assert that test update (#486)
* Fixed assert that address test case

* Fixed another assert that change
2020-02-10 10:31:17 -08:00
Pan Li 5bc410d4b5
Update readme (#345)
* Upgrade master version to 2.1.2.BUILD-SNAPSHOT. (#340)

Signed-off-by: Pan Li <panli@microsoft.com>

* Remove unused column

Signed-off-by: Pan Li <panli@microsoft.com>

* Added 2.2.x support to readme.

Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
2020-02-07 18:15:22 -08:00
Blackbaud-MikeLueders b493fbbc03
Int test updates (#482)
* add test assertions to RoleRepositoryCollectionIT

* have integration tests use TestRepositoryConfig so cosmosdb.database will be respected if set

* unignore test

* update AbstractCosmosConfigurationIT to respect cosmos.database if set
2020-02-07 15:12:41 -08:00
Kushagra Thapar 26f0912e0d
Updating snapshot version post release (#476) 2020-01-15 17:29:02 -08:00
Kushagra Thapar a0fccbf412
Updating spring-data-cosmosdb version for release (#475)
* Updating azure-cosmos version and spring-data-cosmosdb version for release

* Updating readme.
2020-01-14 23:44:12 -08:00
Kushagra Thapar 246a15edf9
Updated azure-cosmos version to 3.6.0-beta.2 and spring version for release (#474) 2020-01-13 12:39:34 -08:00
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