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

301 Коммитов

Автор SHA1 Сообщение Дата
Will Temple af2317e3c3 Use azure-samples 2022-03-24 14:03:30 -04:00
Will Temple da364c71ce [samples] Moved sample package names to namespace @azure-samples 2022-03-24 13:35:48 -04:00
Jose Manuel Heredia Hidalgo 26d973dba9
[Tables] Fix issue handling empty nextRowKey (#20916)
* Fix issue handling undefined nextRowKey

* Address PR comments

* Add changelog

* remove export

* Address comments
2022-03-18 15:33:21 -07:00
Maor Leger 4a052552f4
[core] - Upgrade existing libraries to core-tracing 1.0.0 (#20915)
### Packages impacted by this PR
@azure/ai-form-recognizer
@aazure/event-hubs
@azure/data-tables

### Issues associated with this PR
N/A

### Describe the problem that is addressed by this PR
Just bumping the version of these packages which depend on core-tracing 1.0.0-preview.14 to instead depend on 1.0.0
2022-03-17 14:45:08 -07:00
Maor Leger 3029e420d7
[data-tables] - Update data-tables to core-tracing preview.14 (#20399)
### Packages impacted by this PR
@azure/data-tables

### Issues associated with this PR
- #20213
- #5607 

### Describe the problem that is addressed by this PR
Now that @azure/core-tracing@preview.14 is out, and hopefully the last version
before GA, we need to upgrade a few packages in order to dogfood both the
upgrade experience and the usage of these packages with the new instrumentation package.

My goal was to upgrade one AMQP package and a few HTTP packages in addition to 
core-rest-pipeline to collect feedback.

Upgrading Data Tables now allows us to start using the new APIs in a client package.

### Provide a list of related PRs _(if any)_
- #20240
2022-02-17 15:27:00 -08:00
Jose Manuel Heredia Hidalgo 2b4cbd8fcf
[Tables] Fix getStatistics operation (#20398)
* Fix getStatistics operation

* Fix lint, format and add changelog

* Address comments

* Update docs

* Update header injection

* Fix lint

* Simplify header injection

* Fix spelling
2022-02-16 16:14:17 -08:00
Jose Manuel Heredia Hidalgo 52dfe02cdc
Exclude browser tests (#20342) 2022-02-11 13:07:31 -08:00
Jose Manuel Heredia Hidalgo cf8eb07bbd
[Tables] Migrating to new recorder (#20164)
* cleanup tests

* First set of tests

* Table client tests

* Table Service

* Node Tests

* Browser Tests

* Fix lint

* Update recordings

* Fix lint

* go after a new version of the test-proxy that dumps the testmismatch

* newer proxy version with additional logging. need to pr back this into sdk/tools

* return test-proxy to align with main. there are conflicts that are not present in the investigation branch

* Update recorded client

* Update proxy tool build

* fix format

* Revert proxy tool version

* Ignore headers

* Fix format

* Use HeaderlessMatcher

* Fix format

* Fix tests

* Remove un needed config

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2022-02-10 19:24:48 -08:00
Jeff Fisher 9afbe3fc46
[core-rest-pipeline] Switch browser transport to fetch (#20201)
Thanks to #19530 we have a new HttpClient that uses Fetch. Currently, we can't make it the default because of recorded tests. However, we'd like folks to be able to try it out, which this PR makes possible.

The solution here is for tests that are dependent on XHR to pass in a custom HttpClient to allow the previous recordings to be used until we can migrate those packages to the new recorder.
2022-02-10 15:08:00 -08:00
Harsha Nalluru 26a75099e8
TestProxy CI variable defaults to true (#20304)
* TestProxy - get rid of it

* default: true
2022-02-10 11:43:36 -08:00
Jiao Di (MSFT) 5593f6b5c0
Fix Azure Tables Sample Issue (#20230)
* Fix Azure Tables Sample Issue

* Fix Azure Tables Sample Issue
2022-02-09 10:34:10 -08:00
Harsha Nalluru c9dcb43446
[Recorder] `configureClientOptions` method on the recorder (#20175)
* configureClientOptions core-v2

* configureClientOptions

* & Record<string, unknown>

* Replicate https://github.com/Azure/azure-sdk-for-js/pull/19920 for core-client-rest

* formatting

* Replicate https://github.com/Azure/azure-sdk-for-js/pull/19920 for core-client-rest

* format

* attestation test fixes

* format

* more format

* format

* more recorder.configureClientOptions

* migration guide

* more format

* mixed-reality update

* attestation simplification

* more fixes

* changelogs and gettingstarted docs

* format

* format

* changelog

* tables ci - test-proxy variable

* env.SAS_CONNECTION_STRING test fix

* sort imports
2022-02-07 16:42:10 -08:00
Will Temple 212f4f4456 Squashed commit of the following:
commit dcb5df3fc8
Merge: 356a32c63 6739271b8
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 28 17:22:23 2022 -0500

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit 356a32c63f
Merge: 6527b2813 b88c0bae2
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 28 16:51:32 2022 -0500

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit 6527b2813f
Merge: db7197b84 55ad30951
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 28 16:13:56 2022 -0500

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit db7197b84b
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 28 11:03:50 2022 -0500

    Enable communication-phone-numbers browser tests

commit 9336dc195f
Merge: 097c9d2bc 7ea04a838
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 27 16:17:54 2022 -0500

    Merge branch 'witemple-msft/rollup2' of github.com:Azure/azure-sdk-for-js into witemple-msft/rollup2

commit 097c9d2bc5
Merge: a022f51bd 9ef90e433
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 27 16:17:29 2022 -0500

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit 7ea04a8388
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 26 17:00:14 2022 -0500

    Update common/tools/dev-tool/src/config/rollup.base.config.ts

    Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>

commit a022f51bde
Merge: 64599af3a c7024562e
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 26 16:42:10 2022 -0500

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit 64599af3a3
Merge: bdd4bcac1 0c4d2af1f
Author: Will Temple <witemple@microsoft.com>
Date:   Tue Jan 25 17:29:58 2022 -0500

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit bdd4bcac15
Merge: e834674c9 97b77df56
Author: Will Temple <witemple@microsoft.com>
Date:   Tue Jan 25 11:26:58 2022 -0800

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit e834674c93
Author: Will Temple <witemple@microsoft.com>
Date:   Tue Jan 25 11:19:29 2022 -0800

    fixed schema-registry-avro

commit 26425ecf4c
Author: Will Temple <witemple@microsoft.com>
Date:   Mon Jan 24 12:53:58 2022 -0800

    Remove util dependency from monitor-query

commit 50beb01555
Author: Will Temple <witemple@microsoft.com>
Date:   Mon Jan 24 14:36:30 2022 -0500

    Removed dangling 'util' dependency

commit d28baf05e5
Author: Will Temple <witemple@microsoft.com>
Date:   Mon Jan 24 12:38:56 2022 -0500

    Make warning inhibitors work on Windows

commit 5c4c828a10
Author: Will Temple <witemple@microsoft.com>
Date:   Mon Jan 24 08:31:07 2022 -0800

    Fixed recorder build:test

commit 81a9d6d65b
Merge: cc7f21248 2144ad4eb
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 15:16:24 2022 -0800

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit cc7f212480
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 15:16:08 2022 -0800

    iot-device-update-rest: migrated

commit 88212d2d80
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 14:13:51 2022 -0800

    keyvault-keys: disable node polyfill

commit 3c1302b09a
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 14:10:17 2022 -0800

    keyvault-admin: disabled browser node polyfill

commit 818cf063c2
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 13:35:29 2022 -0800

    Add basePath configuration to shared script config, inhibit empty warnings from node-resolve

commit 8d187890fe
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 12:15:58 2022 -0800

    Removed errant rollup.config.js entries

commit d4833d4914
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 11:47:45 2022 -0800

    Remove my launch config

commit e63d4e5163
Merge: 37cb4bcf5 d9fe26483
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 11:45:31 2022 -0800

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit 37cb4bcf56
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 21 11:44:20 2022 -0800

    Added shim plugin for source maps

commit 98579cc73f
Merge: 9132065dc e3db6c418
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 20 09:44:42 2022 -0800

    Merge remote-tracking branch 'upstream/main' into witemple-msft/rollup2

commit 9132065dc2
Author: Will Temple <witemple@microsoft.com>
Date:   Fri Jan 14 14:39:32 2022 -0500

    Changed weird regex to path.split.join

commit 9c20ebb570
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 17:25:21 2022 -0500

    Removed communication-chat browser test config, as it's not needed

commit 2a8364d387
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 17:06:02 2022 -0500

    Deleted rollup.config.js for packages on the shared script.

commit 3fc9575933
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 17:01:31 2022 -0500

    template: removed rollup

commit 85d7050081
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 16:54:55 2022 -0500

    synapse: silence rollup output

commit ae9f7a6acb
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 16:30:53 2022 -0500

    Some updates to the bundle command

commit 11cee51f6a
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 16:30:33 2022 -0500

    Migrate more packages to shared rollup script

commit 0c4d89c8f4
Merge: f1ccb033a 78f849db7
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 13:00:13 2022 -0500

    Merge remote-tracking branch 'upstream/main' into dev-tool/rollup2

commit f1ccb033ab
Author: Will Temple <witemple@microsoft.com>
Date:   Thu Jan 13 12:11:27 2022 -0500

    [dev-tool] Add rollup-plugin-polyfill-node

commit 1a8ec9b1a2
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 19:07:43 2022 -0500

    preferBuiltins: false for browser

commit fe81f4ce0c
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 18:20:38 2022 -0500

    arm-compute: fix new warning

commit a75eca0064
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 16:20:54 2022 -0500

    Fixed build error in dev-tool

commit d890a897fd
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 16:18:36 2022 -0500

    Resoved merge conflict

commit a64fa41b34
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 16:12:16 2022 -0500

    Remove mixed rollup commands, leaving only rollup.test.config.js

commit f159571fd0
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 14:43:55 2022 -0500

    Remove all rollup dependencies

commit 65170145b1
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 14:11:28 2022 -0500

    Remove ordinary rollup commands.

commit f43cc70494
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 12:48:19 2022 -0500

    Removed configs that opt-out of browser bundles

commit 24357be603
Merge: 86250f0ab 20df85cb7
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 12:31:49 2022 -0500

    Merge remote-tracking branch 'upstream/main' into dev-tool/rollup2

commit 86250f0ab2
Merge: 26c241e6a 8dcc09499
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Jan 12 12:27:43 2022 -0500

    Merge remote-tracking branch 'upstream/main' into dev-tool/rollup2

commit 26c241e6ac
Merge: a0a98eeba 12b194101
Author: Will Temple <witemple@microsoft.com>
Date:   Tue Dec 14 18:37:30 2021 -0500

    Merge remote-tracking branch 'upstream/main' into dev-tool/rollup2

commit a0a98eeba2
Author: Will Temple <witemple@microsoft.com>
Date:   Tue Dec 14 17:39:12 2021 -0500

    Make consistent

commit c8f6ffeb3f
Author: Will Temple <witemple@microsoft.com>
Date:   Tue Dec 14 17:29:05 2021 -0500

    Migrate template

commit d56bcc5e4b
Author: Will Temple <witemple@microsoft.com>
Date:   Wed Dec 8 11:46:16 2021 -0500

    [dev-tool] Add "bundle" command
2022-01-28 17:26:28 -05:00
Ben Zhang fd15ab8e57
[sort-imports] enforce ```sort-imports``` rule in ```data-tables``` (#20008) 2022-01-24 12:24:30 -08:00
harsha-nalluru 2caa46229c
[Recorder] Rebrand recorder-new 1.0.0 as recorder 2.0.0 (#19724)
* move as recorder 2.0

* lock file

* link fix

* karma fix

* lock file

* formatting and lint

* Update sdk/test-utils/recorder/package.json

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

* Update sdk/test-utils/recorder/tsconfig.json

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

* feedback and merges

* lock file

* lock file

* clean karma

* fix package.json

* lock file

* formatting

* temp commit - tag and version updates

* lock file

* Revert "temp commit - tag and version updates"

This reverts commit 3968440d1c.

* new tags

* test server
app.set('etag', false); // turn off

to avoid the if-none-match header

* lock file

* latest tables and updated recordings

* build failure

* lock file

* formatting

Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
2022-01-15 00:20:56 +00:00
Azure SDK Bot 38163141fd
Post release automated changes for azure-data-tables (#19815) 2022-01-13 18:08:10 -06:00
Jose Manuel Heredia Hidalgo d1af7063e5
Fix changelog (#19812) 2022-01-12 15:30:14 -06:00
Jose Manuel Heredia Hidalgo 8c914aac86
[Tables] Prepare for January release (#19783)
* Add MetastoreOperations

* Prepare for Jan release

* Fix changelog dates

* Update release day
2022-01-12 13:54:04 -06:00
Deyaaeldeen Almahallawi 0288d65afa
Upgrade downlevel-dts to latest (#19762) 2022-01-11 20:00:46 +00:00
Jeremy Meng 241005ef7f
[storage,tables] Update `signedExpiry` to computed value (#19614)
* [storage,tables] Update `signedExpiry` to computed value

instead of hard-coded one which has expired and failed test resource deployments

* Missed copying `baseTime`
2022-01-03 16:01:20 -08:00
Jonathan Cárdenas d0b55f1756
Update prettier dev-dependency to v2.5.1 in Tables (#19579)
* Upgrade prettier version

* Format files
2022-01-03 13:22:29 -06:00
Jose Manuel Heredia Hidalgo 1b6b70f4ce
[Tables] Honor custom HTTP client in transactions (#19470)
* Honor custom HTTP client in transactions

* keep credentials

* Move to internal tests
2021-12-20 15:32:28 -08:00
Jose Manuel Heredia Hidalgo 7fc8368b41
[Tables] Fix live tests (#19469)
* reset timer

* Fix docs issues
2021-12-20 13:22:31 -08:00
Ramya Rao 91e3627b7f
Update mocha-junit-reporter (#19309)
* Update mocha-junit-reporter

* rush update
2021-12-14 09:05:13 -08:00
Ramya Rao 5deb6ced31
Remove the docs script from packages (#19307)
As discussed in #17076, we no longer have the need for the `docs` script in each of our packages. This PR removes this script and the related dev dependency on typedoc
2021-12-14 01:30:46 +00:00
Ramya Rao 6c12ef4659
Update nyc to v15 (#19248)
This PR makes the following updates regarding the `nyc` dependency
- Update to v15 from v14 across all packages
- Updates to `@azure/monitor-opentelemetry-exporter` as it failed to run the tests with the updated nyc. 
     - Update the test scripts to use the js files in the dist-esm folder like all other packages instead of using the ts-node plugin.
     - Update one of the tests for `@azure/monitor-opentelemetry-exporter` to use the right path for package.json file now that the tests are being run from the dist-esm folder.

Random set of live tests were triggered from this PR to ensure that nyc works as expected.
The failure for data-tables is an unrelated service side issue

Resolves #19232
2021-12-13 23:43:51 +00:00
Jose Manuel Heredia Hidalgo 3eb54f481c
[Tables] Honor expiresOn and permissions optionality (#19041)
* Respect expiresOn and permissions optionality

* Update documentation
2021-12-10 11:46:49 -08:00
Ben Zhang c3136d6b83
[sort-imports] update ```data-tables``` with respect to ```sort-imports``` rule (#19055)
* updated with respect to ```sort-imports``` rule

* prettier
2021-12-09 13:23:14 -08:00
Jose Manuel Heredia Hidalgo fbb3a3ca6a
[Tables] Call onResponse when handling TalbeAlreadyExists response (#18914)
* Call onResponse when handling TalbeAlreadyExists response

* Fix format and lint
2021-12-03 13:47:38 -08:00
Azure SDK Bot 86e46b101f
Post release automated changes for tables releases (#18663)
Post release automated changes for azure-data-tables
2021-11-11 23:26:55 +00:00
Jose Manuel Heredia Hidalgo 7faa7de3a0
[Tables] Update changelog date (#18647)
* Update changelog date

* Add note about exporting RestError
2021-11-11 14:29:03 -08:00
Daniel Hensby 6e2b3d13fb
[tables] Add RestError export (#18635)
* NEW Add RestError export

* Update API Extractor docs
2021-11-11 13:45:55 -08:00
Jeff Fisher 638d5eb558
[core-rest-pipeline] Preserve header casing (#18517)
Preserve original casing of HTTP header names when iterating over stored name/value pairs and optionally when converting HttpHeader collections back to JSON.

Fixes #18367
2021-11-10 00:17:39 +00:00
Jose Manuel Heredia Hidalgo 43143dd5ca
[Tables] Take base64 string when inserting a binary through metadata object (#18251)
* Take base64 string when inserting a binary through metadata object

* Change long test name

* Update changelog
2021-11-09 13:14:01 -08:00
Jose Manuel Heredia Hidalgo 8d8f718044
[Tabes] Allow empty strings as partition and row keys (#18586)
* Allow empty strings as partition and row keys

* Update changelog

* Add transaction test
2021-11-09 10:45:07 -08:00
Jose Manuel Heredia Hidalgo 50db5df6c0
[Tables] Fix quote encoding for Filter expressions in the URL (#18520)
* Fix quote encoding and add tests

* Fix quote encoding

* Update changelog

* Add link to issue

* Update version to 13

* Update lock
2021-11-08 17:34:55 -08:00
Jose Manuel Heredia Hidalgo 74b93c7fb8
[Tables] Expose continuation token on TableServiceClient.listTables (#18277)
* Expose continuation token on TableServiceClient.listTables

* Update changelog
2021-11-03 18:14:40 -07:00
Ramya Rao 8f40cf08d9
Move Identity dependency from v2 beta to v2 GA (#18470) 2021-11-01 15:31:25 -07:00
Ramya Rao 290a6e4d66
Update all samples to use Identity v2 (#18463) 2021-11-01 15:15:54 -07:00
Jonathan Cárdenas 5eb0b5c4aa
Standardize autorest command (#18398)
* Standardized command

* Re-adding formatting command
2021-11-01 13:25:24 -07:00
Timo van Veenendaal 7a7d99d271
[Perf Framework] rename perfstress to perf and runAsync to run (#18290)
Reported in #18033.

Basically did a bulk find+replace everywhere. Things _seem_ to be working OK, but wouldn't be surprised if there's something somewhere I've missed, or somewhere where I've replaced something I shouldn't.

I've split the rename of PerfStress -> Perf and runAsync -> run into two commits for ease of review :)
2021-10-23 06:05:56 +00:00
Jose Manuel Heredia Hidalgo 0c47584b30
[Tables] Multiple small fixes to Tables SDK (#18211)
* Multiple small fixes to Tables SDK

* Remove un-needed changes

* Update sdk/tables/data-tables/README.md

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

* Update sdk/tables/data-tables/README.md

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

* Update sdk/tables/data-tables/src/serialization.ts

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

* Update sdk/tables/data-tables/src/utils/bufferSerializer.ts

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

* bring back base64 encoding

* update sample name

* Fix format and update changelog

* Update sample name

* Remove un-needed re-recordings

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
2021-10-18 07:57:05 -07:00
Jose Manuel Heredia Hidalgo 3e965811e6
Support manually handling continuationTokens (#18179)
* Support manually handling continuationTokens

* Use PageSettings and update version

* Update samples and page type

* Address PR Comments

* Undo changes to generated samples

* Fix format
2021-10-15 14:42:08 -07:00
Azure SDK Bot 15e48a44ce
Post release automated changes for azure-data-tables (#17495) 2021-10-15 10:07:06 -07:00
Maor Leger 9dc6167cf1
Update API Extractor for all packages (#17917)
## What

- Update API Extractor to the latest version (currently 7.18.11)
- Regenerate all API reviews by building all the packages

## Why

This is something we keep bumping into. First, we needed to upgrade API Extractor to allow us to re-export directly from
`@opentelemetry/api`. Then, it looks like we needed this to upgrade TypeScript to 4.4. 

We are way behind on this version, and it's time to upgrade.

## Callouts

How noisy is this?! Here's what's happening - somewhere around 7.9 I think API Extractor improved the way it detects name
collisions with predefined globals. Things like KeyType, Response, etc. 

If there's a clash, the generated API markdown file will rename <Item> to <Item_2> to make the name collision explicit.

Talking to folks on the team, and the poor souls that will be doing API Review approvals, we agreed that doing the upgrade
in one fell swoop is the way to go. 

Resolves #9410
2021-09-30 08:07:26 -07:00
Jeremy Meng 74f543c776
[Engsys] Suppress credscan reported issues for test constants (#17505)
* Remove leftover recordings whose tests had been deleted

* Move test secrets into file so we can suppress the file, instead of suppressing using the unstable hashes

* Update suppression list
2021-09-14 12:49:16 -07:00
Jeremy Meng 13861173b6
Upgrade dev dependency ts-node to ^10.0.0 (#17323) 2021-09-10 15:38:24 -07:00
Jose Manuel Heredia Hidalgo 18baa69916
[Tables] Handle boolean when using `disableTypeConversion` and fix value type (#17385)
* Handle boolean and fix value type

* Update changelog

* Update recorded tests to include boolean properties

* Update recordings

* Address PR comments
2021-09-07 10:36:26 -07:00
Harsha Nalluru 85437db51e
[Recorder] Unified recorder prototyping with storage-queue/data-tables SDKs (#15826)
* update rush.json

* lock file

* package.json, rollup and tsconfig

* src file

* test

* add recorder.stop call

* set http

* set protocol to http

* core-rest-pipeline draft

* storage test

* keep only the storage test

* lock file

* update package.json

* recorder-new

* lock file

* undefined to null

* remove target es5

* add a guide with starter steps

* testing-recorder-new

* lock file

* types - recorder-new

* import urlBuilder from core-http

* disclaimer in the guide

* comment out the test in recorder-new

* testing recorder-new setup and test

* rest-pipeline 1.1.0

* lock file

* "versionPolicyName": "test" and sdkType

* karma.conf

* fix package.json

* update test to take sas url

* omit readme checks for testing-recorder-new, recorder-new

* lock file from master

* lock file and readmes

* remove TEST_MODE variable

* update readme with temp-location

* resources update

* skip runnign in ci

* update package.json

* remove console.logs and fix queue name

* fix browser mappings

* index.browser.ts and console.logs

* remove .olg from clean command

* test file with logs

* update readme

* update readme to reflect additional environment variables that must be set

* login steps

* lock file

* test file

* Copying the recordings saved in the container

* remove console logs

* "@azure/data-tables": "^12.1.2"

* dependencies

* rename test file

* core-v2 recorder first draft

* core-v2 node test works

* karma-conf fix

* uri -> url

* update tests

* refactor core-v1 and core-v2 recorder clients

* refactor common code between core-v1 core-v2 and node and browser

* renames and underscore removals

* typings -> types

* address feedback

* RecordingStateManager

* lock file

* lock file

* lock file from master

* lock file

* recorder-new package test skipped

* delete commented test file

* Update sdk/test-utils/testing-recorder-new/README.md

* empty test file

* lock file

* add link descriptions

* Daniel's feedback

* Update sdk/test-utils/recorder-new/README.md

Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>

* Scott's feedback

* Addressing Will's feedback

* Add tslib

* RecordingState

* lock file

* currentState

* lock file

* docker cp

* remove lib from tsconfig

* more feedback

* utils file and base tests

* update error message

* initial set of tests

* Add copyright headers

* No need of the if checks

* both Test_Modes

* Append ${testMode} mode:

* karma conf and tests

* Daniel's new found love - npm run clean move from prebuild to build

* Added many many comments for Daniel 🐱👤

* lock file

* package renames

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-08-26 23:02:30 +00:00
Harsha Nalluru 8dbbedd71a
[Recorder] Adding a note in the readme to release publicly and rename the package(everywhere) (#17127)
* Adding a note in the readme to release publicly

* rename `@azure/test-utils-recorder` to `@azure-tools/test-recorder`

* lock file

* delete recorder new file
2021-08-26 21:22:27 +00:00
Daniel Rodríguez b8f46a9175
Ensuring that the build script also cleans (#17123)
* [Identity] Ensuring that the build script also cleans

* ...everywhere!

* removing double cleans
2021-08-26 14:25:14 -04:00
Jeremy Meng 799bdea380
Update `typings` to `types` in clean NPM scripts (#16965)
- Our convention now is to use `types`.
- Some packages output type definition files into `types` directory but the `clean` scripts still use `typings`.
2021-08-18 14:03:40 -10:00
Daniel Rodríguez ea06d10dd3
[Identity] Incrementing the package version (#16908)
* [Identity] Incrementing the package version

* setting samples to the last released version of Identity

* upgraded non-samples to 2.0.0-beta.6

* found a fix for the CI issue
2021-08-18 19:11:14 -04:00
Harsha Nalluru 3483187063
[Perf Tests] Update perf test projects to use the perf-test sdk-type (#16927)
* Update sdk-type

* update Getting Started

* rushx format

* rush format

* update commands

* Update sdk/storage/perf-tests/storage-blob-track-1/package.json

* Update sdk/storage/perf-tests/storage-blob-track-1/package.json

* Update sdk/storage/perf-tests/storage-file-share-track-1/package.json

* Update sdk/storage/perf-tests/storage-file-share-track-1/package.json
2021-08-14 01:49:53 +00:00
Azure SDK Bot 8da961d0df
Increment package version after release of azure-data-tables (#16854) 2021-08-12 10:31:42 -07:00
Harsha Nalluru f931704f53
[Perf framework] Use Proxy tool to mock/replay the requests (#16518)
* test-proxy in options

* recordingClient from recorder-new

* getRecordingClient public method

* blobServiceClient uses getRecordingClient

* not browser

* checkpoint

* add login steps in getting started

* checkpoint

* NaN bug fix

* remove temp-location note

* logs and minor tweaks - some bug at playback

* remove logs

* update options

* rushx format

* fix sendRequest

* removing unneeded details

* getting started and removing console.log

* improve type readability

* do not redeclare static PerfStressTest.recorder

* rushx format

* simplified tsconfig

* create project

* create project

* simple and batch tests

* core-v2 prototype with addPolicy

* readem disclaimer

* Address Mike's feedback

* rename recorder to testProxyHttpClient

* rename

* fix build failures

* rushx format

* fix test

* readme and getting started

* pnpm-lock file

* rename policy

* swap v1 and v2

* bug fix

* update getting started

* update getting started

* rushx format

* changelog

* Scott says no need to login anymore

* Add workflow in comments

* description

* pnpm-lock file

* RecordingStateManager

* URLBuilder -> URL

* rushx format

* readme

* lock file

* Update sdk/test-utils/perfstress/src/options.ts

Co-authored-by: Mike Harder <mharder@microsoft.com>

* configureClientOptionsCoreV1 & configureClient

* update types

* comments

* getting started

* testProxyClient is not set, please make sure the client/options are configured properly.

* if (!request.headers.get("x-recording-upstream-base-uri"))  set upstream uri

* Add undici

* Investigate hanging docker or image (#33)

* getting started

* testProxyClient is not set, please make sure the client/options are configured properly.

* if (!request.headers.get("x-recording-upstream-base-uri"))  set upstream uri

* Add undici

* checkpoint

* make core-v2 client identical to core-v1 except for sendReq

* update error message

* formatting

* TestProxyHttpClientV1 depends on V2

* rushx format

* Mike's final minor feedback

* For corev1, extend TestProxyHttpClient instead of DefaultHttpClient

* update tests file

* no instaceof checks

* move to http.request

* Jeff's feedback

* CachedProxyClients

* keep clients on the test class

* bad merge conflict resolution

* Update sdk/test-utils/perfstress/GettingStarted.md

* final minor feedback

* remove CachedProxyClients wrapper

Co-authored-by: Jose Manuel Heredia Hidalgo <joheredi@microsoft.com>
Co-authored-by: Mike Harder <mharder@microsoft.com>
2021-08-12 02:21:51 +00:00
Jose Manuel Heredia Hidalgo a2456d8b2a
[Tables] Fix changelog (#16849)
Had some empty sections and a duplicate entry
2021-08-10 22:36:39 +00:00
Jose Manuel Heredia Hidalgo b8956201e6
Prepare Tables for August release (#16816)
* Prepare Tables for August release

* Update PR link
2021-08-09 10:24:54 -07:00
Jose Manuel Heredia Hidalgo e9192be985
[Tables] Use generated useragent (#16730)
* Use generated useragent

* add packageDetails to metadata

* Update generated code

* Add transform to fix mappers
2021-08-06 11:46:18 -07:00
Ramya Rao a883638aeb
Add missing changelog entries for tracing and ES2017 updates (#16768)
This PR adds missing changelog entries for the times we
- updated tracing dependencies to use the GA version of OpenTelemetry
- updated to target ES2017
2021-08-04 22:11:55 +00:00
Jose Manuel Heredia Hidalgo 376669336a
[Tables] Infer EDM types for properties with no Type metadata (#16736)
**Context:**
When querying the Tables service we have an option to disable automatic type conversion. This means that we would give users an object similar to what the service sends us. For example, an object with a Date property will be received like this, with an `@odata.type` metadata property

```json
{
   "PartitionKey": "1",
   "RowKey": "1",
   "dateValue": "2020-09-17T00:00:00.111Z",
   "dateValie@odata.type": "Edm.DateTime"
}
```

The SDK's automatic type conversion would use the metadata to give users a primitive Date type so the user would get the following object

```javascript
{
   partitionKey: "1",
   rowKey: "1",
   dateValue: new Date("2020-09-17T00:00:00.111Z")
}
```

If `disableTypeConversion` is true in the list or get operations the sdk returns the Edm object instead of a primitive type

```javascript
{
   partitionKey: "1",
   rowKey: "1",
   dateValue: {value: "2020-09-17T00:00:00.111Z", type: "DateTime"}
}
```

**Problem**
There are 3 types when the service never sends `@odata.type` metadata and just the value, these are int32, double, and string. Before this PR we would return the value instead of the EDM object since no @odata.type property was found. This causes an inconsistent experience.

**Fix**
When `disableTypeConversion` is true, return an EDM object instead of the value by inferring the EDM type, in the case of the string is straightforward. In the case of int32 and decimal, JavaScript treats both as `number` so we need to inspect the value looking for decimal places to decide whether to use `Edm.Int32` or `Edm.Decimal`.


**Note:**
There is a limitation with this approach, and it is that JavaScript drops decimals if they are `0` for example, `1.00` would be represented as `1`. With these changes, such cases would always have an Edm type of `Int32`
2021-08-04 21:03:34 +00:00
Jose Manuel Heredia Hidalgo 2770975205
Tables perf test (#16709)
* create project

* create project

* simple and batch tests

* Add additional tests and readme
2021-08-03 14:29:14 -07:00
Matt Ellis c230caa851
[Tables] Fix batch operations against emulators (#16587)
In #15938 we exposed the `allowInsecureConnection` option to allow
connections to the service over HTTP instead of HTTPS. However, even
if a table client was created allowing insecure connections, we would
still require a secure connection when submitting a batch transaction,
since the implementation of batch operations interact with the
pipeline directly. We now record if the client was created allowing
insecure connections and thread that information along when creating
requests for batch operations.

With this change, you can now submit batch transactions to storage
emulators, which commonly run over HTTP instead of HTTPS.

Fixes #15854
2021-07-27 16:47:38 -07:00
Jose Manuel Heredia Hidalgo b7bb6d9c30
remove clock mock (#16501) 2021-07-22 11:50:12 -07:00
Maor Leger 5cd6362fbd
[core] - Align with latest OpenTelemetry implementations (#16347)
## What

- Remove `setTracer`
- Remove `NoOpTracer` and `NoOpSpan`
- Use Otel's APIs where possible (like when creating a no-op)
- Respect AZURE_TRACING_DISABLED environment variable
- Include test support for tracing utilizing OTel's trace API
- Avoid injecting invalid `tracerparent` header fields

## Why

- `setTracer` was added before OTel had their own implementation of a global tracer provider. For consistency with other libraries we should use the global tracer that was registered. It also leaves us out of the business of maintaining caches, global tracers, and other annoying things.
- These are no longer needed, since OTel has a recommended way to wrap a span in a NoOp. And, if no tracer provider was registered, a non-recording tracer  (NoOp) will be created. All managed by OTel
- Finally, AZURE_TRACING_DISABLED is one of the env vars our guidelines say we should support

Resolves #16088
Resolves #15730
Resolves #10205
2021-07-15 08:18:54 -07:00
Daniel Rodríguez 773c5b6ed7
[Identity] Increment versions after the recent release (#16342) 2021-07-09 17:32:44 -04:00
Azure SDK Bot 66b9362846
Increment package version after release of azure-data-tables (#16291) 2021-07-08 08:44:45 -07:00
Matt Ellis 8490caef9c
[Tables] Prepare for Release (#16276) 2021-07-07 13:51:16 -07:00
Matt Ellis 5674f7b47c
[Tables] Grant AAD Permissions to Test Role (#16278) 2021-07-07 13:49:44 -07:00
bashiMoha dc6059810b
Dispaly links as list (#16117)
* displayed links as  a list rather than a single line

* appconfiguration\Readme:  displayed links as a list rather than a single line

* confidential-ledger-rest/README.md: display links as list

* container-registry/README.md: display links as list

* cosmos/README.md: display links as list

* iot-device-update/README.md: display links as list

* eventgrid/README.md: display links as list

* event-hubs/README.md: display links as list

* eventhubs-checkpointstore-blob/README.md: display links as list

* formrecognizer/README.md: display links as list

* identity/README.md: display links as list

* iot-modelsrepository/README.md: display links as list

* keyvault-admin/README.md: display links as list

* keyvault-certificates/README.md: display links as list

* keyvault-keys/README.md: display links as list

* keyvault-secrets/README.md: display links as list

* ai-metrics-advisor/README.md: display links as list

* mixedreality-authentication/README.md: display links as list

* monitor-query/README.md: display links as list

* purview-catalog-rest/README.md: display links as list

* purview-scanning-rest/README.md: display links as list

* quantum-jobs/README.md: display links as list

* search-documents/README.md: display links as list

* schema-registry/README.md: display links as list

* schema-registry-avro/README.md: display links as list

* service-bus/README.md: display links as list

* storage/storage-blob/README.md: display links as list

* storage-blob-changefeed/README.md: display links as list

* storage-file-datalake/README.md: display links as list

* storage-file-share/README.md: display links as list

* storage-queue/README.md: display links as list

* data-tables/README.md: display links as list

* ai-text-analytics/README.md: display links as list

* video-analyzer-edge/README.md: display links as list

* web-pubsub/README.md: display links as list

* web-pubsub-express/README.md: display links as list

* core-lro/README.md: display links as list

* changed from the word master to main

* changed the word master to main

* another update to the final reandme to change  the word master to main

* Update README.md

fixed a type in the link

* Update sdk/anomalydetector/ai-anomaly-detector/README.md

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
2021-07-06 12:30:32 -04:00
Ramya Rao 5a7c129972
Update engines, @types/node to Node.js v12 (#15996) 2021-06-28 15:54:47 -07:00
Jose Manuel Heredia Hidalgo cbaa410a49
[Tables] Expose client option allowInsecureConnection (#15938)
In order for Tables to connect to Azurite and Storage emulator, the client needs to accept `allowInsecureConnection`. Also when using the emulator connection string shortcut, setting it by default.
2021-06-24 18:46:20 +00:00
Jose Manuel Heredia Hidalgo 1f6b914ee2
[Tables] Add missing browser mappings (#15944)
* Add missing browser mappings

* Update changelog
2021-06-24 10:30:18 -07:00
Jose Manuel Heredia Hidalgo 2d2c6561ca
[Tables] Support AAD Authentication (#15852)
* Support AAD Authentication

* Update changelog

* Update recordings

* fix format

* Update sdk/tables/data-tables/README.md

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>

* Address comments and add test

* Update release version

* Add Acknowledgments to changelog

* Fix link

* Remove breaking changes section

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>
2021-06-23 15:49:17 -07:00
Maor Leger 99d53b6b85
[core] - GA core-rest-pipeline 1.1.0 (#15923)
## What

- Update `@azure/core-rest-pipeline` to 1.1.0 from beta
- Update dependencies to the latest version
- Update everyone to the same version of `@azure/core-tracing`

## Why

Now that we used the CAE capabilities added in core-rest-pipeline in both container registry and key vault it's time to GA this version! It also unblocks our efforts to get everyone upgraded to the latest core-tracing (and OTel by extension) versions.
2021-06-23 13:49:36 -07:00
Jose Manuel Heredia Hidalgo 65a90e57bc
[Tables] Migration Guide (#15857)
* Migration Guide

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Fix typos

* Apply suggestions from code review

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>

* Address comments

Co-authored-by: Christopher Scott <chriscott@hotmail.com>
Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>
2021-06-23 13:35:24 -07:00
Will Temple c7f3a2a70b Replace master with main in homepage links. 2021-06-22 16:09:11 -07:00
Chidozie Ononiwu a64747cf6a Rename hardcoded master links to use main 2021-06-22 15:51:16 -07:00
praveenkuttappan d769b84431
Change default branch name to main (#15840) 2021-06-18 14:27:11 -04:00
Jeremy Meng 11e2a4bdd4
Remove IE related doc and tests (#15760)
As we are ending the support for IE 11, this PR remove doc and test logic that
handle IE.

- Remove commented polyfill from karma configs
- Remove IE compatibility section from Stroage README files
- Remove IE specific logic from storage tests.
- Remove Storage TODO comments for IE.

* format

* run format on core-client-rest
2021-06-16 14:20:49 -07:00
Deyaaeldeen Almahallawi d3f0285339
[tslib] Upgrade from 2.0 to 2.2 (#15702) 2021-06-11 16:09:45 -04:00
Eros Stein b4e906ca56
Fixes #15664 (#15698) 2021-06-11 11:01:13 -07:00
Azure SDK Bot 89f74ab486
Increment package version after release of azure-data-tables (#15651) 2021-06-09 15:59:59 -07:00
Jose Manuel Heredia Hidalgo 540791d0af
[Tables] Fix setting access policy and add test (#15633)
* Re-generate and Custom serialization for ACL

* format

* update readme

* format readme

* Update changelog

* set swagger package-version

* Update format script

* Fix test and update changelog

* update recorder and recordings

* fix test and changelog

* use deterministic date for test

* update format

* fix lint

* return await

* Update TSDoc samples

* Add additional samples to TSDoc
2021-06-09 13:36:52 -07:00
Jose Manuel Heredia Hidalgo 60d4d5b47c
[Tables] Support SAS Credential and SAS generation (#15564) 2021-06-07 19:55:02 -07:00
Azure SDK Bot 73661c9a80
Increment package version after release of azure-data-tables (#15319) 2021-06-04 16:33:19 -07:00
Jose Manuel Heredia Hidalgo 60f5b7ae02
[Tables] Drop TablesSharedKeyCredential in favor of core-auth NamedKeyCredential (#15529) 2021-06-03 15:31:08 -07:00
Jeremy Meng 744f9f2872
[tables] fix CI failure Node v8 (#15535) 2021-06-03 13:45:45 -04:00
Jose Manuel Heredia Hidalgo 5701967370
Refactor SubmitTransaction to fix multiple send issue (#15493)
* Refactor SubmitTransaction to fix multiple send issue

* Browser recording

* fix lint

* Address PR comments

* Make reset-able state an object
2021-06-02 15:48:57 -07:00
Richard Park 4cc4db1216
[data-tables] Fixing spelling error. (#15411)
`Ommited` should be `Omitted`
2021-05-25 16:41:07 -07:00
Deyaaeldeen Almahallawi 6968df58cc
Upgrade core v2 dep to ^1.0.3 (#15318)
* [Text Analytics] Upgrade core v2 dep to ^1.0.3

* update all other packages

* remove exception
2021-05-19 12:10:57 -04:00
Harsha Nalluru c1e9148189
[Tables] Fix core-ci <=> skip int64 tests in node 8 (#15323)
core - ci was failing for the following two tests in node 8 since bigint is being used.
![image](https://user-images.githubusercontent.com/10452642/118705419-0da49280-b7cd-11eb-8a2e-b456f997c3ae.png)

Talked to @joheredi and decided to skip these tests in node 8 to unblock.
2021-05-18 21:24:18 +00:00
Jose Manuel Heredia Hidalgo 39591c2c4c
[Tables] Skip Node8 for Live Test Validation (#15307)
Node8 Validation was dropped for Tables CI. Live tests need to drop Node8 validation as well as it is not compatible with bigint
2021-05-17 19:58:10 +00:00
Jose Manuel Heredia Hidalgo c44cfc8bce
[Tables] Support bigint (#15275)
* First stab at supporting bigint

* Address PR comments

* Fix lint issues

* expose pipeline

* Update CI and API Surface

* Try excluding node8

* TestType filter

* Display name filter

* Remove variables

* Keep jobMatrixFilter
2021-05-17 09:37:06 -07:00
Jose Manuel Heredia Hidalgo 044d139da2
[Tables] Refactor Tables transaction (#15250)
* Refactor Transaction

* Add TableTransaction helper

* update changelog

* fix lint

* update docstring

* Update jsdocs and cache interceptClient

* Fix lint
2021-05-13 13:07:05 -07:00
Jose Manuel Heredia Hidalgo 29d1a7d806
[Tables] Add createIfNotExists and deleteIfExists (#14956)
* Add createIfNotExists and deleteIfExists. Loosen Entity output type

* Rename property tableName to name

* update samples

* Cleanup models

* more type cleanup

* remove un-used request options

* Remove next prefixed properties from public types

* Add date samples

* Update batch sample

* Publish samples

* Remove ifNotExist and ifExist
2021-05-11 17:11:31 -07:00
Azure SDK Bot 45c1fdf027
Increment package version after release of azure-data-tables (#14764) 2021-04-22 18:50:56 -07:00
Jose Manuel Heredia Hidalgo b8c4ac2f09
Add upsert operation to BatchClient and upgrade samples (#14799)
* Add upsert operation to BatchClient and upgrade samples

* delete legacy samples

* Remove locale

* Fix links

* Fix samples logger issue

* Re-publish samples
2021-04-13 18:32:50 -07:00
Jose Manuel Heredia Hidalgo 4bd620afe1
[Tables] Update changelog for April 2021 release (#14712)
* Update changelog

* Format

* Update sdk/tables/data-tables/CHANGELOG.md
2021-04-06 13:11:40 -07:00
Richard Park f1054c3076
[tracing] updating to opentelemetry 1.0.0-rc.0 (#14208)
* Upgrading to opentelemetry 1.0.0 (rc.0)

Did a few things that made this MUCH easier.

Now that everyone is using the createSpan from @azure/core-tracing we
no longer need _every_ project to reference opentelemetry/api! That has
been removed as part of this PR.

Unfortunately, the leaky nature of JS means that packages still need to
worry about opentelemetry when they build their browser bundle for
testing. To make that simpler I've added a common function to dev-tool
that everyone can call in their rollup that will give them the correct
named exports. This is hooked up for everyone at this point, so the next
time something like this happens I should be able to control it
centrally.

Now for the API breaking changes that I had to fix:
- CanonicalCode is gone and is replaced with SpanStatusCode.
  SpanStatusCode has a much smaller set of codes (literally: ERROR, OK
  or UNSET) so that simplified most of the way we were handling setting
  a span status on error.
- There is a new field (`tracingContext`) that contains `Context`. You
  now pass a context, not a span, to indicate what your "parent" is.
  You'll see this where I've removed `SpanOptions.parentSpan`. Mostly
  it's a simple replacement.
2021-03-29 15:18:40 -07:00
Deyaaeldeen Almahallawi 1f06810067
Use TS ESLint's no-invalid-this instead (#14458)
Implements the approach described here: https://github.com/Azure/azure-sdk-for-js/pull/14406#issuecomment-805869359 to linting `this` references. Reminder to myself: look for typescript-eslint alternatives when the behavior of eslint is not satisfactory.
2021-03-25 19:19:59 +00:00
Will Temple a22db68cc5
[dev-tool] `samples publish` command and changes to samples workflow (#13960)
* [dev-tool] Experimental samples publish command

* Updated template samples structure

* First generation of template samples

* Update to ts-node 9 and use transpilation mode for speed.

* Many improvements and fixes.

- Fixed several bugs with generation.
- Added environment variable analysis.
- Refactored modules for code organization.
- Added azsdk- JSDoc tags for weighting and ignoring samples.
- Made almost all illogical situations yield errors instead of warnings.

* Rework text analytics

* Fixed a bug in the README template saying something about the Template package

* Regenerate text analytics samples

* Consistency changes to dev-tool/register

* Updated TA and Template package.json

* Fixed a couple of file name rendering bugs in the template

* Added API ref link override and regenerated Template samples

* Format

* Fix broken link

* Made typescript version reflect dev-tool ts dependency

* Revert weird change to cosmosdb package.json

* Alpha sort template deps

* Added MIN_SUPPORTED_NODE_VERSION

* Tweaked default tsconfig.

* Use version 1.0.0 instead of 0.1.0

* Pull sample generation info types into their own module.

* Added resource creation link generation.

* Regenerate template samples

* Regenerate text analytics samples

* Regenerate text analytics samples

* Regenerate template samples

* Fix bug in TA samples
2021-03-22 19:05:13 -07:00
Deyaaeldeen Almahallawi 18b3f30602
Use @this to satisfy ESLint's no-invalid-this (#14406)
# Problem

`no-invalid-this` makes sure uses of `this` are valid (see [docs](https://eslint.org/docs/rules/no-invalid-this) and [implementation](8984c91372/lib/rules/utils/ast-utils.js (L900))). However, uses of `this` are rampant in our test suites because this is how mocha unit tests are structured, the Mocha context can be accessed only through `this`. 

# Fix

So instead of disabling `no-invalid-this` in our test suites, this PR tags functions that reference `this` with `@this` and that satisfies the rule requirements (see [docs](https://eslint.org/docs/rules/no-invalid-this)).

# Discussion

It could be argued that this work just replaces one comment annotation with another so we did not really solve the underlying problem. However, the inherent problem lies in how mocha itself works and there is nothing we can do other than probably migrating to another framework that is more sane/type-safe. One minor improvement we get is we now have slightly less syntactic overhead because we need to tag just the function instead of individual lines in its body that violate the rule.

# Trade-offs

Pros:
- function tags are less than line tags

Cons:
- whitelisting one more tag with the tsdoc linter that our devs need to learn about
- still having rampant tags everywhere

Fixes https://github.com/Azure/azure-sdk-for-js/issues/11404
2021-03-23 00:51:54 +00:00
Deyaaeldeen Almahallawi a26462540e
Upgrade Typescript version to 4.2 (#14402)
Upgrade to the next minor version. See the release notes here: https://www.typescriptlang.org/docs/handbook/release-notes/overview.html#typescript-42.
2021-03-22 21:10:07 +00:00
Deyaaeldeen Almahallawi 5bf75f6185
Update TypeScript version to use ~ (#14387)
I confirmed with the TypeScript team that patch releases should not introduce breaking changes. This PR uses tilde in TypeScript version we use so get the latest patch releases for v4.1.
2021-03-22 02:26:08 +00:00
Matt Ellis eb8e07804c
[EventGrid] Prepare for GA Release (#14318)
* [EventGrid] Update to {core-client,core-rest-pipeline}@^1.0.0

* [EventGrid] Prepare for GA Release

- Update version to `4.0.0` from `3.0.0-preview.4`.  The move to
  `4.0.0` is to align our version with the new SDKs for EventGrid from
  the other languages.
- Update CHANGELOG.md
2021-03-17 20:46:06 +00:00
Ramya Rao c2c0ab0e94
[AppConfig, EventGrid, KeyVault, Tables] Run format (#14326) 2021-03-16 22:10:14 -07:00
Azure SDK Bot 8b95220ece
Increment package version after release of azure-data-tables (#14235) 2021-03-11 10:19:31 -08:00
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
Jeremy Meng 7e71194c95
[Core v2] Revert GA version bump and release another preview (#14188)
* Revert "[core v2] prepare for GA release (#14170)"

This reverts commit 0e06e728d6.

* [Core v2] Revert GA version bump and release another preview

* Not releasing core-xml

* Update release date
2021-03-10 13:32:55 -08:00
Jose Manuel Heredia Hidalgo 6b25f8171f
[Tables] Update changelog (#14197)
* Update changelog

* formatting
2021-03-09 14:42:42 -08:00
Jeremy Meng 0e06e728d6
[core v2] prepare for GA release (#14170)
* [core v2] prepare for GA release

- core-rest-pipeline. Update version and release date

* - core-xml. update version and release date

* - core-client. update version and release date
2021-03-08 12:33:18 -08:00
KarishmaGhiya a3ab0248e5
update version for @azure/data-tables (#14105) 2021-03-04 14:38:55 -08:00
Richard Park a6ebd85fde
[tracing] Moving spanOptions to `tracingOptions` in PipelineRequest (#14094)
Creating a `tracingOptions` property on PipelineRequest and using createSpan internally rather than starting spans directly.

Also, allows callers to use createSpanFunction() without a package prefix or namespace (needed for core-http and lower level libraries).
2021-03-04 20:08:33 +00:00
Jose Manuel Heredia Hidalgo 96fe07ef95
[Tables] Fix docs and case-insensitive ConnectionString (#13954)
* Fix docs and case-insensitive CS

* Hide top query option

* Keep default empty object

* address feedback

* Fix connection string

* test cs with = in value
2021-03-03 19:12:51 -08:00
Jose Manuel Heredia Hidalgo 0941b23115
[Device Update] Release of Device Update for IoT Hub SDK for JavaScript (#14066)
* Initial commit

* update package.json

* Add first sample

* Format

* Add simple sample

* Update samples metadata

* Formatting

* Enalbe build and execute samples scripts

* UPDATE LOCK

* update ci

* update scripts

* update test

* don't throw

* Update readme

* Fix readmes

* Update types destination

* Update package

* Update credential scope

* Add changelog

* Update package.json

* Skip lint

* Update dependencies

* Fix readme

* fix tables broken references

* Update release date
2021-03-03 19:11:57 -08:00
Jose Manuel Heredia Hidalgo 10e4017ab0
Fix and enable Batch browser tests (#13955) 2021-03-03 16:07:51 -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
Jeff Fisher e4838de481
[core-https] Rename core-https to core-rest-pipeline (#14042) 2021-03-03 12:11:11 -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
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
Jeff Fisher 7d9c3dd890
[core-client] Unify PipelineOptions and ServiceClientOptions (#13928)
* Clean up high level client options story

* Update dependant clients

* Remove unnecessary properties

* fixup XML imports
2021-02-24 14:01:03 -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
Jeff Fisher 7a7c17370e
[core-https] Hide client constructors (#13859)
Migrate DefaultHttpsClient from a constructor pattern to a factory.
2021-02-18 16:35:03 -08:00
Azure SDK Bot 66216c09da
Increment version for tables releases (#13717)
Increment package version after release of azure-data-tables
2021-02-12 19:08:03 +00:00
Jose Manuel Heredia Hidalgo e830313a89
Update release notes for beta.5 (#13706) 2021-02-09 11:53:57 -08:00
Jeff Fisher 959a8c9b96
[data-tables] Manual port of data-tables package to corev2 (#12548)
* Move tables to new core packages
2021-02-01 15:06:48 -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 d122851b03
Upgrade V6 SDK Generator Version for Tables (#13362)
* Upgrade V6 SDK Generator Version for Tables

* Hide the clients
2021-01-25 10:07:12 -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
Azure SDK Bot ccfa05ddc0
Increment package version after release of azure-data-tables (#13195) 2021-01-13 14:47:04 -06:00
Jose Manuel Heredia Hidalgo aba4101f91
[Tables] Support Emulator and Azurite (#13165)
* Support Emulator and Azurite

* Support UseDevelopmentStorage connection string

* make usedevelopmentstorage case-insensitive

* Use toLowerCase
2021-01-12 18:37:57 -06:00
Jose Manuel Heredia Hidalgo 758107b048
Increase timeout (#13108) 2021-01-11 13:53:01 -06:00
Jose Manuel Heredia Hidalgo 859913d019
[Tables] Fix typos in samples (#13072)
Fixes #12914 . Also adding a sample on how to query topN items
2021-01-06 22:11:22 +00:00
Josue(MSFT) 1c7e43a98f
add the environment variable (#12934) 2021-01-04 13:51:52 -06:00
KarishmaGhiya 6c09edddb5
[tables] Code coverage tables (#12976)
Co-authored-by: HarshaNalluru <sanallur@microsoft.com>
2020-12-28 03:05:59 -08:00
Deyaaeldeen Almahallawi 8ab8d4cbf7
[Docs] Add --excludeExternals to rushx docs command (#12987) 2020-12-23 14:18:07 -08:00
Deyaaeldeen Almahallawi be0e8353f5
Remove @param and @returns tags if they have no description (#12943)
Address feedback for https://github.com/Azure/azure-sdk-for-js/pull/12912.
2020-12-17 22:59:32 +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 78db83fe14
Standardization of our documentation comments (#12912)
# Status quo
Some of our documentation comments are [TypeDoc](http://typedoc.org/guides/doccomments/) and some of them are JSDoc with type description in the comments even though it is for typed TS code.

# Standardization
I decided the best way to go about this is to migrate to [TSDoc](https://github.com/Microsoft/tsdoc) and enforcing it using the [tsdoc eslint plugin](https://www.npmjs.com/package/eslint-plugin-tsdoc).

Pros:
- TSDoc is a proposal to standardize the doc comments used in TypeScript code, so that different tools can extract content without getting confused by each other’s markup.
- It is being developed at Microsoft, with the TypeScript team.
- It has an ESLint plugin that enforces it and will error when it sees unsupported tags (e.g. `@memberof`, `@class`, `@constructor`, `@type`, etc).

Cons:
- It is still in early stages (adoption is ongoing though, e.g. it is being used by the API extractor tool).
- TSDoc != TypeDoc (the tool we currently use for generating our documentation). However, TypeDoc plans to officially support TSDoc in v1.1 (see https://github.com/TypeStrong/typedoc/issues/1266).

# Notable tag changes
- `@ignore` is a JSDoc tag and was used in conjunction with `@internal`. These tags were needed because [TypeDoc does not yet support documenting only definitions exported by the entry point](https://github.com/TypeStrong/typedoc/pull/1184#issuecomment-650809143) and still documents everything exported from all files. I removed `@ignore` because [`@internal`](https://tsdoc.org/pages/tags/internal) only should suffice
- `@ignore` when used alone is replaced with TypeDoc's [`hidden`](http://typedoc.org/guides/doccomments/#hidden-and-ignore). EDIT: I replaced `@ignore` with [`@hidden`](https://github.com/TypeStrong/typedoc/releases/tag/v0.12.0) because the TypeDoc version used for `docs.microsoft.com` is v0.15.0 which does not support `--stripInternal`. After, they upgrade, I will remove all `@hidden` tags. 
- `@summary` is gone because it is not part of TSDoc or TypeDoc

This PR applies the changes to packages that respect our linting rules. Ones that do not yet will be migrated later when we start fixing their linting issues.

Here are vanilla examples of TypeDoc 0.18.0 (version used by our EngSys) after the changes here as a sanity check:
- random method:
![typedoc](https://user-images.githubusercontent.com/6074665/102302881-f6186380-3f27-11eb-8cc6-93e4c8f7d42d.PNG)
- a class constructor that used to have type information in the documentation comments:
![constructor](https://user-images.githubusercontent.com/6074665/102357078-f8a4a880-3f7b-11eb-92d1-c086ecc39c0b.PNG)

# `@hidden` works the same way as `@ignore`
Here are the list of documented functions generated by `TypeDoc v0.15.0` for the text analytics package and there is no function that was marked `@hidden`, e.g. `combineSuccessfulAndErroneousDocumentsWithStatisticsAndModelVersion`
![image](https://user-images.githubusercontent.com/6074665/102426196-e018aa80-3fdc-11eb-8b69-1ac265391fad.png)

# Things to consider
- Our documentation must be generated using the TypeDoc flag [`--stripInternal`](http://typedoc.org/guides/options/#stripinternal)
- Should we add a `docs` npm script to our `package.json`s (similar to [Cosmos's](2424b74f02/sdk/cosmosdb/cosmos/package.json (L60))) so that we can see how our docs are generated as we write our comments?

Fixes https://github.com/Azure/azure-sdk-for-js/issues/3027.
2020-12-17 02:01:34 +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
Shuang Jiang 9ce5dbc4ee
update invalid sample products (#12849)
Co-authored-by: Shuang Jiang <shujia@microsoft.com>
2020-12-11 13:01:33 -05:00
Will Temple 6ffd578ecd
Add PR CI step to build samples (#12715)
* Add PR CI step to build samples

* Made a change to rush-runner

* Fixed an issue with rush-runner patch

* Repaired metricsadvisor and anomalydetector samples builds

* Repaired storage samples build scripts, added skip to storage-internal-avro

* Added skips to core packages without samples

* Resolved conflicting options in identity samples

* Skipped broken test scripts

* pnpm-lock

* [eventhubs-checkpointstore-blob] fix build:samples script (#3)

* [event-processor-host] fix build:samples script

* Revert sorting of package.json script entries

* Fixed merge artifact in dev-tool package.json

* pnpm-lock

* Revert formatting changes to anomalydetector

* Run build phase with transitive dependencies.

* Add stub build:samples commands for synapse

* Added samples build setup for tables

* Repaired two broken links in EPH

Co-authored-by: chradek <51000525+chradek@users.noreply.github.com>
Co-authored-by: chradek <chradek@microsoft.com>
2020-12-11 11:22:12 -05:00
Will Temple 1cc6607d8f
Add export to sample main functions where missing (#12792)
* Added export to typescript main declarations where missing

* Minor commit formatting changes
2020-12-07 13:05:42 -05:00
Jose Manuel Heredia Hidalgo 1810528404
[Tables] Don't deserialize DateTime to avoid losing precision (#12650)
Fixes #12646

Tables service supports ns precision DateTime however JavaScript doesn't. As part of entity deserialization, whenever we get a property with type Edm.DateTime we parse it into a JavaScript Date object, which can lead to losing precision.

To fix this we need to disable the default deserialization for Edm.DateTime and give the user an "edm" object, similar to what we do for Guid and Int64

```typescript
{
partitionKey: "p1",
rowKey: "r1",
blahblah: {type: "DateTime", value:"the date"}
}
```
2020-11-20 23:27:00 +00:00
Azure SDK Bot 13d712aaf8
Increment version for tables releases (#12528)
Increment package version after release of azure-data-tables
2020-11-13 02:58:00 +00:00
Jose Manuel Heredia Hidalgo 266f9f3d6f
update changelog (#12522) 2020-11-12 13:58:06 -08:00