* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* Integrate constants variable in single class.
* Renaming test class Constants to TestConstants for less misleading.
Signed-off-by: Pan Li <panli@microsoft.com>
* 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>
* 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
* 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