* issue 4115 initial checkin. need insight from issuer on reproducing this issue
* test refactoring and adding more coverage for other NotFound scenarios
* commit on some actionables
* setting JsonConvert.DefaultSettings to null so that other tests will not fail
* as requested, removed catches from test methods
* direct version bump
* Code changes to fix emulator tests to comply with direct release 3.31.5.
---------
Co-authored-by: Debdatta Kunda <dkunda@microsoft.com>
* Allow ComosClientOptions to take ApplicationRegion and ApplicationPreferredRegions in multiple region name formats.
This is a proposed fix for - https://github.com/Azure/azure-cosmos-dotnet-v3/issues/2330
* Address PR comment to avoid duplicating list of names.
* Remove the map table cache
The map table is only used on initialization, so there's no need to keep a cache of it for the lifetime of the application
* Only convert the region names when the client is initializing
The cache is created before converting all the names, so it only needs created once, but doesn't remain for the entire lifetime of the application
* Update tests
* Make RegionNameMapper an instantiable class
Instead of having a prepare/clear cache system on a static class, make RegionNameMapper a class that gets instantiated for use and let the ctor handle it.
* Remove debugging
* Update tests to actually test things
---------
Co-authored-by: Pradeep Chellappan <Pradeep.Chellappan@docusign.com>
Co-authored-by: Pradeep Chellappan <94089783+pradeep-chellappan@users.noreply.github.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
* Showing Estimated Cost only when new container is getting created
* read container to get container response
* disable client telemetry by default
* removed unused imports
* resolve merge conflict
* fixed name
* fix container not found
* removed the message
* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Program.cs
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
* removed line space
---------
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
* Add support for translation to REgexmatch
* Add test and fix some indexing issues
* remove visit explicit, add some comment. Update public contract and added the baseline for the test
* add the missing baseline
* added test
* address code review
* update csproj
---------
Co-authored-by: Minh Le <leminh@microsoft.com>
* Added query validity function on Ode code path
* Fixed syntax
* Updated to use string search instead of query parsing
* Updated string search to now be regex
* Changed location of caller for QueryValidityCheck()
* Updated regex string
* Added extra test coverage
* Added const string to error messages
* Added compile flag to Regex
* Fixed comments
* Added missing null reference coverage
* Removed extra foreach loop in test
* Removed useQueryPlan bool in test code
* First commit.
* Added remaining classes for ClientQL structure
* Added ClientQLDeserializing class and added CoordinatorDistributionPlan folder
* Added support for all Enumerable and Scalar Expressions
* Added baseline tests for testing CoordinatorDistributionPlan deserializing
* Made ClientQL objects immutable
* Added error and null checks for Value calls
* Updated List<> with IReadOnlyList<>
* Made most functions in the Deserializing class private and static
* Added static constant class for Enumerable expressions
* Added null checking for arrays
* Removed null checks from deserializing array functions
* Removed support for JavaScript
* Removed support for Unwind
* Function names changed
* Removed few functions.
* Updated constants class
* Function Formatting for ClientQL Deserializing (#4062)
* Adding error handling for Deserializing functions
* Finished updating code to remove all dependency on Newtonsoft.Json
* Removed try catch for all upper level functions
* Resolved comments
* Resolved comments pt2
* Updated error message
* Resolved comments pt3
* Changed parameter types from int to long
* Removed ClientQLDelegate
* Syntax Fixes
* Removed ClientQLFlattenEnumerable file. This is JS.
* Fixed List helper functions
* Made singleton constructors from public to private
* Updated the DeserializeClientQLBinaryLiteral function
* Renamed ClientQL to QL
* Fixed variable names
* Updated more variable names
* Removed support for Type
* Removed all extra newlines
* Added null checks
* Updated the name CoordinatorDistributionPlan to ClientDistributionPlan
* Removed all support for Cassandra, Mongo and Binary Literal
* Updaed ClientQL to Cql
* Updated baseline test class property.
* making necessary ownership change
* made change to ownerships
* header test
* Call to TryCreate instead of Create in Responsemessage
* Add baseline test infra for index metric parser
* update baseline files
* Add parse retry logic
* Update headers test
* address code review
* address code review
* fix tests
* Update csproj file
* Adopt the new header
* update the response to parse with text instead of base 64
* test for headers adoption of uri escape
* Add URI Decode logic
* Update baseline
* Update with the new header name from back end
* update the query parsing requirement
* New Index Metrics DOM
* fix build error
* Code clean up
* Address code review
* Turn off switching to V2
* Fix test
* fix test errors
* Address code review comment
* addressed code review
* removed the empty entity
* update test parse
* update test
---------
Co-authored-by: Minh Le <leminh@microsoft.com>
* preliminary change
* Add some more boiler plate code
* move all linq test to the same folder; add some groupBy test
* fix references error in test refactoring
add code for group by substitution. Still need to adjust binding post groupby
* preliminary for the groupby functions with key and value selector
* trying to change collection inputs for group by
* Undo the LINQ GROUP BY part
* fix accidental changes
---------
Co-authored-by: Minh Le <leminh@microsoft.com>
* initial commit
* some pr comments, WIP
* Refactor
* more
* Public constructors and modify accumulators
* accumulator updates and undo test changes
* add test
* PR comments
* bug fix
* ToString() refactor
* contract updates
* test updates
* small fixes
* text fix
* Update accumulators
* fix
* PR comments
* small fix
* Rename BE -> ServerSide
* more renaming
* Update API and tests
* separate public and internal classes
* API update
* change namespace
* Pr comments
* public constructors and bug fix
* API updates
* renaming and test updates
* PR comments
* more PR comments
* PR comments, test additions
* API updates and more tests
* tests and pkrangeid update
* PR comments
* more PR comments
* smol test fix
* PR comments - renaming properties and constructor rehash
* contract update
* seal classes and private fields.
* update indexHitRatio calc
* mocking refactor to abstract classes
* contract updates
* PR comments - Update documentation
* Added code to throw exception if ODE continuation token goes into non ODE pipeline
* Removed count variable
* Updated test name
* Removed ODE continuation token logic from caller class
* Simplified code
* Fixed comments
* Updated continuation token cast
* Removed const string for continuation token
* Added Ignore flag for test
* Added baseline test
* Updated baseline test
* Infrastructure for performance testing with ODE pipeline.
* Resolve comments
* Removed randomization from data creation process
* Fixed comments
* Removed Query and EnableODE from QueryStatisticsMetrics, as they do not relate to query statistics.
* Removed try catch to make CreateItemAsync call always succeed
* Removed one liner functions
* Removed code from MetricsSerializer and QueryStatisticsDatumVisitor files
* Fixed comments
* Removed request Charge check
* Bug in Debug Assert
* Test
* Bug in debug assert fix
* Fixed second bug in Metrics Accumalator class
* Added ignore flag to ode perf tests so that they do not run on every loop build
* Added comment explaining the Ignore flag.