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

389 Коммитов

Автор SHA1 Сообщение Дата
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
Minh-Anh Phan e5df0b16bb
[language-text] Fix test for grapheme offset in PII Entity (#25287)
All compound emojis are correctly counted as a single TextElement or grapheme after the service bug fixed
2023-03-17 11:11:17 -07: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 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
Minh-Anh Phan 2e6f83df2d
[text analytics] unskip test (#24187) 2022-12-09 13:23:45 -08:00
Minh-Anh Phan 7c7de50759
Revert "[text analytics] Unskip test (#24080)" (#24098) 2022-12-02 11:09:33 -08:00
Minh-Anh Phan d07bab91ac
[text analytics] Unskip test (#24080) 2022-12-01 16:04:12 -08:00
Minh-Anh Phan abec1c8cf2
[text-analytics] skip tests (#23895) 2022-11-17 21:06:48 -05:00
Jeff Fisher 526926acc6
Upgrade TypeScript to 4.8 for most packages (#23730) 2022-11-05 01:24:43 +00:00
Deyaaeldeen Almahallawi 1e424df108
[Text Analytics] Skip failing test (#23551)
Fixes https://github.com/Azure/azure-sdk-for-js/issues/23535

Run will succeed [here](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1927855&view=results)
2022-10-18 22:34:30 -04: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
Deyaaeldeen Almahallawi 3de4ed1adf
[core-lro] Deprecate cancelOperation and introduce createPoller (#22753)
# Fixing LRO cancellation by deprecating `cancelOperation`
Canceling a long-running operation is currently done by calling `cancelOperation`: eb0aa1da67/sdk/core/core-lro/src/poller.ts (L79-L82) However the cancellation behavior could vary between APIs in a way that makes `cancelOperation` a confusing abstraction. In particular, when sending a cancellation request, the service may respond with either a 200 or a 202 response, depending on the API and/or the operation, where the former indicates the operation has been canceled immediately and the latter indicates it could be some time before the operation is deemed as canceled. Handling 202 responses needs care to set the customer's expectation about wait times and this is typically done by providing a poller object that customer could use to optionally block until the operation finishes. This discrepancy in behavior makes `cancelOperation` not a suitable abstraction for the case when cancellation returns a 202 response.

In this PR, I am deprecating `cancelOperation` and leaving it up to the library author to implement operation cancellation as they see fit. This proposal has been discussed with @bterlson, @joheredi, and @witemple-msft and they're all on-board with it.

## Pollers without cancellation abstraction
The PR also introduces a second poller interface that doesn't have `cancelOperation` at all, named `SimplePollerLike`. This interface is meant to be used for pollers for new operations that don't support cancellation.
The other difference between `PollerLike` and `SimplePollerLike` is in how the operation state is defined. `PollerLike` defines its state shape as a type that extends `PollOperationState<TResult>`: eb0aa1da67/sdk/core/core-lro/src/pollOperation.ts (L17-L38) Mainly, it has `isStarted`, `isCanceled`, and `isCompleted` booleans. However, the semantics of `isCanceled` can be confusing; should it be set at the time when the cancellation request is sent or when the service responds that the operation is canceled?
To avoid this confusion, `OperationState` replaces those booleans with a status field typed as a union of states:
```ts
export interface OperationState<TResult> {
  /**
   * The current status of the operation.
   */
  status: "notStarted" | "running" | "succeeded" | "canceling" | "canceled" | "failed";
  /**
   * Will exist if the operation encountered any error.
   */
  error?: Error;
  /**
   * Will exist if the operation produced a result of the expected type.
   */
  result?: TResult;
}
```
Which makes it clear that it reflects operation status after each poll.

## Use case: Implement LRO cancellation in @azure/ai-language-text (https://github.com/Azure/azure-sdk-for-js/pull/22852)

The proposal is implemented in a different PR: https://github.com/Azure/azure-sdk-for-js/pull/22852


This LRO cancellation returns a 202 response so cancellation itself is an LRO. I am proposing to implement cancellation by returning a function named `sendCancellationRequest` alongside the operation poller, so the return type is:

```ts
interface AnalyzeBatchOperation {
    poller: AnalyzeBatchPoller;
    sendCancellationRequest(): Promise<void>;
}
```

And client code can simply destruct the output object as follows to get access to the poller and the cancellation function:

```ts
const { poller, sendCancellationRequest } = await client.beginAnalyzeBatch(actions, documents, "en");
...
// Let's cancel the operation
await sendCancellationRequest(); // poller.cancelOperation() no longer exists
```

Design considerations:
- cancellation as a concept is not related to polling so a poller is not the right place to send cancellation requests
- canceling an operation requires knowing the operation ID/location, but we shouldn't ask customers for that information because it is an implementation detail
- cancellation is an LRO but it doesn't have its own operation location, i.e. the operation location is the same for the operation being cancelled and the cancellation operation itself. This means there is no need to create a dedicated poller for the cancellation operation and customers could still use the existing poller to await their operation or its cancellation
- cancellation is a POST request with no interesting response, so it should be modeled programmatically as `(): Promise<void>` function
2022-09-01 00:52:05 -04:00
Deyaaeldeen Almahallawi d1a0d97534
[Language Text] Add performance tests (#22688)
* [Language Text] Add performance tests

* address feedback
2022-07-27 13:37:13 -04:00
Deyaaeldeen Almahallawi d2f7a7426b
[Text Analytics] Reset to 5.1 (#22672)
Resets the code base for the Text Analytics library to the one used to release v5.1.0. The reset was done by checking out the library folder from the github tag for the v5.1.0 release. However, I updated the code base to use @azure/core-tracing@^1.0.0 too.

This is needed because v6.0.0-beta.1 has been moved in https://github.com/Azure/azure-sdk-for-js/pull/22640 into a new package: @azure/ai-language-text.
2022-07-24 13:53:34 -04: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
Deyaaeldeen Almahallawi b8e5b9e0fa
[Text Analytics] Update test expectations (#22606)
Fix failing tests in https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1710171&view=logs&j=b800360f-d572-5e16-3e20-e4f204d3fbd3&t=3b97752f-f53c-5e36-3379-45368efa0b3c

EDIT: succeeded run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1711617&view=results

Fixes https://github.com/Azure/azure-sdk-for-js/issues/22543#event-6974761194
2022-07-15 12:45:56 -04:00
Deyaaeldeen Almahallawi 3576d9b4a0
[Text Analytics] Update tests (#22296)
* [Text Analytics] Update tests

* re-record the rehydrated poller test
2022-06-17 17:57:38 -04:00
Deyaaeldeen Almahallawi b772e77432
[Text Analytics] Add docstrings for enum members (#22278) 2022-06-17 13:53:58 -04:00
Deyaaeldeen Almahallawi 2bb81e90e7
[Text Analytics] Intersections converted to interfaces (#22269)
* [Text Analytics] Intersections converted to interfaces

* add docs for maxSentenceCount
2022-06-16 18:14:48 -04:00
Deyaaeldeen Almahallawi 8871c8f0a1
[core-lro] Simplify cancellation (#22121)
Fixes https://github.com/Azure/azure-sdk-for-js/issues/22067

# Improving the cancellation behavior

## Problem statement

Our poller interface exposes a method for requesting the cancellation of the polled operation and the poller can no longer poll once that method is called. This behavior is problematic as follows:
1. Any potential partial results were not retrieved because polling stopped prematurely
2. `isCanceled` property is being set in two places unnecessarily making it difficult to reason about the poller state

## How cancellation works

The cancellation method is defined as follows: 56ad04745c/sdk/core/core-lro/src/poller.ts (L82)

And is basically implemented by: 56ad04745c/sdk/core/core-lro/src/poller.ts (L439-L449) where `cancelOnce` is the one that stops polling: 56ad04745c/sdk/core/core-lro/src/poller.ts (L354-L359) Notice the following:
1. The poller is marked as stopped as soon as the `cancelOperation` method is called (line 441) 
2. The promise returned by `pollUntilDone()` is rejected if the `cancelOperation` promise is resolved (line 357). 
3. The `poll` promise is not rejected and doesn't do anything useful after the `cancelOperation` one has resolved: e48b15de0f/sdk/core/core-lro/test/engine.spec.ts (L648-L657)

## Proposed cancellation behavior
Starting from the principal that the service knows best, the operation should be considered in a terminal state only if the service says so whether that is a canceled state or not. To implement this behavior, The proposed change updates `cancelOperation` to no longer mark the poller as stopped and updates `pollOnce` to do so instead only if after polling the operation is deemed as canceled. Similarly, the rejection of the `pollUntilDone()` promise has been moved to inside `pollOnce`. As the poller no longer prematurely stops, the `poll()` promise still works (i.e. sends a polling request) and will get rejected if the operation is canceled.

__Note that this proposal is a non-trivial behavior change__ but I think one could argue that it is more of a fix rather than a deliberate behavior change. I wonder if there is any code that relies on early stopping of polling.
2022-06-09 19:07:34 -04:00
Deyaaeldeen Almahallawi cbe1290e18
[Text Analytics] Simplifying error handling (#22125) 2022-06-06 21:40:57 -04: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
Deyaaeldeen Almahallawi 0eaa5ca5dd
[Text Analytics] Publishing v6 samples (#21938)
* [Text Analytics] Publishing v6 samples

* update product slugs
2022-05-23 20:46:22 +00: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
Deyaaeldeen Almahallawi fef0d15572
[Text Analytics] update link (#21936) 2022-05-19 20:08:01 -04:00
Deyaaeldeen Almahallawi 984864aa7d
[Text Analytics] Add migration guide (#21935)
* [Text Analytics] Add migration guide

* update link

* update product label

* address feedback

* address feedback
2022-05-20 00:02:52 +00:00
Deyaaeldeen Almahallawi 72f68837b6
[Text Analytics] Adding missing files (#21911) 2022-05-18 14:04:40 -04:00
Deyaaeldeen Almahallawi 51f5be708b
[core-lro] Set isCancelled when operation status is cancelled (#21893)
* [core-lro] Set isCancelled when status is cancelled

* don't check for isCanceled in TA test

* fix lint

* address feedback and handle cancellation uniformly

* address feedback

* add tests

* edit

* revert behavioral change

* Update sdk/textanalytics/ai-text-analytics/package.json

Co-authored-by: Will Temple <witemple@microsoft.com>
2022-05-18 13:59:21 -04:00
Deyaaeldeen Almahallawi e825fade0e
[Text Analytics] Bump core-lro dep version (#21901) 2022-05-17 16:08:13 -04:00
Deyaaeldeen Almahallawi 8b093295b7
[Text Analytics] Update link in README (#21875) 2022-05-13 21:35:46 -04:00
Deyaaeldeen Almahallawi fed2cb3c69
[Text Analytics] Merging the new Text Analysis client into main (#21873)
* clean slate

* [Text Analytics] Scaling @azure/ai-text-analytics, Part I (#21417)

# Scaling @azure/ai-text-analytics, Part I
This PR reimplements a subset of the public API of the Text Analytics library in a way that avoids the method explosion and the discoverability problems described in https://gist.github.com/deyaaeldeen/40badd8f0460a9a3cd5965b1e4d14adf

## Design Highlights

### One `analyze` to rule them all

23e0919ae7/sdk/textanalytics/ai-text-analytics/samples/v5/javascript/analyzeSentimentWithOpinionMining.js (L56-L58)

becomes

23e0919ae7/sdk/textanalytics/ai-text-analytics/samples/v6-beta/javascript/opinionMining.js (L54-L58)

Notice that the type of the action is no longer a standalone method but rather an input to the `analyze` method.

Demo:

https://user-images.githubusercontent.com/6074665/163894076-745be9cb-651a-42da-94d8-c299a44fa0d1.mp4

### Model version and top-level statistics in the response are no longer exposed but still accessible

Model version and top-level statistics are part of the response object and v5 exposes them in the response arrays by attaching them to the array object itself. This works fine but it caused our [documentation to look like that `Array` is part of the client types](https://docs.microsoft.com/en-us/javascript/api/@azure/ai-text-analytics/detectlanguageresultarray?view=azure-node-latest):
![msedge_LFdL6MiUUs](https://user-images.githubusercontent.com/6074665/163894617-4db85932-8954-4690-875a-9d72535e3a1d.png)

They're removed in this design but they can still be accessed as follows:
23e0919ae7/sdk/textanalytics/ai-text-analytics/samples/v6-beta/javascript/stats.js (L29-L45)

### A batching analyze

Coming soon in a PR near you!

* [Text Analytics] Scaling @azure/ai-text-analytics, Part II (#21768)

# Scaling @azure/ai-text-analytics, Part II
This PR reimplements a subset of the public API of the Text Analytics library in a way that avoids the method explosion and the discoverability problems described in https://gist.github.com/deyaaeldeen/40badd8f0460a9a3cd5965b1e4d14adf

## Design Highlights

### `beginAnalyzeBatch` is the new method to batch actions
[Sample call](https://github.com/deyaaeldeen/azure-sdk-for-js/blob/textanalytics/beginAnalyzeBatch/sdk/textanalytics/ai-text-analytics/samples-dev/batching.ts):
```js
  const poller = await client.beginAnalyzeBatch(
    [
      {
        kind: "EntityRecognition",
        modelVersion: "latest",
      },
      {
        kind: "PiiEntityRecognition",
        modelVersion: "latest",
      },
      {
        kind: "KeyPhraseExtraction",
        modelVersion: "latest",
      },
    ],
    documents,
    "en"
  );
```

### `FHIR` support
[Sample call](https://github.com/deyaaeldeen/azure-sdk-for-js/blob/textanalytics/beginAnalyzeBatch/sdk/textanalytics/ai-text-analytics/samples-dev/healthcare.ts):
```js
  const poller = await client.beginAnalyzeBatch(
    [
      {
        kind: "Healthcare",
        fhirVersion: "4.0.1",
      },
    ],
    documents
  );
```

### Poller rehydration story
[Sample call](https://github.com/deyaaeldeen/azure-sdk-for-js/blob/textanalytics/beginAnalyzeBatch/sdk/textanalytics/ai-text-analytics/samples-dev/rehydratePolling.ts):
```js
  const rehydratedPoller = await client.restoreAnalyzeBatchPoller(serializedState);
```

### Cancellation support
`poller.cancel()` actually sends a cancellation request. To enable this,  `@azure/core-lro`'s `lroEngine` now supports cancellation.

### Paging from specific continuation tokens
[Sample call](https://github.com/deyaaeldeen/azure-sdk-for-js/blob/textanalytics/beginAnalyzeBatch/sdk/textanalytics/ai-text-analytics/samples-dev/paging.ts):
```js
for await (const page of actionResults.byPage({
    maxPageSize: 1,
    continuationToken,
  })) {
  // do something
}
```
2022-05-13 20:38:41 -04: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
Deyaaeldeen Almahallawi 79ec9eb53b
[Text Analytics] Fix live tests (#21790)
* [Text Analytics] Fix live tests

* updated recordings
2022-05-09 21:01:11 -04:00
Jeremy Meng 3235575a2f
[engsys] upgrade typescript to v4.6 - part.2 (#21537)
* [engsys] upgrade typescript to v4.6 - part.2

- upgrade packages that are maintained by the JS team (i to t)
2022-04-25 16:45:10 -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
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
Daniel Rodríguez d804b30ef7
[core-rest-pipeline] Default retries to 3 (#20423)
Changing @azure/core-rest-pipeline ‘s default maximum number of retries from 10 to 3.

3 is the maximum number of retries in other languages (I asked Python and .NET).
2022-03-10 19:59:53 +00:00
Deyaaeldeen Almahallawi 46ae95c1d2
[core-lro] merge azureAsync and location strategies (#20656)
### Packages impacted by this PR
@azure/core-lro 

### Issues associated with this PR
Fixes https://github.com/Azure/azure-sdk-for-js/issues/20647

### Describe the problem that is addressed by this PR
The [vNext draft of the REST guidelines](https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#long-running-operations-with-status-monitor) retires the use of `Azure-AsyncOperation` header in favor of `Operation-Location`. For context, `Azure-AsyncOperation` is mainly used for scenarios where there are two URLs, one for polling (returned in the `Azure-AsyncOperation` header) and another to retrieve the resource being created (returned in the `Location` header).

### 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?
This PR enables clients to use `Operation-Location` for scenarios where `Azure-AsyncOperation` was used before by merging the logic for handling both into one. The merging was done by augmenting the existing logic for handling `Azure-AsyncOperation` as follows: To check if the polling was done (in `isPollingDone`), also check if the response status code was 202 or an unexpected one:
```ts
if (isUnexpectedPollingResponse(rawResponse) || rawResponse.statusCode === 202) {
    return false;
  }
 ```
The new merged logic is moved to `locationPolling.ts` and the old separate logic for handling `Operation-Location` was deleted.

I am open for alternative approaches, but I believe this is the simplest thing we can do.

### Are there test cases added in this PR? _(If not, why?)_
Yes

### Provide a list of related PRs _(if any)_
N/A

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

### 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)
2022-03-05 02:04:02 +00:00
Wei Jun b08752e6a4
Enable a linter rule to prevent usage of "import" in README.md javascript code blocks (#20408)
This is a PR that is intended to solve issue #15746.

Summary of What I did:
- ran `rush add -p eslint-plugin-markdown --dev` in `common\tools\eslint-plugin-azure-sdk`
- modified `common\tools\eslint-plugin-azure-sdk\src\configs\azure-sdk-base.ts`:
  - included the `eslint-plugin-markdown` plugin, 
  - added `override` configuration that splits typescript and javascript linting. 
  - used `no-restricted-import` to inhibit ES6 import usage.
- added `README.md` as target and removed `--ext` option of lint script in `sdk\textanalytics\ai-text-analytics\package.json` and fixed the existing error.
2022-03-02 15:06:00 -08:00
Timo van Veenendaal 2fd836fb09
[Text Analytics] Migrate to new recorder (#20455)
### Packages impacted by this PR

- `@azure/ai-text-analytics`

### Issues associated with this PR

- #19859

### Describe the problem that is addressed by this PR

Migrates Text Analytics to new recorder.
2022-02-19 09:22:04 -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
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
Deyaaeldeen Almahallawi 8dcc094994
[Text Analytics] Remove includes of esnext (#19718) 2022-01-06 16:52:06 -05:00
Deyaaeldeen Almahallawi e31b7fce9b
check done before using the value of next() (#19637) 2022-01-05 18:07:51 -05:00
Jonathan Cárdenas d3d37e4804
Update prettier dev-dependency to v2.5.1 in Cognitive Services (#19488)
* Rush update

* Format form-recognizer perf-tests

* Format form-recognizer

* Format ai-metrics-advisor

* Format perf-tests\ai-metrics-advisor

* format ai-text-analytics

* Format perf-tests\text-analytics

* Removing "src/**/*.ts" path from perf-test
2021-12-21 14:08:08 -06:00
Deyaaeldeen Almahallawi f31aa42d12
[Text Analytics] Fix rate limit reached issue (#19249)
* [Text Analytics] Fix rate limit reached issue

* create an options bag for the throttling retry policy

* use the public options to configure the max retries instead

* simplify the retry options type

* Update sdk/textanalytics/ai-text-analytics/test/public/utils/recordedClient.ts

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

* edit the comment

* Update sdk/core/core-rest-pipeline/CHANGELOG.md

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

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
2021-12-14 23:30:02 +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
Deyaaeldeen Almahallawi ff2334d02b
[Text Analytics] Add a sample for model versions (#19087)
* [Text Analytics] Add a sample for model versions

* address feedback

* edit
2021-12-09 18:43:36 -05:00
Jiao Di (MSFT) 08bb5ec392
Fix Azure Text Analytics Readme Issue (#18900) 2021-12-01 10:29:19 -05:00
Deyaaeldeen Almahallawi e2855bf8ca
[Text Analytics] Cleaning house (#18804) 2021-11-29 19:21:27 -05:00
Deyaaeldeen Almahallawi 51f586941b
[Text Analytics] Update tests (#18862)
* [Text Analytics] Update tests

* edit

* adding missing recordings
2021-11-29 18:51:20 -05:00
Azure SDK Bot 6b1d8df366
Post release automated changes for azure-ai-text-analytics (#18494) 2021-11-02 19:54:27 +00:00
Deyaaeldeen Almahallawi 60b814fdce
[Text Analytics] Prepare v5.2.0-beta.2 release (#18489) 2021-11-02 16:32:24 +00: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
Deyaaeldeen Almahallawi ec1462c9da
[Text Analytics] Add links to Custom Text service docs (#18424)
* [Text Analytics] Add links to Custom Text service docs

* address feedback
2021-10-29 19:42:56 +00:00
Deyaaeldeen Almahallawi 10f96dd791
[Text Analytics] Expose response's action name (#18410)
* [Text Analytics] Expose response's action name

* add changelog entry
2021-10-28 17:14:46 +00:00
Deyaaeldeen Almahallawi bd0bca6837
[Text Analytics] Allow multiple actions of the same type (#18382)
* [Text Analytics] Allow multiple actions of the same type

* address feedback

* remove onlys
2021-10-28 02:20:57 +00:00
Deyaaeldeen Almahallawi b4d48e4578
[Text Analytics] Merging feature branch for v5.2-beta.2 to main (#18355)
* [Text Analytics] Regenerate using v3.2-preview.2 swagger (#17026)

* [Text Analytics] Regenerate using v3.2-preview.2 swagger

* regenerate with latest version

* [Text Analytics] Support Custom Text (#17128)

* [Text Analytics] Support Custom Text

* update readme and compile new actions

* export ClassificationResult

* edit

* edit

* edit

* [Text Analytics] Make project and deployment names required (#17402)

* [Text Analytics] Add tests for Custom Text (#17756)

* [Text Analytics] Add tests for Custom Text

* update

* remove only

* [Text Analytics] Refine proposed API View (#17794)

* [Text Analytics] Refine proposed API View

* update changelog

* [Text Analytics] address archboard feedback (#18131)

* address archboard feedback

* Update sdk/textanalytics/ai-text-analytics/src/multiCategoryClassifyResult.ts

Co-authored-by: Krista Pratico <krpratic@microsoft.com>

Co-authored-by: Krista Pratico <krpratic@microsoft.com>

* [Text Analytics] Add samples for Custom Text (#17822)

* [Text Analytics] Add samples for Custom Text

* edit summary

* Update sdk/textanalytics/ai-text-analytics/samples-dev/customText.ts

Co-authored-by: Will Temple <witemple@microsoft.com>

* revert samples

* unpublish

Co-authored-by: Will Temple <witemple@microsoft.com>

* [Text Analytics] Use persistent CI resource

* fix typo

* address feedback

* fix typo

* [Text Analytics] Fix Preview.2 samples (#18257)

* [Text Analytics] Re-record all tests (#18354)

* address feedback

* update swagger link

* edit

* fix recordings

Co-authored-by: Krista Pratico <krpratic@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
2021-10-26 18:28:47 -04:00
Deyaaeldeen Almahallawi 4c16af6eb4
[Text Analytics] Delete unused URL parsing helper (#18357) 2021-10-26 10:13:21 -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
Deyaaeldeen Almahallawi a00a662e3f
[core-client] Skip parameter overwriting if the path is absolute (#18310)
* Skip parameter overwriting if the path is absolute

* add a comment

* update changelog

* update TA recordings

* address feedback
2021-10-22 20:18:12 +00: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 13861173b6
Upgrade dev dependency ts-node to ^10.0.0 (#17323) 2021-09-10 15:38:24 -07:00
Deyaaeldeen Almahallawi aaaefe54a8
[Text Analytics] Upgrade api-extractor (#17428)
* [Text Analytocs] Upgrade api-extractor

* use latest
2021-09-02 19:31:47 -04: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
Deyaaeldeen Almahallawi 45b9dbb7ac
[Text Analytics] Rename sortby to orderby (#16963) 2021-08-17 16:05:59 -07: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
Deyaaeldeen Almahallawi fc418f7cd6
[Text Analytics] bump core-paging dep version (#16867) 2021-08-11 17:10:50 -04:00
Deyaaeldeen Almahallawi fbd4c79610
[core-paging] Add getPagedAsyncIterator (#16774)
* [core-paging] Add getPagedAsyncIterator

* update changelog

* update imports in text analytics

* address feedback

* delete file

* re-add file

* address feedback

* address feedback

* edit

* edit

* rename PagedAsyncIteratorOptions< to GetPagedAsyncIteratorOptions

* simplifying the interface

* use maxPageSize in TA

* address Jeff's feedback

* fix CI failure

* address feedback

* update client code in text analytics

* address feedback
2021-08-10 20:03:14 -04:00
Azure SDK Bot 7136266d7c
Increment version for textanalytics releases (#16822)
Increment package version after release of azure-ai-text-analytics
2021-08-09 20:19:56 +00:00
Deyaaeldeen Almahallawi eb667dd18f
[Text Analytics] Update changelog (#16820) 2021-08-09 15:25:36 -04:00
Deyaaeldeen Almahallawi 748eb66138
[Text Analytics] Edit Readme (#16789) 2021-08-06 18:13:25 +00: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
Deyaaeldeen Almahallawi 3c20a0dbf1
[Text Analytics] Edit changelog to remove unused sections (#16759) 2021-08-04 19:59:30 +00:00
Deyaaeldeen Almahallawi f5b3c1f1e9
[core-lro] Prepare for release on August 5th (#16738) 2021-08-04 14:13:40 +08:00
Deyaaeldeen Almahallawi 0d44620496
[Text Analytics] Merge feature branch for v3.2-preview.1 (#16716)
* [Text Analytics] Add support for extract summary actions (#16304)

* [Text Analytics] Add support for extract summary actions

* add a test case

* update readme

* edit

* edit

* edit

* regenerate using latest swagger

* edit

* edit

* address feedback

* edit

* edit

* [Text Analytics] Re-recording against 3.2-preview.1 prod (#16715)

* update lock

* make orderBy optional

* add missing recordings and make orderBy optional
2021-08-04 00:09:41 +00:00
Deyaaeldeen Almahallawi 26a069cc9f
[Text Analytics] Use LroEngine for all LROs (#16712)
* [Text Analytics] Use LroEngine for healthcare's lro

* finish analyze

* update changelog for core-lro

* fix failure by re-recording

* remove dependence on abort-controller

* address feedback
2021-08-03 22:16:12 +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
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
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
Deyaaeldeen Almahallawi 93efb2eb6f
[Text Analytics] Publish samples (#16284) 2021-07-07 15:05:35 -07:00
Azure SDK Bot 38da87699e
Increment package version after release of azure-ai-text-analytics (#16271) 2021-07-07 19:13:12 +00:00
Deyaaeldeen Almahallawi f4ba895633
[Text Analytics] Update release date (#16262) 2021-07-07 16:38:02 +00: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
Deyaaeldeen Almahallawi b148120b03
[Text Analytics] Edit changelog (#16177) 2021-07-02 18:09:05 +00:00
Deyaaeldeen Almahallawi d3c45690c2
[Text Analytics] Re-enable tests broken in karma playback mode (#16126)
* record weird tests

* Manually escaped recording text

* remove only

* Apply suggestions from code review

Co-authored-by: Will Temple <witemple@microsoft.com>

* rename recordings

* more renamings

Co-authored-by: Will Temple <witemple@microsoft.com>
2021-07-02 13:51:39 -04:00
Deyaaeldeen Almahallawi 400a1f2a1c
[Text Analytics] Update CHANGELOG with release date (#16146)
* [Text Analytics] Update CHANGELOG with release date

* edit
2021-07-01 18:45:34 +00:00