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

351 Коммитов

Автор SHA1 Сообщение Дата
chradek 2660692aff
upgrade karma from ^5.1.0 to ^6.2.0 (#14238)
* upgrade karma from ^5.1.0 to ^6.2.0

* rush update --full
2021-03-11 10:12:31 -08:00
Richard Park cf99c3efa9
[core-tracing] In-place change of the version for core-tracing from -beta to -preview and compatible type change (#14082)
- Making some changes to simplify the "duplicate" models that we're exporting to mirror the opentelemetry models (addresses feedback from @xirzec and @bterlson)
- Switch core-tracing back to the `-preview` version naming style. Changing it mid-stream like we did breaks internal tooling.
2021-03-03 22:31:15 +00:00
Sarangan Rajamanickam 2d64abe3be
Remove Samples and Readme References with apiKeys (#14072) 2021-03-02 21:28:06 -08:00
Ben Broderick Phillips 1d3632650c
Update live test yaml to use cloud and matrix configuration (#13886)
* Update live test templates to use matrix generation

* Update sdk live tests to use matrix generation, cloud config stages

* Fix live test matrix filter parity errors

* Remove matrix filters. Opt-in most tests to samples and min/max testing

* Fix post step template parameter in monitor live tests

* Filter dependency version for live tests that don't support it

* Only publish test results for browser and node tests
2021-03-01 19:25:57 -05:00
Jeremy Meng 3738fa358d
[template] Make README Logging section consistent (#14022)
* [template] Make README Logging section consistent

We might have introduced the inconsistency for some libraries while copying
content from other languages.

* Update other README files

Contents for messaging libraries (Event Hub/Service Bus) remain unchanges
because they are different in having additional information about `rhea`
logging.

* linking to logger
2021-03-01 09:42:22 -08:00
Richard Park 82c42a2512
[telemetry] Centralize (as much as is practical) the creation of spans to ease upgrades (#13887)
As part of prepping for the next release of OpenTelemetry we found some code patterns that were going to become a large maintenance burden for us, primarily around the parenting of spans. To make this easier I've removed as many duplicate implementation of createSpan and tried to centralize everything into core-tracing instead. 

This won't completely remove changes needed for a newer version of OpenTelemetry but it'll eliminate one of the bigger bottlenecks.
2021-02-25 21:36:47 -08:00
Sima Zhu 349613a6bd
Added main branch in ci yaml files (#13926) 2021-02-25 09:17:54 -08:00
Sarangan Rajamanickam d2b586b3c7
Fix the links of API Reference Documentation (#13878)
* Fix the links of API Reference Documentation

* Update sdk/eventgrid/eventgrid/README.md

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
2021-02-19 21:22:38 +00:00
Azure SDK Bot cf6b8a923b
Increment version for search releases (#13752) 2021-02-16 14:12:08 -08:00
Sarangan Rajamanickam 7580a53403
Modify Changelog of Search Documents SDK (#13764) 2021-02-12 10:11:49 -08:00
Sarangan Rajamanickam e9338a5bc5
Modified change log for search documents (#13742)
* Modified change log

* Update sdk/search/search-documents/CHANGELOG.md

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2021-02-11 00:55:33 +00:00
Sarangan Rajamanickam 79c556abba
Revert search documents & Update Version and Changelog (#13727)
* Update Configuration Files

* Generated Code Changes

* Custom Code Changes

* API Review File Changes

* Update Version and Changelog

* Updated Changelog

* Added details about breaking changes

* Revert tokenizer to tokenizerName

* Fixed rename in samples too

* Update sdk/search/search-documents/CHANGELOG.md

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
2021-02-10 14:11:42 -08:00
Matt Ellis 57c3030ecf
[EventGrid] Prepare for v3.0.0-beta.3 Release (#13714)
* [EventGrid] Update core-auth reference

In b6040c5451 we took a dependency on
some new surface area in @azure/core-auth. That has now been released as
version 1.2.0, so we bump our minimum dependency to that version.

The other packages have been updated as well, to keep versions consistent.

* [EventGrid] Prepare for 3.0.0-beta.3 release
2021-02-09 18:05:12 -08:00
Sarangan Rajamanickam 917abead30
Add Document Key Retriever to Buffered Sender (#13478)
* Add Document Key Retriever to Buffered Sender

* Fix Lint Errors

* Update sdk/search/search-documents/src/searchIndexingBufferedSender.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* Minor changes

* Remove ts-ignore comment

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2021-01-30 08:03:01 -08:00
Sarangan Rajamanickam 64e6844090
Remove Interface Search Indexing Buffer (#13405)
* Remove Interface Soe Search Indexing Buffer

* Update sdk/search/search-documents/samples/typescript/src/bufferedSender/uploadDocuments/autoFlushSizeBased.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* Response to PR Comments

* Update Samples

* Minor fix

* Added await

* Minor Fix

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2021-01-27 15:49:44 -08:00
Deyaaeldeen Almahallawi f9d1c248b8
[Docs] Fix the double tagging issue (#13411)
* [Docs] Fix the double tagging issue

* fix triple tagging!
2021-01-26 21:06:05 -05:00
Sarangan Rajamanickam cd4ad88f85
Search documents migration (#12829)
* Modify the Configuration Markup Files

* Regenerated Changes

* Custom Code Changes

* Test Code and API Changes

* Updated Recordings Files

* Update Test Code
2021-01-22 21:02:03 -08:00
Jeff Fisher 40b027df46
Update karma test configuration for track2 packages (#13309)
This PR removes our dependency on the unmaintained package "karma-remap-istanbul" and replaces it with a smaller karma plugin ("karma-sourcemap-loader") that allows karma-coverage to load source maps from the disk correctly.

I tested and confirmed that the generated coverage data has the correct source TS files.
2021-01-22 19:42:51 +00:00
Deyaaeldeen Almahallawi 78e55c88a8
[Docs] Upgrade typedoc to v0.15.2 to match that used by docs team (#13250)
* [Docs] Upgrade typedoc to v0.15.2 to match that used by docs team

* standardize the docs script for cosmos, kv-admin, comm-common, and storage-internal-avro
2021-01-15 16:24:16 -05:00
Sarangan Rajamanickam b9800f6464
Treat any new lint regression as hard failure in CI (#13114) 2021-01-08 02:04:20 +00:00
Sarangan Rajamanickam ef1c2aa4d5
[Search] Fix the Linter Errors (#13060)
* Fix the Linter Errors

* Further Modifications

* Formatting Changes

* Response to PR Comments
2021-01-07 17:47:23 -08:00
Deyaaeldeen Almahallawi 494327fa57
replace @ignore with @hidden (#12963)
`@ignore` is a JSDoc construct which we no longer use. This PR replaces it with `TypeDoc`'s `@hidden` which [exhibits the same behavior](https://github.com/TypeStrong/typedoc/releases/tag/v0.12.0).
2021-01-05 04:17:33 +00:00
Deyaaeldeen Almahallawi 8ab8d4cbf7
[Docs] Add --excludeExternals to rushx docs command (#12987) 2020-12-23 14:18:07 -08:00
KarishmaGhiya 6ee8de43e1
[Code Coverage] Node Tests - Generate reports for live tests (#12968)
Resolves part of the issue - https://github.com/Azure/azure-sdk-for-js/issues/12935

To the reviewers, go to the links corresponding to your library to see the code coverage report. (Example here https://github.com/Azure/azure-sdk-for-js/pull/12968#issuecomment-749320030)
### Enables code coverage for the following packages
- [x] `/sdk/storage/storage-file-datalake` - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=660382&view=codecoverage-tab
- [x] `/sdk/storage/storage-blob` - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=655864&view=codecoverage-tab (Moved from https://github.com/Azure/azure-sdk-for-js/pull/12903)
- [x] `/sdk/search/search-documents` - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=663568&view=results
- [x] `/sdk/textanalytics/` - Live tests are failing hence cannot see CC - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=658221&view=logs&j=bbd7d436-e05d-51a8-99a8-0701dc9dffeb&t=c89e2f7b-6fd1-516c-25fe-9220efbf116c
- [x]  `/sdk/keyvault/keyvault-keys` https://dev.azure.com/azure-sdk/internal/_build/results?buildId=663575&view=results
- [x] `/sdk/keyvault/keyvault-secrets` https://dev.azure.com/azure-sdk/internal/_build/results?buildId=663579&view=results
- [x] `/sdk/keyvault/keyvault-certificates` https://dev.azure.com/azure-sdk/internal/_build/results?buildId=663580&view=results
- [x] `/sdk/template/`
- [x] `/sdk/appconfiguration/` - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=660325&view=codecoverage-tab
- [x] `communication-sms` - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=660326&view=codecoverage-tab
- [x] `communication-chat` - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=660327&view=codecoverage-tab
- [x] `communication-administration` - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=660328&view=codecoverage-tab

#### Others
- [ ] `/sdk/tables/`  - The live test pipeline was failing due to compile issues - moved it to a different PR - https://github.com/Azure/azure-sdk-for-js/pull/12976
2020-12-22 08:28:48 +00:00
Deyaaeldeen Almahallawi 7e0bd75263
[Docs] Adding docs npm script (#12941)
This newly added command `docs` can help increase the quality of our documentation comments. It enables us to have a tight feedback loop on what is being generated as a documentation of our packages. I am pinning `typedoc` to v0.15.0 for now because this is the version being used for generating docs at `docs.microsoft.com`. This version should be updated when that team updates theirs.

Fixes https://github.com/Azure/azure-sdk-for-js/issues/12928
2020-12-17 22:03:10 +00:00
Deyaaeldeen Almahallawi 6b838b852d
Upgrade ESLint version to 7.15.0 (#12894)
All the heavy lifting for upgrading our linting packages has been already done here https://github.com/Azure/azure-sdk-for-js/pull/12770. This PR upgrades ESLint only and fixes https://github.com/Azure/azure-sdk-for-js/issues/9050.
2020-12-15 15:17:43 +00:00
Deyaaeldeen Almahallawi 79be172c74
Upgrade TypeScript compiler version to 4.1.2 (#12770)
* upgrade TS version and fix compilation issues

* upgrade the linting parser version and fix new linting issues

* fix cosmos sample

* address feedback

* fix linting issues in formrecognizer tests

* use unknown instead of any across our code

* address more issues

* cleanup package.json in core-http

* revert noisy linting changes caused by vanilla eslint rules not TS aware

* allow the poller to have results of type void

* fixing samples

* fix keyvault-certificates' sample
2020-12-14 17:03:55 -05:00
KarishmaGhiya e1a368ad14
Segregate search documents test folders to enable min-max tests (#12643) 2020-11-24 16:45:36 -08:00
Sarangan Rajamanickam 25464c79df
November release changes (#12342)
* November Release Changes

* Format
2020-11-06 15:05:03 -08:00
Sarangan Rajamanickam 61d3b59e56
Open up Buffered Sender Configurations (#12297)
* Open up Buffered Sender Configurations

* Response to PR Comments

* Update API File

* Added Jitter value

* PR Comments II

* Add jitterValue to the correct place

* Format

* Sync Retry Logic with core-https

* Changed Name to initialBatchActionCount

* Update API
2020-11-06 13:58:08 -08:00
Sarangan Rajamanickam 750902be0e
[Data plane][Azure Cognitive Search] Add encryptionKey property to indexer, datasource and skillset metadata (#12275)
* Result of Regeneration Command

* Changes to the custom layer

* API Changes

* Update Recordings
2020-11-04 10:13:43 -08:00
Deyaaeldeen Almahallawi ae4d38476c
bump core-http version to 1.2.0 across the board (#12151) 2020-10-30 15:21:24 -04:00
Derek Legenzoff 7f0d3a346f
Fixing typo in sample.env (#11952)
Updating `Cognitive Services` to `Cognitive Search` in sample.env
2020-10-26 09:48:25 -07:00
abc516 3b1a3fc99a
fix eslint errors for search packages (#11868) 2020-10-21 21:48:51 -07:00
Azure SDK Bot e0a27e75ea
Increment package version after release of azure-search-documents (#11648) 2020-10-13 14:25:53 -07:00
Sarangan Rajamanickam 74476b3ad9
Make BufferedSender an interface and Hide the Constructor (#11785) 2020-10-12 13:02:14 -07:00
Sarangan Rajamanickam 6cc6def03a
October release changes (#11618)
* Release related changes

* Formatting changes
2020-10-02 12:47:25 -07:00
Sarangan Rajamanickam b6b8037d08
Initial Commit for Advanced Batching (#11544)
* Initial Commit for Advanced Batching

* Formatting changes

* Additional Changes

* Formatting changes

* Additional Changes

* Formatting changes

* Response to PR Comments

* Formatting changes

* Update Message
2020-10-01 19:35:00 -07:00
Deyaaeldeen Almahallawi 1ca2c43d6a
ESLint configuration cleanup (#11528) 2020-09-28 20:30:21 -07:00
Sarangan Rajamanickam 8a9d8d35b1
Regeneration of search-documents SDK (#11533)
* Regenerated Search SDK Data MD

* Custom Code changes for previous auto generated Data MD changes

* Regenerated Search SDK Service MD

* Custom Code changes for previous auto generated Service MD changes
2020-09-28 13:37:52 -07:00
Sarangan Rajamanickam c6d071ae1c
Fix the CI failure in search-documents (#11518)
* Randomize Index Names

* Increment Wait Time
2020-09-28 13:30:38 -07:00
Ramya Rao fe06264fdb
[Search] Run lint:fix script (#11445) 2020-09-24 12:19:00 -07:00
Quentin Morel a779d0ae09
Update README.md (#11462)
A change was made here https://github.com/Azure/azure-sdk-for-js/pull/9553 but readme not updated. :)
2020-09-24 12:01:30 -07:00
Sarangan Rajamanickam 4a96e96a67
Add testcases for handling odata (#11321)
* Add testcases for handling odata

* Formatting code

* PR Comments

* Minor Formatting

* Update sdk/search/search-documents/src/odata.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* Update sdk/search/search-documents/src/odata.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2020-09-18 20:14:58 -07:00
Sima Zhu add2f4fb1b
Replaced relative link with absolute links and remove locale (#11317)
Replaced relative link with absolute links and remove locale
2020-09-17 20:01:20 -07:00
Deyaaeldeen Almahallawi 09a68c7d8a
[Search] Prettying (#11096) 2020-09-09 09:39:45 -04:00
Sarangan Rajamanickam 74cc9f4a3a
Fix search CI issue (#10822)
* Delete existing indexers, etc

* Count Changes

* Updated Recordings

* Added assert fail
2020-08-25 21:37:20 -07:00
Mitch Denny 2a62f1a27b
Adjust CI YAML headers (#10607) 2020-08-19 13:51:36 +10:00
Sarangan Rajamanickam 95d7afbba6
Rename setupIndex to setup (#10593) 2020-08-12 14:05:39 -07:00
Sarangan Rajamanickam fc56be20c6
[search] Add live tests for index client (#10584)
* Add live tests for index client

* Updated/Added Service Recordings

* Minor Refactor
2020-08-12 11:39:17 -07:00
Sarangan Rajamanickam fa7dcc6480
[search] Add live tests for indexer client (#10557)
* Added Test Cases for Search Index Client

* New Recordings

* Additional Changes

* Another set of recordings

* Some more changes

* Refactorings based on PR Comments

* Formatting Changes
2020-08-11 17:53:29 -07:00
Deyaaeldeen Almahallawi 6531b9b85a
Verifying VS Code debugger with default configuration works on tests in our SDKs (#10145)
* update the CONTRIBUTING.md guide to point to the automatic debug configuration feature in vscode

* delete all custome vscode configs

* factoring out coverage scripts so that mocha with ts-node can work with vscode debugger
2020-08-11 14:24:30 -04:00
Sarangan Rajamanickam 50e2d1296b
Added Test cases for Search Client (#10530)
* Added Test cases for Search Client

* Added recordings

* Test with Harmony Flag

* Update sdk/search/search-documents/test/node/searchIndexClient.spec.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* Code changes for PR comments

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2020-08-10 14:56:35 -07:00
Jeremy Meng 0d36626e3d
Set docModel to true in api-extractor.json config (#10509)
The only effect is an extra json file is generated into ./temp folder
which is already in .gitignore list. This file is useful in doing api reviews.
2020-08-10 10:42:04 -07:00
Jacob Marshall f13a878c49
[search-documents] Fix ISO8601 date regex (#10488)
* [search-documents] Fix ISO8601 date regex (#10486)

* Add tests for dates with text before and after (#10486)
2020-08-09 21:13:56 -07:00
Jeremy Meng 0308ae2167
Bump core-http dependency version to v 1.1.6 (#10487) 2020-08-07 14:10:17 -07:00
Azure SDK Bot 07381bfb64
Increment package version after release of azure-search-documents (#10454) 2020-08-07 13:23:02 -07:00
Sarangan Rajamanickam c36ed0cf94
Gracefully exit if env variables are not set (#10496) 2020-08-07 12:29:02 -07:00
Daniel Jurek d81d479ec9
Smoke Test rearchitecture: deploy test resources and opt-out samples (#8388)
* add ability to skip smoke tests based on the presence of environment variables

parameterize test-resources.json

disable cosmos db smoke testing in china cloud

add --ci to smoke test execution

add yargs to smoke tests

smoke tests: @types/yargs is unnecessary, add await in app

turns out @types/yargs is required

use KeyVaultSecrets instead of this

incremental sample compiling progress

first cut at using sample format for smoke tests

Smoke test deploys, onboards samples

Fix pre-samples.js

Add environment variable output to New-TestResources.ps1

Update smoke test package.json

Update-SmokeTests.ps1 - variable outputs for CI, start documenting

New-TestResources.ps1 output environment variables

Update smoke tests yaml

* Remove Smoke Test resources in yaml

* parameters

* Update smoke-tests.yml

* Fix prep-samples.js

* Remove extra *

* Formatting for prep-samples.js

* Revert "Remove extra *"

This reverts commit f0c1b3f36b474f09d2cd49ee2abb327ad0236f10.

* Move Node version higher so Update-SmokeTests.ps1 can use it

* node run.js

* Set AZURE_RESOURCEGROUP_NAME at the top level so delete scripts can clean up after

* Add run.js

* Give ability to specify blank service directory in remove-test-resources.yml

* Add ability to specify resource group name directly to New-TestResources.ps1

* Add devops logging for smoke test failures

* Better command layout

* Update KV test resources to include KEYVAULT_URI for samples

* Fix App Config and KV to use environment variables from the test-resources.json

* Add in package.json configuration to skip certain failing files in smoke tests

* Add ability to skip samples based on configuration information in package.json

* Remove ArmTemplateParameters from smoke tests

* Delete test resources after 24 hours

* Add contacts.js (timing out) to skip

* Add deleteAndRecover.js to skip list

* Skip backupAndRestore.js in KV Secrets

* Improve smoke test error logging

* Skip useProxy.js in Service Bus smoke tests

* Use ARM template params in sovereign clouds

* Remove base smoke test cases

* Use configruable storage endpoint suffix in event hub ARM template

* Use baseName for the basis of the GUID

* Set environment variables from standard config

* Set sample directory when running each test to preserve sample context

* Idempotent naming

* Force $CI to $false

* Use proces.cwd() instead of __dirname

* Skip samples where confiugrations are not present in test-resources.json

* Add support for storage endpoint suffix to storage test-resources.json

* Also exclude copyModel.js

* Compute account name for text analytics so we don't collied with test resources that have the same name

* Add endpoint information for cognitive services

* Skip some storage tests because of hardcoded endpoint suffix

* Skip ai-text-analytics pending further investigation

* Proper spelling for customPipeline

* New-TestResources -- if $CI is true AND a ResourceGroupName is specified, do not mututae the $BaseName

* Always generate a new $BaseName when $CI is $true. If we don't do this and reuse $BaseName then multiple resources of the same type might get deployed with the same name and there will be collisions

* Remove samples-manifest.json

* Use static name for cognitive services user role assignment to avoid smoke test collision

* Form Recognizer should use resource group location

* Role assignment names must be GUIDs

* Update search SKU so deployment succeeds

* Fix form recognizer and text analytrics ARM templates to assign RBAC roles directly to the resources

* Unique guid for Text Analytrics role assignment

* Use relative paths in Initialize-SmokeTests.ps1

* Add --use-packages to samples prep to use package references instead of source references

* Move //smokeTestConfiguration from samples package.json to the package's package.json

* Add in better path support

* Update Smoke Test README.md

* Use globbing to find samples/javascript folders inside packages

* Remove extra files

* Remove hard coded test cases

* Remove smoke-test/test-resources.json

* Use context to set AZURE_AUTHORITY_HOST

* Spacing

* Document -ResourceGroupName parameter

* workingDirector -> workingDirectory

* no inputs

* Skip template samples as the samples do not run properly

* Set environment variables for test application in the initilize script

* Exclude authenticationMethods.js and recognizeContent.js samples because of smoke test errors

* Remove setting AZURE_AUTHORITY_HOST in New-TestResources.ps1 and set it in Initialize-SmokeTest.ps1

* Review feedback: use APPCONFIG_CONNECTION_STRING in samples and tests

* Review feedback KEYVAULT_NAME -> KEYVAULT_URI in all samples and docs for KV

* Make sample.env files consistent

* Skip deploying and onboarding when there is no test-resources.json file
2020-08-05 09:03:44 -07:00
Sarangan Rajamanickam fe57aa7776
Fix parented tracing span in search API (#10445) 2020-08-04 22:29:58 -07:00
Ramya Rao 6557ded074
Update @opentelemetry/api to latest version (#10393)
* Update @opentelemetry/api to latest version
2020-08-04 14:28:54 -07:00
Deyaaeldeen Almahallawi c88451d95c
Standardize prettier configurations across the repo (#10416)
* Standardize prettier configurations across the repo

* update relative paths

* rushx format text analytics

* ignore api.md files

* adding ignore-path parameter to the check-format and format scripts in keyvault-admin
2020-08-04 16:31:27 -04:00
Sarangan Rajamanickam 6384f602b2
Fixed Search Readme (#10383)
* Fixed Search Readme

* Updated changelog
2020-07-31 13:30:13 -07:00
Daniel Rodríguez 857f355fd9
updated karma-mocha (#10303) 2020-07-28 13:21:10 -04:00
Daniel Rodríguez de585c8675
upgraded to karma 5.1.0 (#10190) 2020-07-27 12:06:12 -04:00
Deyaaeldeen Almahallawi 8c13a8a4da
[Search] formatting (#10264) 2020-07-27 10:18:47 -04:00
Azure SDK Bot 555cbe6c62
Increment package version after release of azure-search-documents (#10148) 2020-07-24 15:18:58 -07:00
Sarangan Rajamanickam f00564255d
Pass in the correct continuation token for search documents (#10146)
* Pass in the correct continuation token for search documents

* Update changelog
2020-07-20 16:14:30 -07:00
Will Temple 5de9f50001
Adding dev-tool to the repo (#7872)
* Azure SDK dev-tool first pass

* [dev-tool] dev-tool dev-samples and fixes to all commands

* Nested command structure

* Better argument parsing, type-checking, and recursive command structure. Added support for running a single sample.

* Added dev-tool README

* [ai-text-analytics] Update package.json to use new script.

* Removed some development cruft

* prettier + eslint

* Quick fix to ParsedOptions type

* WIP

* Command framework improvements

* Basic unit-tests for package resolution.

* One more test, assorted changes

* README update

* Migrated all packages with sample code to use dev-tool

* Added dummy integration-test stub

* Added dummy integration-test stub for eslint plugin

* Added dummy integration-test:browser stubs

* Added dev-tool dependency to packages using it

* Corrected build:samples step in package.json

* WIP

* [dev-tool] ts-to-js command

* [dev-tool] leaf command test

* Fixed more deeply nested samples due to shared code
2020-07-14 12:14:20 -07:00
Jeremy Meng 3157a3d2e8
[Test Recorder] Fix an issue where not all browser requests are recorded (#10013)
We use an async function to add a recorded request to an array then
save the array to files when recorder stops.  However we did not wait
for the async function to complete, which leads to recording missing
requests. This issue only happens in the browser case. In Node it is
done in synchronous way.

This change makes recorder to wait until all the recorded
requests are added before saving them.

All the tests have been updated to await for `recorder.stop()`.

Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
2020-07-13 11:22:32 -07:00
KarishmaGhiya 1d25f3eeb2
verification of links pipelines (#9216) 2020-07-10 17:04:09 -07:00
Azure SDK Bot 65cb85edce
Increment package version after release of azure-search-documents (#9908) 2020-07-07 13:12:20 -07:00
Sarangan Rajamanickam 8cc6c6f42e
Adding JS Samples (#9837)
* Adding JS Samples

* Dummy Commit

* Revert Dummy Commit
2020-07-01 19:45:26 -07:00
Sarangan Rajamanickam eac7fe9dd2
Added Typescript Samples for Search Documents (#9809) 2020-06-30 13:56:09 -07:00
Jeremy Meng e45c832303
Bump core-auth dependency version to 1.1.3 (#9754)
for the ES5 compatibility fix.
2020-06-29 09:48:09 -07:00
Sarangan Rajamanickam 7b56acfb11
Remove SkillSetCounter Py in ServiceCounters model (#9747) 2020-06-26 15:03:09 -07:00
Jeremy Meng 06fd608f63
Bump dependency core-http version to 1.1.4 (#9539)
* Bump dependency core-http version to 1.1.4

to ensure that all packages have the `x-ms-useragent` browser header key change
for telemetry.

* Make exception for storage
2020-06-26 09:49:29 -07:00
Sarangan Rajamanickam d0697b095c
Regeneration and Other changes (#9711)
* Regeneration and Other changes

* Test Build Fix

* Minor Regenerate Change
2020-06-25 22:11:17 -07:00
Jeremy Meng 57417e23e4
Ignore src/generated folders when running check-format/format (#9670) 2020-06-25 13:41:09 -07:00
Jeremy Meng 571a75bfda
Avoid passing unused credentials to generated client constructors (#9635) 2020-06-25 11:11:50 -07:00
Sarangan Rajamanickam ab6926b139
Change Readme sample (#9697) 2020-06-24 13:17:59 -07:00
Sarangan Rajamanickam 2877452ef1
Modified Readme file similar to .NET Readme (#9687)
* Modified Readme file similar to .NET Readme

* Minor change

* Minor changes
2020-06-24 11:36:05 -07:00
Sarangan Rajamanickam eaf51611fa
[search-documents] Add sentinel value to connection string (#9672)
* Add sentinel value to connection string

* Update sdk/search/search-documents/src/searchIndexerClient.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2020-06-23 16:53:17 -07:00
Sarangan Rajamanickam 0fbfe0b333
Code changes to nest user defined fields into a document property (#9655)
* Code changes to nest user defined fields into a document property

* Code changes to address PR Comments
2020-06-23 15:24:51 -07:00
Chidozie Ononiwu d740741ae8
Reference tools repo version (#9577)
* Add initial Refs for repositiory

* Initial Changes to refs JS

* Switch template referencing to use extends

* Remove resources from archetype-sdk-integration.yml
2020-06-17 11:13:11 -07:00
Sarangan Rajamanickam a3c15853bf
Move text from method paramter to options bag (#9570) 2020-06-17 11:04:07 -07:00
Sarangan Rajamanickam 26a696af9a
Renames and Refactorings (#9553)
* Change analyzer-analyzerName in AnalyzeTextOptions

* Change tokenizer-tokenizerName to CustomAnalyzer

* Chg includeTotalResultCount-includeTotalCount

* Minor Comment Added
2020-06-16 16:23:09 -07:00
Mike Harder f38ed5cef3
Update runtime dependency "tslib" (#9322) 2020-06-10 16:57:57 -07:00
Mike Harder 0cc98eb03f
Update dev dependency "rollup-plugin-visualizer" (#9330) 2020-06-10 16:36:38 -07:00
Sarangan Rajamanickam c2a28c9a2b
Minor change in the sample (#9373)
* Minor change in the sample

* Additional changes
2020-06-08 14:31:31 -07:00
Azure SDK Bot 3f44cfe274
Increment package version after release of azure-search-documents (#9370) 2020-06-08 13:44:08 -07:00
Daniel Rodríguez a195ac041a
New aka.ms/azsdk links (#9034)
* Duplicated ThirdPartyNotices in eventhub

* no more https://azure.github.io/azure-sdk-for-js links

* other link fixes

* new aka.ms links

* docs/<service> to <service>/docs, as agreed upon over Teams

* Changed https://aka.ms/azure-sdk-preview1-js to https://aka.ms/azsdk/releases/July2019Preview

* removed the versions

* Update README.md

* lowercase july2019preview

* lowercase july2019preview
2020-06-08 07:13:04 -04:00
Sarangan Rajamanickam eefe6103a3
Modified changelog for the June Release (#9317)
* Modified changelog for the June Release

* Response to PR Comments

* Dummy Commit I

* Revert Dummy Commit
2020-06-05 16:00:32 -07:00
Sarangan Rajamanickam 71c59489cb
Delete - Seach API Changes (#9308)
* Delete - Seach API Changes

* Doc Comments
2020-06-04 16:04:29 -07:00
Sarangan Rajamanickam e924eafdff
Renames & Refactorings (#9266)
* Renames and other Refactorings

* Round II Changes

* Changes III

* Minor PR Feedback change

* Cng GetIndexStatisticsResult-SearchIndexStatistics

* Change ServiceStatistics- SearchServiceStatistics

* Additional modifications

* Some more changes

* Added getSearchClient back

* Change SimpleDataType->SearchFieldDataType

* change similarityALgorithm to similarity

* change vaultUri to vaultUrl

* Remove odata overrides
2020-06-03 15:40:26 -07:00
Jeff Fisher 7b0e5daab2
Make listIndexes pageable. (#9217) 2020-06-01 17:27:45 -07:00
Jeff Fisher ca526b689c
Update to TypeScript 3.9 (#9012)
* Update TS to 3.9
2020-06-01 13:25:21 -07:00
Mike Harder ece81b9e8e
Update dev dependency "cross-env" (#9160) 2020-05-29 12:53:49 -07:00
Mike Harder dde87adc8a
Update dev dependency "@rollup/plugin-node-resolve" (#9123) 2020-05-27 13:48:16 -07:00
Sarangan Rajamanickam 1677605c1f
Add OnlyIfUnchanged parameter to CreateUpdate & Delete operations (#9056) 2020-05-22 00:11:15 -07:00
Mike Harder cfcf14a669
Update dev dependency "sinon" (#9075) 2020-05-21 18:46:59 -07:00
Mike Harder 0097b10488
Pin @rollup/plugin-commonjs to 11.0.2 (#9045)
- Newer versions cause build breaks in our repo
2020-05-20 19:39:35 -07:00
Sarangan Rajamanickam 055092611a
Refactor SearchServiceClient into SearchIndexClient and SearchIndexerClient & Handle selected properties for List operations & Add delete methods with model as parameter (#9021)
* Refactor SearchServiceClient into SearchIndexClient and SearchIndexerClient

* Handle selected properties for List operations

* Add delete methods by model

* Response to PR Comments

* Minor Typo

* Dummy Commit I

* Dummy Commit II
2020-05-20 19:01:02 -07:00
Sarangan Rajamanickam 03ac69aa8e
Refactor SearchIndexClient to SearchClient (#9015)
* Config Change to rename SearchIndexClient to SearchClient

* Delete SearchIndexClient & SearchIndexClientContext files

* Regeneration and other refactorings

* Minor Refactorings

* Fix failing tests
2020-05-19 15:00:54 -07:00
Sarangan Rajamanickam e5f598603e
Code changes to add select to List Skillsets operation (#9010) 2020-05-19 12:14:01 -07:00
Jeremy Meng 4f5dd0e7b5
Serve the source map files during karma test run (#8922)
This is a follow up of #8839. Files do need to be served so browser
debugging tools can load them along side the tests. See
http://karma-runner.github.io/5.0/config/files.html for docs on files
options.
2020-05-14 13:36:14 -07:00
Jeremy Meng c8ec3009f9
Fix the object to rollup-replace plugin (#8909)
The replacement should be in the argument object, instead of nested in `values` property
2020-05-14 10:06:28 -07:00
Jeremy Meng 1e02861f3a
Include sourcemap file in karma files section (#8839)
* Include sourcemap file in karma files section

so we can debug TypeScript source code for browser tests. One still
needs to disable code coverage first though to have the source mapping
working.

We Have to set the .js.map files' type to be 'html' to prevent karma from
treating them as the default js files. See http://karma-runner.github.io/5.0/config/files.html for more details.
2020-05-12 10:46:24 -07:00
Jeff Fisher b9446b8c96
Update TypeScript to 3.8 (#8659)
* Update TS and fix tsconfig in cosmos samples
2020-05-06 17:22:19 -07:00
Azure SDK Bot 5d7dd52c5d
Increment package version after release of azure-search-documents (#8743) 2020-05-06 11:51:10 -07:00
Daniel Rodríguez fc2b5a618c
core-paging to ^1.1.1 (#8648)
* core-paging to ^1.1.1 and logger to ^1.0.1

* logger back to ^1.0.0
2020-05-06 09:54:12 -04:00
Daniel Rodríguez 7ee5955e32
Standardizing dotenv (#8647)
* KeyVault changes

* ai-text-analytics

* search-documents

* storage

* commentary on the sample.env

* other sample.env files

* feedback from Harsha
2020-05-05 19:03:29 -04:00
Sarangan Rajamanickam 3a552410b2
Update Changelog (#8705) 2020-05-05 13:29:25 -07:00
Daniel Jurek 4c73a29d83
Unify live test matrices (#8542)
* one matrix to live test them all
* clean up environment vars and test configurations
* working template logic for browser and sample testing
* disable samples testing for form recognizer until it's ready for nightly live runs
* use Node 10 for samples
2020-05-01 15:52:06 -07:00
Sarangan Rajamanickam 17f85a5dc4
Readme content of Azure Search Documents is unclear (#8582)
* Readme content of Azure Search Documents is unclear

* Minor change

* Adding some more information

* Updated based on PR Comments

* Minor change

* Minor spell change

* Update sdk/search/search-documents/README.md

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* nit

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2020-04-30 13:42:03 -07:00
Sarangan Rajamanickam 3b0a552363
SearchServiceClient should expose a getSearchIndexClient (#8561)
* SearchServiceClient should expose a getSearchIndexClient

* Update sdk/search/search-documents/README.md

Co-Authored-By: Jeff Fisher <xirzec@xirzec.com>

* Update sdk/search/search-documents/README.md

Co-Authored-By: Jeff Fisher <xirzec@xirzec.com>

* PR Comments

* Minor change

* Dummy Commit

* Dummy Commit II

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2020-04-27 19:44:00 -07:00
Daniel Rodríguez 443e7ae80f
Reusing scripts for live resources & no more deploy buttons (#8398)
This PR is here to save us from the Deploy button rabbit hole and put us back in track with powershell.

The Deploy Button approach has considerable caveats. Some of them being:

The forms they generate don't provide a lot of tooling to explain how to fill these properties.
The forms they generate require considerable knowledge to feel its properties.
They appear to be simple at a first glance, but they require considerable documentation to make them viable for general users.
Instead of continuing to go the route of Deploy Buttons, we can re-use the PowerShell programs that have been made available in out TS/JS SDK just as well as they exist in the other languages' SDKs, and which have already been documented once at the root of the project, and only make reference to these tools in the test folders, where contributors will surely check. Other general consumers should be safe by ignoring these and simply following the available Azure documentation to create any resources for their own programs, without having to worry about the specific needs of our integration tests.

This PR does the same change on all of the other projects that have test-resources.json.

Once this is merged, the following issues will be solved:

Closes #7532 , since it will be OK to keep template parameters in the ARM templates.
Closes #7366 , since the new indications will suffice.
Closes #7365 , since the new indications will suffice.
Closes #7364 , since the new indications will suffice.
Closes #7363 , since the new indications will suffice.
Closes #6647 , since there will be no remaining pending tasks.

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
2020-04-24 13:25:30 -04:00
Jeremy Meng e251ff8a8e
Update contributing sections to link to CONTRIBUTING.md (#8486)
* Update contributing sections to link to CONTRIBUTING.md

* Update the contributing section for rest of libraries

* Remove old CONTRIBUTING.md files

README should point to the main CONTRIBUTING.md under repository root.

We did similar changes earlier (e.g., 73f7f90c4) however these seem leftover
that got missed.

* Link to storage specific contributing guide
2020-04-24 09:56:02 -07:00
Mike Harder 84b3b77380
Update all Linux images to ubuntu-18.04 (#8507) 2020-04-23 17:51:24 -07:00
Jeff Fisher 70fa6b3492
[search] Fix odata metadata policy (#8519)
* Fix odata policy for service requests
* Fix lint issues
2020-04-23 17:36:11 -07:00
Jeff Fisher 1b7428dffc
[core-tracing] Update to OpenTelemetry 0.6 (#7998)
* Migrate all packages to OpenTelemetry 0.6.1.
* Update inter-package dependencies to express the new requirements.
2020-04-23 15:39:57 -07:00
Sarangan Rajamanickam f6b36f9cbc
Code to change maximumPageLength to maxPageLength (#8498)
* Swagger Changes to change maximumPageLength to maxPageLanegth

* regenerated SDK with modified readme file
2020-04-23 13:41:56 -07:00
Ramya Rao 240c4e0c41
Avoid exporting types from core-auth that belong elsewhere (#8410) 2020-04-20 15:39:02 -07:00
Ramya Rao d42bfdf79e
Use OperationTracingOptions from core-tracing (#8389) 2020-04-16 15:59:07 -07:00
KarishmaGhiya baa6d4288a
pin api-extractor to 7.7.11 (#8400) 2020-04-16 12:27:12 -07:00
Jeff Fisher abd85ef55d
[search] Unblock live test CI and add initial test (#8365)
* Add integration test tasks to eslint plugin

* Fix GeographyPoint serialization

* Add test and get it working inside node

Since SearchServiceClient doesn't work in the browser, will have to investigate a way to run SearchIndexClient tests there.
2020-04-16 10:59:21 -07:00
Sarangan Rajamanickam b641800c0d
Search Service - Datasources & Service Statistics API (#8290)
* Code changes for Data sources API

* Code changes for service statistics API

* PR Comments
2020-04-09 12:43:30 -07:00
Jeff Fisher 2670e8def9
[search] Create pipeline for live tests (#8259)
* Add test-resources.json for search

* Add tests.yml
2020-04-08 12:03:41 -07:00
Sarangan Rajamanickam 1490b99116
Code changes for Indexer Operations in Search Service (#8225)
* Code changes for list indexers operation.

* Code changes for create indexer operation

* Code changes for Get Indexer operation

* Code changes for create/update indexer

* Code changes for Delete indexer operation

* Code changes for Get Indexer Status operation

* Code changes for reset index operation

* Code changes for run index operation

* Remove select & change indexer name in Readme file

* Adding fields to List Ops

* PR Comments
2020-04-07 16:41:54 -07:00
Azure SDK Bot 2002d9dd8f
Increment package version after release of azure-search-documents (#8229) 2020-04-06 16:40:02 -07:00
Jeff Fisher 99eb0cd807
[search] Update changelog for release (#8223)
* Update changelog
2020-04-06 12:12:08 -07:00
Jeff Fisher f269cfef99
[search] Rename package to search-documents (#8200) 2020-04-03 15:02:25 -07:00
Jeff Fisher e98a8c699d
[search] Update README for preview 2 (#8177)
* [search] Update README for preview 2

Closes #8123
2020-04-03 12:29:29 -07:00
Sarangan Rajamanickam 21e93ccc84
Search APIs: Skillsets & SynonymMaps (#8109)
Add service client operations for working with skill sets and synonym maps.
2020-04-02 14:08:31 -07:00
Jeff Fisher 268bff0e68
[search] Create continuation token. (#8132)
* Create continuation token.

Give users an opaque string for continuation instead of exposing service internals.

Fixes #7843
2020-04-01 14:04:36 -07:00
Jeff Fisher b659e18cba
Update to mocha 7 (#8108)
* Update to mocha 7

Fix tests by skipping afterEach steps that are now running in 7 that weren't before.
2020-03-31 11:26:32 -07:00
Jeff Fisher a76b55b916
[search] Migrate to AzureKeyCredential (#8094)
* Migrate to AzureKeyCredential for authentication.
2020-03-30 15:44:40 -07:00
Jeff Fisher 14444159a6
[search] Add batch helper object (#7961)
* Add batch helper object

Implement a class to aid in composing index actions inside a batch.

Closes #7841
2020-03-26 15:57:57 -07:00
Harsha Nalluru fdbd2ef5c1
Alternative custom reporter to mocha-multi (#7931)
* mocha-multi-reporter.js

* update test commands in package.json to not use mocha-multi

* remove mocha-multi from devDependencies

* Update mocha to ^7.1.1

* ts-mocha@6.0 doesn't support mocha@7.0.0 - removing since not being used

ERROR  @rush-temp/event-hubs: ts-mocha@6.0.0 requires a peer of mocha@^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X but version
7.1.1 was installed.

* generate pnpm-lock file

* `rush update --full`  since mocha-multi has been removed

* rollback mocha to 6.2.2 since some of the tests require updates

* generate pnpm-lock file

* update core-http's reporter

* unit-test:browser and unit-test:node commands for eslint plugin to nullify errors thrown by rush

* update core-arm reporter

* Add copyright header

* Remove console.logs

* pnpm-lock from master
2020-03-24 16:17:46 -07:00
Jeff Fisher 99b6d4603a
Fix default deserialization policy (#7965)
Replaces the fix done by #4975 to only apply to the identity package.
2020-03-24 13:12:31 -07:00
Jeff Fisher cac21805d3
[search] Add SearchServiceClient with index-related methods (#7758)
* Add SearchServiceClient with index-related methods
2020-03-20 16:10:17 -07:00
Jeff Fisher 0343a0d91a
Use inlineSources to bundle source file contents inside map files (#7615)
* Enable inlineSources and stop packaging TS files
* Make all license texts consistent and include README.md

Fixes #7706
2020-03-11 10:34:37 -07:00
Jeff Fisher 50caae9421
Regenerate from service swagger (#7751)
This generated code isn't exported through convenience yet.
2020-03-10 15:52:45 -07:00
Azure SDK Bot f7b03ab874
Increment package version after release of azure-search (#7725) 2020-03-09 14:39:51 -07:00
Jeff Fisher 18084a8132
Set release date for search (#7719)
* Set release date for search
* Fix small mistakes in README
2020-03-09 12:46:51 -07:00
Jeff Fisher 6bbed0db4a
[search] Updates for preview 1 (#7641)
Address feedback for preview 1
2020-03-06 19:11:29 -08:00
Jeff Fisher 586acaac21
[core][search] log additional headers on requests (#7649)
* [core][search] log additional headers on requests

Updates the standard list of logged headers to include CORS headers.
Also, adds service-specific allowed headers to the SearchIndexClient.

Fixes #7644
2020-03-05 11:46:16 -08:00
Jeff Fisher fe2103074e
Initial merge of Azure Cognitive Search Preview 1 (#7482)
Mostly functional version of preview 1. Need to add some code samples and polish based on API feedback.
2020-03-02 14:16:48 -08:00
KarishmaGhiya 7fe566f321
fixing variable and field (#7538) 2020-02-25 17:26:01 -08:00
Wes Haggard 99e02e8577
Update impressions (#5977)
* Update impressions in all readmes

* Update package index
2019-11-04 16:19:10 -08:00
KarishmaGhiya d807729ccc
Move arm packages- batch2 (#2229)
* resolved conflicts in arm-compute package

* Moved arm-cognitiveservices

* Moved arm-cosmosdb

* Moved arm-hanaonazure

* Moved arm-hdinsight

* Moved arm-iotcentral

* Moved arm-iothub

* Moved arm-iotspaces

* Moved arm-kusto

* Moved arm-labservices

* Moved arm-links

* Moved arm-locks

* Moved arm-logic and arm-machinelearningcompute

* Moved  arm-machinelearningexperimentation

* Moved arm-machinelearningservices

* Moved arm-managedapplications

* Moved arm-managementgroups

* Moved arm-managementpartner

* Moved arm-maps

* Moved arm-mariadb

* Moved arm-marketplaceordering

* Moved arm-mediaservices

* Moved arm-migrate

* Moved arm-mixedreality

* Moved arm-monitor

* Moved arm-msi

* Moved arm-mysql

* Moved arm-netapp

* Moved arm-network

* Moved arm-notificationhubs

* Moved arm-operationalinsights

* Moved arm-operations

* Moved arm-policy

* Moved arm-policyinsights

* Moved arm-postgresql

* Moved arm-powerbidedicated

* Moved arm-powerbiembedded

* Moved arm-privatedns

* Moved arm-recoveryservices

* Moved arm-recoveryservices-siterecovery

* Moved arm-recoveryservicesbackup

* Moved arm-rediscache

* Moved arm-relay

* Moved arm-reservations

* Moved arm-resourcegraph

* Moved arm-resourcehealth

* Moved arm-resources

* Moved arm-search

* Moved arm-security

* Moved arm-servicebus

* Moved arm-servicefabricmesh

* Moved arm-servicemap

* Moved arm-signalr

* Moved arm-sql

* Moved arm-sqlvirtualmachine

* Moved arm-storage

* Moved arm-storageimportexport

* Moved arm-storagesync

* Moved arm-storsimple1200series

* Moved arm-storsimple8000series

* Moved arm-streamanalytics

* Moved arm-subscriptions

* Moved arm-timeseriesinsights

* Moved arm-trafficmanager

* Moved arm-visualstudio

* Moved arm-webservices

* Moved arm-workspaces

* moved arm-workspaces and arm-webservices under machinelearning service folder

* Moved arm-commitmentplans

* Moved arm-containerregistry

* Moved arm-containerservice

* fixed the repo structure for arm-containerservice

* updated service folder for arm-operations

* updated service folder for arm-subscriptions

* updated service folder for arm-recoveryservices-siterecovery

* updated service folder for arm-servicemap

* updated service folder for arm-rediscache

* updated service folder for arm-rediscache
2019-04-15 16:10:23 -07:00