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

234 Коммитов

Автор SHA1 Сообщение Дата
Pan Li 49ee819414
Add ApplicationInsights to cosmosdb factory. (#123)
* Add ApplicationInsights to cosmosdb factory.

* Add UA suffix to user injected Client.

* Clean some code and try good name.

Signed-off-by: Pan Li <panli@microsoft.com>
Signed-off-by: Catherine Zhu <yungez@microsoft.com>
2018-05-23 15:02:18 +08:00
weiping 8465980ae8
check illegal arguments (#116)
* check illegal arguments

* remove redudant domainClass argument

* fix test as signature changed
2018-05-21 12:59:21 +08:00
Pan Li 4deda1345f
Fix one defect of null id of domain, #112 (#118)
* Add retrieve object after insert to database.

* Update findBugs for more details about line number.

* Add IT test for null id domain.

Signed-off-by: Pan Li <panli@microsoft.com>
Signed-off-by: Weiping Pan <Weiping.Pan@microsoft.com>
2018-05-16 16:34:52 +08:00
Pan Li 265b22e17d
Update README badge for Appveyor. (#121)
Signed-off-by: Pan Li <panli@microsoft.com>
Signed-off-by: Weiping Pan <Weiping.Pan@microsoft.com>
2018-05-16 16:13:08 +08:00
Pan Li b82ca7987e Add IT test for travis CI. (#105)
* Diable Appveyor for now.

* Make push only focus on build in branch other than master

* Make PR and push on master run full test.

Signed-off-by: Pan Li <panli@microsoft.com>
2018-05-15 17:15:45 +08:00
Pan Li 61b6f4ae2a
Add ttl property to annotation document, #72. (PR #102)
* Add defaultTimeToLive to Document Annotation, valid only if automatic is set

* Add the UT and IT for TimeToLive

Signed-off-by: Pan Li <panli@microsoft.com>
Signed-off-by: Weiping Pan <Weiping.Pan@microsoft.com>
2018-04-17 09:40:33 +08:00
Pan Li 21f2fa2b89
Refine the API of createCollectionIfNotExists. (#77)
* We may add more options for colletion in future.

* Cannot append thest options as parameter in API.

Signed-off-by: Pan Li <panli@microsoft.com>
Signed-off-by: Weiping Pan <Weiping.Pan@microsoft.com>
2018-04-16 13:13:04 +08:00
weiping 3b7d62f92d
fix appveyor badge url after repo renamed (#97) 2018-04-16 10:08:37 +08:00
weiping 73b4370791
remove redudant version number (#93) 2018-04-13 16:04:55 +08:00
weiping d5a0cc4865
Change ci repo name (#92)
* use latest package name

* change ci repo name
2018-04-13 15:49:05 +08:00
Yitao Dong fb7cb24b71 Update README.md (#91)
* Update README.md
2018-04-13 15:23:40 +08:00
weiping bf59541cee
fix typo (#86) 2018-04-13 10:21:47 +08:00
weiping c03266002c
change repository name (#85)
* change repository name

* fix sample code pom file
2018-04-13 09:30:25 +08:00
weiping abf7a0e6ba
change name to azure cosmos db (#84) 2018-04-12 13:32:57 +08:00
Alessandro Segala 87a946814e Updated branding in README (#82)
Updated Azure Cosmos DB branding in README, according to branding guidelines. The project name still needs to be updated to spring-data-cosmosdb.
2018-04-12 12:57:10 +08:00
Yitao Dong d2e5eb3771
Merge pull request #81 from Microsoft/update-samplecode-with-more-feature
Update samplecode with more feature covered.
2018-04-10 20:21:11 +08:00
Pan Li c78fcc4dbf Add configuration for jar package
Signed-off-by: Pan Li <panli@microsoft.com>
2018-04-10 19:35:38 +08:00
Yitao Dong 9a5c6fbbd4
Merge branch 'master' into update-samplecode-with-more-feature 2018-04-10 17:57:05 +08:00
Pan Li 6cf1872873 Update samplecode with more feature covered.
Signed-off-by: Pan Li <panli@microsoft.com>
2018-04-10 17:11:17 +08:00
weiping 011c26b43d
user property for version and upgrade spring framework to 5.0.5 (#79) 2018-04-09 15:05:15 +08:00
Pan Li f22bff3e37
remove some compile warnings, #52. (#78)
* Suppressing some unchecked casts.

* Use specific type avoiding unchecked warning.

Signed-off-by: Pan Li <panli@microsoft.com>
Signed-off-by: Weiping Pan <Weiping.Pan@microsoft.com>
2018-04-08 12:47:30 +08:00
Pan Li 27b2b9eb13
Upgrapde master version to 2.0.3-SNAPSHOT (#71)
* Uprade master version to 2.0.3-SNAPSHOT

* Update simaplecode for DocumentIndexingPolicy

Signed-off-by: Pan Li <panli@microsoft.com>
2018-03-26 11:21:24 +08:00
weiping 538624f835 change injection to setter #70, (PR #68)
Align the injection to spring-data-commons

Original issue reported from
https://github.com/Microsoft/azure-spring-boot/issues/306
https://github.com/Microsoft/azure-spring-boot/issues/304

Root cause reference
https://github.com/spring-projects/spring-boot/issues/6541
2018-03-23 14:49:28 +08:00
Pan Li 9f6e9eae43
Fix some sonar issues, #66. (PR #67)
Signed-off-by: Pan Li <panli@microsoft.com>
2018-03-16 22:26:04 +08:00
Pan Li 7e96747179
Add default value of annotation DocumentIndexingPolicy, #63. (PR #64)
* If no default, the annotation may force the user to specific values.

* From user side, this may looks a little unfriendly and inconvenient.

Signed-off-by: Pan Li <panli@microsoft.com>
2018-03-16 21:34:50 +08:00
Pan Li 9bbd615f38
Align the constant variable code style, #62. (PR #65)
Signed-off-by: Pan Li <panli@microsoft.com>
2018-03-16 14:54:18 +08:00
Pan Li dba2bd4602
Refine the test code, #60. (PR #61)
* Merge utils test code.

* Reuse constants variables.

* Renaming TestUnit method for easy understanding.

Signed-off-by: Pan Li <panli@microsoft.com>
2018-03-16 14:00:10 +08:00
Pan Li 5ff1acc4ea
Integrate constants variables for src and test, #55. (PR #59)
* Integrate constants variable in single class.

* Renaming test class Constants to TestConstants for less misleading.

Signed-off-by: Pan Li <panli@microsoft.com>
2018-03-14 15:57:14 +08:00
Pan Li 2600f859f7
Support indexing policy for collection, #23. (PR #49)
* Fix one typo for RequestUnit.

* Add new Annotation DocumentIndexingPolicy.

* Support 4 member automaic(boolean), mode(enum), includedPaths(String[]) and excludedPaths(String[])

* Implement Unit test and Integrate test for that Annotation.

* Update README.md for Annotation DocumentIndexPolicy, #23.

Signed-off-by: Pan Li <panli@microsoft.com>
2018-03-14 10:29:14 +08:00
weiping 7f9a5e44b3
load project version from property (#57) 2018-03-13 17:00:03 +08:00
weiping a13e64f54b
update appveyor configuration (#56) 2018-03-13 15:48:14 +08:00
weiping 002ddffe6d
fix warnings and invalid assertions (#53) 2018-03-13 10:47:54 +08:00
weiping 7902f8c074
refactor, fix cannot save and query Date field (#50)
* refactor, fix cannot save and query Date field

* refactor variable name as constant and init in beforeClass

* extract value mapping to a method call

* test for convert date to time milliseconds
2018-03-12 13:33:52 +08:00
weiping 953581a909
update sample code to use version 2.0.1 (#44)
* update sample code to use version 2.0.1

* add annotation hint in readme
2018-03-09 13:01:35 +08:00
weiping c3ebd4a335
replace RuntimeException with wrapped exceptions (#45)
* replace RuntimeException with wrapped exceptions

* rename package name
2018-03-09 10:29:23 +08:00
weiping 977a231a25
update snapshot version (#46) 2018-03-07 12:47:05 +08:00
yungez 513f581f17 add branch mapping (#43) 2018-03-05 15:33:07 +08:00
weiping 6824d929ea
upgrade spring 2.0 (#40) 2018-03-02 10:19:17 +08:00
weiping b72cf3f58f
Remove partition key and add and query support (#37)
* add and query support

* remove partitionkey from repository paramter

* complete test

* split test into partition and non-partition

* enable cross region when partition key value not specified

* add query partitioned collection readme

* add test find by ID field name for partitioned collection

* improve readme
2018-03-01 16:01:01 +08:00
weiping 39af47b69b upgrade documentdb sdk version (#38) 2018-02-28 15:16:39 +08:00
weiping 7a5c5ef136
Merge pull request #36 from Microsoft/0.1.5-snapshot
update to 0.1.5-snapshot
2018-02-02 13:31:25 +08:00
weiping a1c4863d49 add maven central tag 2018-02-02 11:06:49 +08:00
weiping d08c136fe8 update to 0.1.5-snapshot 2018-02-01 13:56:11 +08:00
weiping 0ec3ff2686
Merge pull request #31 from Microsoft/use-is-new-strategy
add isNewStrategy and use upsert to save
2018-01-24 16:36:42 +08:00
weiping ae4d348a02 test upsert for new document without id 2018-01-24 16:07:42 +08:00
weiping 5616cde52d add isNewStrategy and use upsert to save 2018-01-24 13:55:30 +08:00
Yitao Dong 458a4693e5
Merge pull request #30 from Matthew-Dong/master
Unify name to Spring Data DocumentDB
2018-01-23 14:18:12 +08:00
Yitao Dong 147304d994
Update README.md 2018-01-22 17:30:45 +08:00
Yitao Dong 8b471ce180
Update README.md 2018-01-22 14:49:10 +08:00
weiping 580f1bbc72
Merge pull request #27 from Microsoft/cast-jsonarray-to-list
Cast jsonarray to list
2018-01-12 14:34:01 +08:00