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

313 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng 0d9f89ac90
[engsys] upgrade dev dependency `sinon` and `@types/sinon` (#26622)
- update `sinon` version to `^15.0.0`. The breaking changes does not
affect our usages.
- upgrade `@types/sinon` to `^10.0.0`. This reveals test issue where
mocked tokens are not compatible with `AccessToken`. This PR fixes the
tests too.
2023-07-27 09:54:37 -07:00
kazrael2119 8e57a9f309
eventgrid update test (#26559) 2023-07-25 14:23:18 +08:00
Azure SDK Bot b5814c6b32
Post release automated changes for eventgrid releases (#26143)
Post release automated changes for azure-eventgrid
2023-06-29 15:20:36 -07:00
Jeremy Meng 8e4aa78137
[EngSys][EventGrid] enable generation of api doc model (#26148)
apiview needs it as input to generate api reports
2023-06-08 14:02:26 -07:00
Sarangan Rajamanickam d68354f922
[@azure/eventgrid] Adding new events for EG Version 4.13.0 (#26020)
### Packages impacted by this PR
@azure/eventgrid

**API View To Approve**
https://apiview.dev/Assemblies/Review/0972d8e0f04346beb9caa64994e8499f/d4f74574fb3d4f219b1bb6ea3652c09f?diffRevisionId=1bcdb912a7f84f35aa7773f029f70761&doc=False&diffOnly=True

### Issues associated with this PR
NA

### Describe the problem that is addressed by this PR
The EventGrid Service Team has added 5 new events. The SDK must be
regenerated to include the code changes related to these 5 new events.
The SDK minor version has been updated.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
There are no specific/complex design scenarios for this task. It is a
straightforward regenerate and some standard changes to the custom layer
of the code.

### Are there test cases added in this PR? _(If not, why?)_
No. This item is standard and we need not add test cases for every new
events. The existing cases would be sufficient.

### Provide a list of related PRs _(if any)_
NA

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
`autorest --typescript swagger\README.md`

### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [X] Added a changelog (if necessary)

@xirzec @ellismg @jeremymeng  Please review and approve the PR.

@lmazuel FYI
2023-06-07 14:51:29 -07:00
Azure SDK Bot dd22b7cf15
Post release automated changes for eventgrid releases (#25923)
Post release automated changes for azure-arm-eventgrid
2023-05-24 20:02:02 +08:00
kazrael2119 451186856b
eventgrid release (#25911)
https://github.com/Azure/sdk-release-request/issues/4169
Recording:
https://github.com/Azure/azure-sdk-assets/tree/js/eventgrid/arm-eventgrid_f0e374dc2a
2023-05-19 13:27:23 +08:00
Sarangan Rajamanickam 6886589e3f
[@azure/eventgrid] Update EG Minor Version (#25897)
### Packages impacted by this PR
@azure/eventgrid

### Issues associated with this PR
None

### Describe the problem that is addressed by this PR
Now new features/bug fixes are added to this PR. The previous release
4.11.1 added new system events to the SDK. Normally, we update the minor
version and not the patch version for such releases. But, since only the
patch version has been updated for that release, in order to maintain
consistency, on the release guidelines, I am updating the minor version
and releasing a new version of the SDK through this PR.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
No special design consideration.

### Are there test cases added in this PR? _(If not, why?)_
Very trivial update of Minor Version. No test cases are required.

### Provide a list of related PRs _(if any)_
None

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
None

### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [X] Added a changelog (if necessary)

@xirzec Please review and approve. Thanks
2023-05-17 10:42:09 -07:00
Sarangan Rajamanickam 67cc638d26
[@azure/eventgrid] Adding new events for EG Version 4.11.1 (#25834)
### Packages impacted by this PR
@azure/eventgrid

### Issues associated with this PR
NA

### Describe the problem that is addressed by this PR
The EventGrid Service Team has added 20 new events. The SDK must be
regenerated to include the code changes related to these 20 new events.
The SDK version must be updated and a out-of-band release has been
planned for this service.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
There are no specific/complex design scenarios for this task. It is a
straightforward regenerate and some standard changes to the custom layer
of the code.

### Are there test cases added in this PR? _(If not, why?)_
No. This item is standard and we need not add test cases for every new
events. The existing cases would be sufficient.

### Provide a list of related PRs _(if any)_
NA

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
`autorest --typescript swagger\README.md`

### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [X] Added a changelog (if necessary)

@xirzec @ellismg @jeremymeng  Please review and approve the PR.

@lmazuel FYI
2023-05-10 13:38:00 -07:00
kazrael2119 dafd06c15f
migrate sdk recording files 2 (#25670)
https://github.com/Azure/azure-sdk-for-js/issues/25410
2023-04-28 15:50:56 +08:00
Jeremy Meng d3a06a7349 [EngSys] upgrade dev dependency `typescript` to `~5.0.0`
***NO_CI***

- update versions in package.json
- change a couple ^ version to ~ version because typescript doesn't follow semver
2023-04-18 23:04:26 +00:00
Jeremy Meng ae26cc9d92 [engsys] remove karma ie and edge launcher
as we no longer need to test them.

***NO_CI***
2023-03-06 17:08:15 -05:00
Jeff Fisher b1509d6756 Update test-recorder to drop support for `@Azure/core-http` and
bump the major version accordingly.

***NO_CI***
2023-03-02 15:21:26 -08:00
Jeremy Meng 42d359f404 [engsys] upgrade @rollup plugins dev dependencies
***NO_CI***

- `@rollup/plugin-commonjs` to `^24.0.0`
- `@rollup/plugin-json` to `^6.0.0`
- `@rollup/plugin-multi-entry` to `^6.0.0`
- `rollup-plugin-polyfill-node` to `^0.12.0`
- `@rollup/plugin-inject` to `^5.0.0`
- `@rollup/plugin-replace` to `^5.0.0`

Fix notification-hubs rollup test config: now sourcemaps plugin is complaining
about .ts file. Move typescript plugin before it.

Fix service-bus to include needed rollup dependencies. It was lucky to be able
to re-use on other packages to install them but is failing in some builds.
2023-02-10 15:12:48 -08:00
Jeremy Meng ab536fc39a [engsys] make typescript version consistent to ~4.8.0
***NO_CI***

This is the result of

- `rush add --dev -m -p typescript@~4.8.0`

- and update versions in non-rush projects
2023-02-10 11:41:53 -08:00
Jeremy Meng bbb29823c9 [engsys] upgrade dev dependency `dotenv` version to `^16.0.0`
***NO_CI***
2023-01-26 15:59:56 -08:00
Azure SDK Bot b78d63a003
Post release automated changes for azure-arm-eventgrid (#24437) 2023-01-16 16:34:34 +08:00
kazrael2119 22ff9ef8ba
refresh9 (#24423)
* refresh9

* update files

* update files

* update files

* update files

* update files
2023-01-11 16:38:41 +08:00
Azure SDK Bot 788930a177
Post release automated changes for eventgrid releases (#23760)
Post release automated changes for azure-eventgrid
2022-11-08 20:30:07 +00:00
Matt Ellis 36fbf740ba
[EventGrid] Update Healthcare Events, Prepare for Nov Release (#23740)
* [EventGrid] Update Healthcare Events, Prepare for Nov Release

The only updates for our November release are adding type interfaces
for two new healthcare API events which the service now sends.

* Add Dicom as an allowed word
2022-11-08 11:22:50 -08:00
Jeff Fisher 526926acc6
Upgrade TypeScript to 4.8 for most packages (#23730) 2022-11-05 01:24:43 +00:00
Jeremy Meng 98508cfa18 [EngSys] update engines required node version and @types/node version to v14
***NO_CI***

- string replace in package json: 12 => 14 for engines/node and for dependency @types/node
- eslint: update `json-engine-is-present` rule to 14.0.0 as LTS version
- identity: react to typing improvements for `readFile()`'s `options.encoding`
- trivial generated api.md file changes due to @types/node version bump
2022-10-14 14:29:35 -07:00
Jeremy Meng 6c881ed3a1 [engsys] upgrade dev dependency `@microsoft/api-extractor` to `^7.31.1`
***NO_CI***

- bump api-extractor dev dependency to ^7.31.1 for all packages
- insignificant review file changes for cosmos and blob
2022-09-22 17:09:15 -07:00
Jeremy Meng f280f87f7b [engsys] fix broken nodejs lts schedule link
On https://nodejs.org/ it is now point to https://github.com/nodejs/release#release-schedule

***NO_CI***
2022-09-19 16:37:05 -04:00
Azure SDK Bot 35db969a1e
Post release automated changes for eventgrid releases (#22336)
Post release automated changes for azure-arm-eventgrid
2022-07-29 19:33:01 +00:00
Jeremy Meng 84fabfd41e [engsys] upgrade `typescript` to `^4.6.0` for rest packages
***NO_CI***

This is a follow-up to PR #21536 and PR #21537.

- upgrade typescript to 4.6.0 for communication packages

- upgrade typescript to 4.6 for test-utils and dev-tool

- upgrade typescript to 4.6
2022-07-22 16:41:43 -04:00
Azure SDK Bot 0840964e6a
Post release automated changes for eventgrid releases (#22539)
Post release automated changes for azure-eventgrid
2022-07-12 00:16:17 +00:00
Matt Ellis 519b729d6d
[EventGrid] Prepare EventGrid 4.10.0 release (#22535)
The service now supports the "channel name" feature added in
4.10.0-beta.1 and this release adds support in a GA package.

There are no changes in the implementation from 4.10.0-beta.1
2022-07-11 14:50:06 -07:00
kazrael2119 53b41e100a
release eventgrid package (#22292)
* release eventgrid package

* Fix test case failures

Co-authored-by: ZiWei Chen (WICRESOFT NORTH AMERICA LTD) <v-ziweichen@microsoft.com>
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2022-06-23 14:18:41 +08:00
Jeremy Meng 86cbca6548 [eslint] enable linter rules for README javascript code blocks
***NO_CI***

Co-authored-by: Wei Jun <67103802+WeiJun428@users.noreply.github.com>

- [x] template

Enable README Eslint (#21612)

* fixed ai-anomaly-detector

* fixed minor error

* fixed app-configuration

* fixed communication-chat

* fixed communication-common

* fixed communication-identity

* fixed communication-network-traversal

* fixed communication-phone-numbers

* fixed communication-short-codes

* fixed communication-sms

* fixed container-registry

* fixed digital-twins-core

* fixed eventgrid

* fixed event-hubs

* fixed ai-form-recognizer

* fixed opentelemetry-instrumentation-azure-sdk

* fixed mixed-reality-authentication

* fixed quantum-jobs

* fixed mixed-reality-remote-rendering

* fixed schema-registry

* fixed service-bus

* fixed storage-blob

* fixed storage-file-datalake

* fixed storage-file-share

* fixed storage-queue

* fixed data-tables

* fixed video-analyzer-edge

* fixed web-pubsub

* fixed web-pubsub-express

* partially fixed attestation

* added target to lint:fix in attestation

* fixed ai-anomaly-detector

* revert attestation

* fixed container-registry

* fixed digital-twins-core

* fixed eventgrid

* fixed opentelemetry-instrumentation-azure-sdk

* fixed mixed-reality-authentication

* fixed mixed-reality-remote-rendering

* storage-blob

* fixed storage-file-datalake

* fixed storage-file-share

* fixed storage-queue

* fixed template

* fixed ai-text-analytics

* fixed schema-registry-arvo

* fixed ai-metric-advisor

* fixed eventhubs-checkpointstore-table

* fixed eventhubs-checkpointstore-blob

* fixed identity-vscode

* fixed identity-cache-persistence

Add `-ext .ts,.javascript,.js` option back

This option is used to specify file patterns under directories. Without it,
unwanted files (e.g., *.json under test folder) will be linted.
2022-05-24 11:58:40 -07:00
Jeremy Meng 83e13d88f9 [engsys] upgrade `eslint` dev dependency version to ^8.0.0 for rest packages
***NO_CI***
2022-05-20 13:21:30 -07:00
Azure SDK Bot 962031b874
Post release automated changes for eventgrid releases (#21924)
Post release automated changes for azure-arm-eventgrid
2022-05-20 01:41:05 +00:00
colawwj 7592071cff
eventgrid-track2-release (#21878) 2022-05-19 17:44:28 +08:00
Christian Baer b2c2c950bf
Correctly Format Datetime to 12 hour Format (#21849)
Co-authored-by: Christian Baer <christian.baer@misterspex.de>
2022-05-12 13:53:07 -07:00
Timo van Veenendaal cf19b7b0d0
[Perf] Multicore support (#20736)
The perf framework previously did not support true multi-core operation. This PR provides an implementation of multicore support based on a message-passing model.

Two new options are added to the perf framework as part of this PR:
* `--cpus`/`-c`: number specifying the number of cores (CPUs) to use. Defaults to 1, set to 0 to match the number of cores on the machine.
* `--use-worker-threads`: boolean, defaults to false. Pass this flag to use `worker_threads` instead of `child_process` for multithreading (see Multithreading implementations, below)
2022-05-11 12:02:29 -07:00
Timo van Veenendaal 6d33056c99
[EventGrid] Fix recorded tests (#21813)
I recently improved the error messages coming out of the recorder in #21575, making the recorder client throw a special error when the recorder failed to find a matching recording for a request. Before that change, the recorder client would yield a standard RestError with a 404 response when a request couldn't be matched to a recording.

Event Grid has a few tests which expect a 404 response from the service. These tests catch and test for a RestError with 404 status to ensure that this response is received. However, during playback mode, the recorder was not finding a recording to match the request with, due to an issue with sanitization. Before my change to the error message, the tests were passing fine (incorrectly), since they were handling the 404 that was coming from the test proxy and not the recording itself. They're now failing since the error that's coming back is different.

The reason that the test proxy could not match the requests to a recording is because of some issues with sanitization of the recording. This change fixes the sanitization and gets the tests passing again, with the RestError now coming from the recording itself giving a 404 response, as was originally intended.
2022-05-11 17:54:40 +00:00
Jeremy Meng ab54769137
[engsys] upgrade typescript version to v4.6 - part.1 (#21536)
Note: upgrade for packages that JS team owns (a to i)
2022-04-25 16:45:36 -07:00
praveenkuttappan 84329dd2e8 Pin API-extrator to 7.18.11 2022-04-20 15:32:34 -07:00
Jeremy Meng 191e4ce330 [EngSys] prepare for upgrading TypeScript to v4.6
Before upgrading we want to address the breaking change of catch variable now
defaulting to `unkown` by explicitly specify `: any` for implicit `any` catch
variables in our code base.

This commit applies the result of running the following codemod (credit: Maor)

```ts
import { API, FileInfo } from "jscodeshift";
export default function transformer(file: FileInfo, api: API) {
  const j = api.jscodeshift;
  const code = j(file.source);
  code
    .find(j.CatchClause)
    .filter(({ node }) => {
      return node.param && node.param.type == "Identifier" && !node.param.typeAnnotation;
    })
    .forEach(({ node }) => {
      if (node.param.type == "Identifier") {
        node.param.typeAnnotation = j.tsTypeAnnotation(j.tsAnyKeyword());
      }
    });
  return code.toSource();
}
```
2022-04-19 12:11:57 -07:00
Jeremy Meng b835e0bc70
[engsys] fixing linter errors (#21459)
* [engsys] fixing linter errors

* Address CR feedback
2022-04-18 13:49:05 -07:00
Azure SDK Bot aee346be54
Post release automated changes for eventgrid releases (#21438)
Post release automated changes for azure-eventgrid
2022-04-15 22:47:59 +00:00
Matt Ellis 3763a75202
[EventGrid] Support Channel Names for Partner Topics (#21411)
The EventGrid service team is adding a new feature called channels
which can be used by Partner Topics (note that "partners" here does
not mean internal Microsoft folks, but rather larger external
customers). The channels act as a sort of namespacing mechanism
(similar to the Domain Topics for topics using the classic
"EventGrid" schema) but are only supported when the schema of the
topic is set to Cloud Events.

Unlike domain topics, where the event payload includes information on
which topic inside the domain to send to, the channel which is
published to is specificed in an `aeg-channel-name` header as part of
the request to send events.

To support this - we add a new property to our options bag,
`channelName` which can be used to specify the channel to use when
sending a set of events. Because this feature is specific to Partner
Topics, we did not try to model it as another named parameter of the
`send` function or create a new method which would be specific to
channels. Most customers won't be using Partner Topics (although,
again, this is a feature that can and is used by external customers)
so we did not want to introduce a new cognitive burden.

We have authored our typescript typings for this function such that
the `channelName` property on the options bag only appears for clients
which are using the CloudEvent schema.

The service team has this feature in Preview today, so we'd like to
release a preview version of the library with support for this feature
that their customers can use.  We've manually validated this against a
partner topic provided by the service team and are working on getting
automated tests that we can record.
2022-04-15 11:02:00 -07:00
Maor Leger a41f3fb70e
[event-grid] - Upgrade to core-tracing 1.0 (#21287)
### Packages impacted by this PR
event-grid

### Issues associated with this PR
Resolves #21249

### Describe the problem that is addressed by this PR
As part of a larger effort, this PR upgrades @azure/event-grid to core-tracing
1.0 now that it has GA'd. 

### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
One open question was how should I test the
`cloudEventDistributedTracingEnricherPolicy` in this new world. We've done a lot
of work to abstract away from OTel and our test instrumenter no longer creates
headers to avoid polluting the recordings.

But since the policy depends on the traceparent headers to exist we needed to
execute that logic somehow. The solution I landed on is a custom pipeline policy
that puts the two headers this code depends on to exercise that code without
concerning itself with _how_ the headers get there.
2022-04-12 08:01:24 -07:00
Azure SDK Bot 9086ca4654
Post release automated changes for eventgrid releases (#21300)
Post release automated changes for azure-eventgrid
2022-04-08 18:36:05 +00:00
Matt Ellis 4212ed6c59
[EventGrid] Update System Events and Prepare for Release (#21141)
This change updates our swagger to the latest version in
`azure-rest-api-specs`. This includes support for three new system
events related to healthcare.
2022-04-07 15:49:14 -07:00
colawwj f7038b95f5
eventgrid-track2-release (#21223)
* eventgrid-track2-release

* eventgrid-track2-release
2022-04-06 14:48:49 +08:00
Jeremy Meng 388fa9782f
[engsys] improve smoke test runner (#20872)
- previously the runner load sample modules in main(). Any error would cause
main() to exit thus skipping rest of tests. Now the samples are loaded when they
are executed so errors in loading modules can be caught.

- the consumeEventsFromServiceBusQueue sample is calling `process.exit()` upon
completion, causing the runner to exit because it currently runs tests in-proc.
Update the test to exit with code 1 when failing.
2022-03-30 10:54:46 -07:00
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
Azure SDK Bot 3d9f97ee31
Post release automated changes for eventgrid releases (#20739)
Post release automated changes for azure-eventgrid
2022-03-09 02:39:19 +00:00
Matt Ellis 9ec6856237
[EventGrid] Use `^1.5.0` for `@azure/core-client` (#20726)
In #20273 we moved our `@azure/core-client` reference to `^1.5.1` in
order to pick up some new features we needed for use with the new
recorder. The version of this package has not shipped yet and we'd
like to release EventGrid this release cycle.

Talking with Jose, there's nothing we should need right now newer than
1.5.0, so we'll move our constraint back to that version.
2022-03-08 14:34:13 -08:00
Matt Ellis b95d0dd850
[EventGrid] Update for March Release (#20693)
This change updates our Swagger API reference and re-runs the code
generation. There are no new events this sprint, however a new value
was added to and enum used by some `Microsoft.Media` events.

As part of the update, we pulled in changes around a new
`aeg-channel-name` header which was added to support a new Event Grid
feature. It is currently unexposed, but we expect to add support in
the April release.
2022-03-08 10:37:34 -08:00
colawwj 921810a62b
Separate ci.yml and ci.mgmt.yml (#20354) 2022-02-18 10:28:11 +08:00
Harsha Nalluru 5e6df44687
[Event Grid] Headerless Matcher to not check the dynamic headers (#20345) 2022-02-11 13:10:51 -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
Harsha Nalluru d8d4e229ad
[Event Grid] Migrate tests to the new recorder (#20273)
* event grid should be done

* remove comments

* TestProxy: true
2022-02-09 13:01:13 -08:00
Azure SDK Bot dee4ad188f
Post release automated changes for azure-eventgrid (#20263) 2022-02-08 22:09:53 +00:00
Matt Ellis d1938295be
[EventGrid] Update System events and prepare for Feb release (#20220)
This change pulls in the latest changes from the
`azure-rest-api-specs` repository for system events in Azure.

It fixes two issues with our typings for events (a property name was
incorrectly cased and another property was typed as a boolean when the
event delivered by the service uses a string (with the value of `true`
or `false`) instead of a boolean as might be expected.

This is a breaking change for code which is written in typescript and
which uses any of these impacted properties because the underlying
type has changed from string to something else. However, any code
which previously was written against the old typings would have
*failed* at runtime with a type error, so in practice anyone who gets
an issue is now correctly discovering a bug in their program at
compile time now instead of runtime.
2022-02-07 19:56:36 +00:00
Matt Ellis e4c711007b
[eventgrid] Fix nightly Min/Max CI issues (#20126)
Similar to #19862, we have recently started to see some issues in our
nightly min/max jobs that prevent us from saving the entire Response
object during the `onResponse` callback due to multiple imports of the
"same" type.

Similar to the resolution for #19862, I've decided to just not use
nominal types from `core-client` here and instead just stash away the
parts of the response I need inside the callback and observe the
values after.

Fixes #20014
2022-01-28 17:55:53 -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
Azure SDK Bot c8c7af414b
Post release automated changes for eventgrid releases (#19785) 2022-01-24 14:53:48 -08:00
Maor Leger b200156b18
[eventgrid][servicebus] - Update tests to reflect tracingPolicy changes (#19893)
**Checklists** 
- [x] Added impacted package name to the issue description

**Packages impacted by this PR:** 
@azure/event-grid, @azure/service-bus

**Describe the problem that is addressed by this PR:**
In order to conform to the OTel spec and allow for easier aggregations we
updated tracing policy to name the span `HTTP <method>` instead of `<path>`.
Unfortunately we missed a few tests, so this updates those tests to reflect the
core changes.

While editing these tests, I realized I never added CHANGELOG entries for the original
change. This PR addresses that as well.

**Provide a list of related PRs**_(if any)_
#19838

Resolves #19887
Resolves #19885
2022-01-18 11:29:38 -08:00
Matt Ellis 24798c4faa
[EventGrid] Update System events and prepare for Jan release (#19741)
* [EventGrid] Event Schema Updates for January Release

This change pulls in the latest changes from the
`azure-rest-api-specs` repository for system events in Azure.

While no new events have been added with this release, some events now
have additional properties (the service teams which produce these
events now provide additional information in each event).

In addition, it fixes an issue we had with some of the Azure Resource
Manager events. We discovered that the event schemas for these events
was authored incorrectly and said some properties were of type
"string" instead of either a rich object or a map of strings to
strings.

A customer discovered this for .NET and that caused us to do some
investigation with the service team to discover that the specification
was wrong and get it corrected.

This is a breaking change for code which is written in typescript and
which uses any of these impacted properties because the underlying
type has changed from string to something else. However, any code
which previously was written against the old typings would have
*failed* at runtime with a type error, so in practice anyone who gets
an issue is now correctly discovering a bug in their program at
compile time now instead of runtime.

To prevent these issues in the future, we've been working closely with
the service team to introduce guard rails that ensure the events
services publish correspond to the schemas they have have published.

* [EventGrid] Prepare for Release
2022-01-10 10:54:31 -08:00
Jonathan Cárdenas b8c281e600
Update prettier dev-dependency to v2.5.1 in EventGrid (#19537)
Solves: https://github.com/Azure/azure-sdk-for-js/issues/9329 for packages under `sdk/eventgrid/`.
 
Updated `prettier` dev-dependency version to latest `2.5.1`.
Files were re-formatted as well. There are only format changes in this PR, no manual changes except for package.json files.
 
Main format changes with Prettier 2.x in this PR include:
- Trailing commas by default.
- Whitespace added after every `function` keyword.
2022-01-05 16:44:06 -06:00
Jeremy Meng 70fd8423d4
[eventgrid] fix distributed tracing enricher (#19625)
The cloud event distributed tracing enricher depends on `tracingPolicy` being
applied before it so it can copy the `traceparent` header that added by
`tracingPolicy` to its event payload. However, it doesn't specify this
dependency and relies on the implicit policy ordering when request pipeline is
created. This happened to work because `tracingPolicy` was not in a phase, and
was added before `cloudEventDistributedTracingEnricherPolicy` which is not in a
phase either. But after refactoring done in PR #19078, `tracingPolicy` is moved
to be after the Retry phase, which comes after policies that are not in a phase.
Now the `traceparent` has not been set when
`cloudEventDistributedTracingEnricherPolicy` is applied. This is not the
expected behavior and caused test failure.

This change fixes the issue by explicitly requiring the
`cloudEventDistributedTracingEnricherPolicy` to be applied after the
`tracingPolicy`.
2022-01-05 12:12:36 -08:00
Harsha Nalluru dc8b6da618
[Recorder] Manipulate the `retry-after` header to have "0" value for playback (#19501)
* base code

* 'Retry-After',
  '0',

  manual replacements

* setDefaultRetryAfterIntervalInNockFixture

* setDefaultRetryAfterIntervalInNockFixture

* changelog

* changelog

* docs

* docs

* 19501

* Update sdk/test-utils/recorder/test/node/utils.spec.ts

* Format

* Update recordings to have retry-after value of 0

and remove some 202 responses

Co-authored-by: Jeremy Meng <yumeng@microsoft.com>
2022-01-03 23:31:35 +00: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
Azure SDK Bot d6b8e3aaba
Post release automated changes for eventgrid releases (#19097)
Post release automated changes for azure-arm-eventgrid
2021-12-10 08:19:03 +00:00
colawwj f73b3d80c1
new-generator-for-eventgrid-track2 (#18833)
* new-generator-for-eventgrid-track2

* GA
2021-12-10 10:16:04 +08:00
Maor Leger 3c97db3a18
[rollup] - Fix bug in circular dependency warning suppression (#19012)
## What

- Fix incorrect logic when suppressing chai's circular dependency warnings
- Move to the common dev-tool configuration where possible

## Why

This is a longstanding issue that we have, where an incorrect logic was copy-pasted to other places. I figured while cleaning this up that any package I touch can just convert over to the shared dev-tool configuration. Where I was unable
to do that, I just fixed this bug to avoid too many changes in one PR.

Fixes #14292
Resolves #17818 
Resolves #17816 
Resolves #17815 
Resolves #17814 
Resolves #17813 
Resolves #17810
2021-12-09 11:00:32 -08:00
Azure SDK Bot 36a353e3ca
Post release automated changes for eventgrid releases (#18713)
Post release automated changes for azure-arm-eventgrid
2021-11-17 07:15:37 +00:00
colawwj c5e059e510
eventgrid-track2 (#18505)
* eventgrid-track2

* update

* update
2021-11-16 17:04:28 +08:00
Matt Ellis 6fd545c8fa
[EventGrid] Fix link in README.md (#18575)
The CNCF moved some files around in their specs repository, which
broken this link. Use a versioned URL instead of pointing at their
main development branch so this doesn't happen again in the future.
2021-11-10 10:48:04 -08:00
colawwj aa7ada5ba8
update-identity-for-track2 (#18482) 2021-11-03 15:21:48 +08: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
Azure SDK Bot 45c84009f6
Post release automated changes for eventgrid releases (#18197)
Post release automated changes for azure-arm-eventgrid
2021-10-15 10:18:04 +00:00
colawwj ef323b7ffa
track2-version-bump (#18111)
* track2-version-bump

* update

* update
2021-10-09 14:48:41 +08:00
Azure SDK Bot a97f5e4d7b
Post release automated changes for eventgrid releases (#18050)
Post release automated changes for azure-eventgrid
2021-10-05 23:06:18 +00:00
Matt Ellis b1a914e213
[EventGrid] Update System Events, Prepare for Release (#17977)
Update our swagger reference commit to pull in some new system events
and add them to our mappings.
2021-10-05 11:51:25 -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
colawwj 740a34328e
eventgrid-track2 (#17904)
* eventgrid-track2

* update ci.yml
2021-09-28 17:11:00 +08:00
Jeremy Meng 13861173b6
Upgrade dev dependency ts-node to ^10.0.0 (#17323) 2021-09-10 15:38:24 -07:00
Jiao Di (MSFT) 648b2ebd99
Fix Event Grid Readme Issue (#17377) 2021-08-31 09:29:03 -07: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
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
Matt Ellis 96c3da985f
[EventGrid] Add new ContainerService system event (#16805) 2021-08-09 10:53:07 -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
Matt Ellis 773fc2685e
[EventGrid] Fix Test Compliation Errors (#16723)
In #16700 we updated our tests to generate the key we used for testing
by doing a base64 conversion of a fixed string so we didn't have something that looked like a key embeded in source which was upsetting some static analysis tools.

This casues a build break in the min/max testing where `btoa` can't be found when building the test. Since we have the correct runtime behavior in the test to only call `btoa` when we are not in a node-context we simply reference the dom library to appease the compiler.
2021-08-03 17:04:47 -07:00
Harsha Nalluru c8756d941b
[Cred Scan] Generate fake key instead of putting directly in the test file (#16700)
* generate fake key instead of putting directly

* rushx format
2021-08-02 22:06:37 +00:00
Deyaaeldeen Almahallawi b36849060d
Fix agent-string in packages migrated to use core v2 (#16628)
* [Text Analytics] Update user-agent

* Fix all other packages

* revert change in kv-admin

* add SDK_VERSION back in package.json for kv-admin
2021-07-30 12:59:00 -04:00
Azure SDK Bot f2f683c791
Increment package version after release of azure-eventgrid (#16450) 2021-07-26 11:30:25 -07:00
Jose Manuel Heredia Hidalgo 2aaa326e70
Fix multiple pipeline failues (#16521) 2021-07-23 12:49:54 -07:00
Matt Ellis ce3e22259a
[EventGrid] Prepare for 4.4.0 release (#16446) 2021-07-19 10:24:31 -07:00
Matt Ellis ae67fbc382
[EventGrid] System Events Updates for June (#16053)
Update to the latest data-plane version and regenerate.
2021-07-19 07:59:06 -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
Matt Ellis 80bd6ad776
[EventGrid] Support TokenCredential (#16355)
This change adds support for using Azure AD to authenticate when send
events using `EventGridPublisherClient`.
2021-07-14 10:31:48 -07:00
Maor Leger f5d75ae2d5
[core] - Remove TestTracer and TestSpan from public API (#16315)
## What

- Move `TestTracer`, `TestSpan`, and `SpanGraph` from @azure/core-tracing to @azure/test-utils

## Why

1. Having a folder called src/**test**/ does not play nicely with defaults generated by tools such as Yarn (specifically Yarn autoclean)
2. These are test support interfaces, and shouldn't be part of our public API anyway - now that we have @azure/test-utils it's the more appropriate location for them

Resolves #16265 
Resolves #16201
Related #13367
2021-07-09 11:11:15 -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
Matt Ellis 5c5c2cfef6
[EventGrid] Move to Core V2 Generator (#16047)
As part of the development of the new pipeline, event grid was hand
ported to use the new pipeline. Now that the code generator targets
the new pipeline, we can start using it to generate the code.

Since EventGrid includes the `/api/events` path segment in the
Endpoint, We need to do a small amount of post processing of the
generated code, to ensure `/api/events` is not appended to the
endpoint (we do this by setting an empty path in the operation spec,
which is as things were before moving over to the generator).

Fixes #15823
2021-06-28 13:24:03 -07:00
Ramya Rao b729674427
Update Node.js & browser support in README (#16011) 2021-06-25 16:00:09 -07:00
colawwj b77a2a496e
arm-eventgrid-release (#15791)
* arm-eventgrid-release

* update package.json

* Update sdk/eventgrid/arm-eventgrid/README.md

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

Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com>
Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
2021-06-24 12:03:43 +08: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
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
Deyaaeldeen Almahallawi d3f0285339
[tslib] Upgrade from 2.0 to 2.2 (#15702) 2021-06-11 16:09:45 -04:00
Azure SDK Bot 8c726b8b7e
Increment package version after release of azure-eventgrid (#15620) 2021-06-08 21:07:18 +00:00
Matt Ellis cc8bdaf922
[EventGrid] Prepare for Release (#15612)
- Remove the "FarmBeats" system events (i.e. AgriFoodFarming). The
  service team is unwilling to GA the shape of the events as this
  time.

- Set release date in `CHANGELOG.md`
2021-06-08 11:37:38 -07:00
Matt Ellis 550ca1bf40
[EventGrid] Updates to System Event Mappings (#15527)
This change updates to the latest version of the EventGrid data plane
specification, and brings in some new event types (one for Storage and
a handful for FarmBeats).

In addition there is a small bugfix to one of the event names
(discovered as we move towards tooling the process that generates
these mappings) to use the correct name.
2021-06-07 10:46:37 -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
Azure SDK Bot 1da6d00c0c
Increment version for eventgrid releases (#15228)
* [EventGrid] Prepare for 4.2.0 Release

* Increment package version after release of azure-eventgrid

Co-authored-by: Matt Ellis <matell@microsoft.com>
2021-05-12 00:08:23 +00:00
Matt Ellis 4f6d4edb44
[EventGrid] Prepare for 4.2.0 Release (#15219) 2021-05-11 12:10:28 -07:00
Matt Ellis 4162fe77a7
[EventGrid] Add Storage and PolicyInsight events (#15121) 2021-05-11 10:25:09 -07:00
Matt Ellis a31384a398
[EventGrid] Document Distributed Tracing extension (#14598)
When events are sent using the Cloud Event schema, and distributed
tracing is used (so `traceparent` and `tracestate` are added as
headers on an http request) the SDK automatically ads this information
to the events as they are sent, using the distributed tracing
extension properties, as documented by the CNCF, if they are not
already present.

Add a small note about this to the README.md

Fixes #12036
2021-05-03 12:37:06 -07:00
KarishmaGhiya b45fa72681
update clean commands (#14693) 2021-04-07 18:31:38 +00:00
Matt Ellis aa0dc1f7a0
[EventGrid] Update documentation link (#14459)
Now that the library has GA'd, we can remove the query parameter and
point at the latest docs.
2021-03-30 14:47:52 -07:00
Matt Ellis 611a74bfde
[EventGrid] Split tests to enable min/max testing (#14404)
This change splits our tests into two folders:

- `public` which only uses surface area exported by the package.
- `internal` which tests internal methods which we don't export from
   the top level package.

This allows us to test the public surface area independently from the
private one, which is helpful for classes of testing.

Fixes #13813
2021-03-29 17:47:12 -07:00
Matt Ellis fc7fc967b6
[EventGrid] Move to Samples v2 Framework (#14532)
This change moves our samples to be generated via `devtool`, as part
of the samples quality effort. Much of the diff here is just moving
code around to confirm to the new patterns, as outlined in the
migration guide, but one interesting outcome is that since the samples
are now part of the ts compliation for the package itself, and our
samples use service bus (which itself uses AsyncIterators) we have to
add a `lib` in our `tsconfig.json`.

We do not add any polyfill or anything like that to our `package.json`
because our implementation does not use these features.

After talking about this with will, I did manually patch the
*generated* tsconfig.json for our samples to say we target ES2018
(since the samples will need this), and he will add support for that
for the tool going forward.

In addition, we add some more resources to our `test-resources.json`
so that these samples can run in CI and be validated.

Fixes #14471
Fixes #14573
2021-03-29 16:17:51 -07:00
chradek cd0edbc366
upgrade core-auth dep to ^1.3.0 (#14586)
`@azure/core-auth` added the `NamedKeyCredential` and `AzureNamedKeyCredential` symbols in version 1.3.0. Currently only `@azure/core-amqp` and `@azure/event-hubs` references these directly and need to be using 1.3.0, but updating in all packages that depend on it to satisfy rush.
2021-03-29 23:17:43 +00: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
Azure SDK Bot cd3557ac00
Increment package version after release of azure-eventgrid (#14447) 2021-03-24 00:45:33 +00:00
Matt Ellis b8bf6af12f
[EventGrid] Prepare for 4.1.0 release (#14446) 2021-03-23 14:55:39 -07:00
Matt Ellis fa38e0822d
[EventGrid] Mappings for new ACS Events (#14410)
* [EventGrid] Fix ACS Event Names

The Azure Communication Services team noticed that some of their event
shapes were wrong and have [updated the
swagger](https://github.com/Azure/azure-rest-api-specs/pull/13485) to
address this.

This commit pulls these changes into our SDK.

Fixes #14345

* [EventGrid] Add types for  RecordingFileStatusUpdated event

This is a new event ACS is sending.

* [EventGrid] Remove incorrect ACS System Events

After discussion, we are comfortable removing these two event names
from our mapping. The rationale here is that the service never sent
events using these names (they made a typo when documenting the event
names in Swagger) and so any code using them was going to be wrong. In
this case, we like that if you're using TypeScript you'll see a
compile time issue here because it will be pointing to place in your
code where things were never going to behave as you might have
expected.

The `CHANGELOG.md` has been updated to provide a little more
perscriptive guidence on what to do here, and we feel OK about not
doing a major version bump.
2021-03-23 14:08:46 -07:00
KarishmaGhiya bc9b4c2940
Quotes around paths to include all tests (#14432) 2021-03-23 11:51:24 -07: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
KarishmaGhiya 7c5f7cf751
update test-browser output folder (#14384) 2021-03-22 23:39:34 +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
Azure SDK Bot bd143c6f12
Increment package version after release of azure-eventgrid (#14347) 2021-03-17 16:10:01 -07: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
Deyaaeldeen Almahallawi 216f1835a2
Fix linting (#14322)
Currently, `rush lint` fails for our perf tests, see https://dev.azure.com/azure-sdk/playground/_build/results?buildId=787394&view=logs&j=58292cae-3c74-5729-4cfd-9ceee65fe129&t=3f037b94-2b49-5715-3208-309f8588a4cd&l=441

This PR fixes this by doing the following:
- adding `eslint` as a dependency for those packages.
- updating the npm lint script to not use the `.eslintrc.json` at the root and use a newly added one instead that does not use our azure sdk plugin for eslint.
- fix linting issues if any and make the lint script fail in the future when linting errors happen.

In addition to those fixes, this PR fixes linting issues in container registry so `rush lint` runs successfully.
2021-03-17 19:01:40 +00:00
Ramya Rao a01d63c3b4
Fix failing format commands (#14327)
* Fix failing format commands

* Add check-format to monitor
2021-03-17 09:49:09 -07:00
Ramya Rao c2c0ab0e94
[AppConfig, EventGrid, KeyVault, Tables] Run format (#14326) 2021-03-16 22:10:14 -07:00
Matt Ellis 7d22e96136
[EventGrid] Add Additional ACS Events, Address Arch-Board Feedback for GA (#14136)
* [EventGrid] Regenerate Code

Re-run the code generation based on the latest README.md in the rest
specs repository. This picks up some changes to some Azure
Communication Services event types that the service has changed.

* [EventGrid] Updates for GA

Adopt feedback from architecture board review, the changes here are
focused on the consumption side:

- We decided that we did not want to apply AutoRest style mapping for
 system event data payloads, instead we would keep the `data` value as
 is. This allows us to remove a bunch of our custom logic around
 invoking the mappers. One implication here is that we need to remove
 the `format` directive for model types in our swagger before
 generating code with auto-rest, so that the interfaces defined for
 custom events use `string` as the type instead of `Date`.

- Some light renaming of interface names tied to System Event
  Data. There was a common convention from some services to use a
  `Properties` suffix in their schema name, which caused us to
  generate interfaces with the suffix `Properties` which was not very
  idiomatic.

- Mark properties in shapes from System Events as present, based on
  the sample data that is published by the EventGrid service team on
  docs.microsoft.com.

Fixes #10992

* [EventGrid] Add test to lock in endpoint behavior

We require that the user inclide the `/api/events` path as part of the
endpoint when creating a client. This is so that we remain flexable
and allow the event grid service to evolve the structure of their
endpoint URLs.

We already had this behavior, but so just add a test to lock the new
behavior in.

* [EventGrid] Update Recordings
2021-03-16 10:18:11 -07: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
Harsha Nalluru 5e443a85ca
[Perf Tests] Add rimraf in the devDependencies (#14189)
`rimraf` is being used in the `clean` command, but is not present in the devDependencies.
2021-03-09 19:25:48 +00:00
colawwj 924d69dffc
arm-eventgrid-release (#13867) 2021-03-09 17:20:50 +08:00
Harsha Nalluru 3f1d0e7164
Perf projects should depend on the versions present in master branch (#14185)
Perf test projects for eventgrid and text-analytics are depending on a released version of the packages.
This PR updates it to depend on the versions on master instead.
2021-03-08 23:06:54 +00: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
Matt Ellis 227ac59b57
[EventGrid] Add Performance Test (#14091)
The EventGrid library is a fairly lightweight wrapper over the
service, but we would like to have a least one performance test so we
have a baseline to compare things with going forward.

This test just sends events using the CloudEvents schema to an
endpoint. This operation was chosen because it has the most work
being done by the SDK (there's a small level of translation that needs
to be done to adapt the user facing model to what the service expects
on the wire).
2021-03-04 12:05:24 -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
Matt Ellis 29c8bef2b4
[EventGrid] Fill in link in MIGRATION.md (#14080) 2021-03-03 13:15:25 -08:00