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

12386 Коммитов

Автор SHA1 Сообщение Дата
Azure SDK Bot dc0d31c4b7
Post release automated changes for mediaservices releases (#23110)
Post release automated changes for azure-arm-mediaservices
2022-09-06 10:29:29 +00:00
kazrael2119 dbb9b8847b
release mediaservices (#23108) 2022-09-06 15:20:09 +08:00
Azure SDK Bot 77d8a84552
Post release automated changes for cosmosdb releases (#23100)
Post release automated changes for azure-arm-cosmosdb
2022-09-06 05:37:03 +00:00
Azure SDK Bot d5e1a34067
Post release automated changes for consumption releases (#23099)
Post release automated changes for azure-arm-consumption
2022-09-06 05:36:30 +00:00
kazrael2119 7146bb6600
fix consumption bug (#23093)
* fix consumption bug

* update files
2022-09-06 09:40:41 +08:00
kazrael2119 e356c05e11
release consmosdb (#23095) 2022-09-06 09:38:45 +08:00
Azure SDK Bot 12644e1bff
Post release automated changes for redis releases (#23094)
Post release automated changes for azure-arm-rediscache
2022-09-05 07:51:19 +00:00
kazrael2119 d3a87140b1
release redis sdk (#23073)
* release redis sdk

* release redis sdk

* update files

* update files
2022-09-05 14:27:01 +08:00
Sharath Malladi d5dba59547
Personalizer Javascript SDK (#22850)
* Added autorest generated files with ci pipeline

* Fix package name and folder

* Updated autorest arguments and version and added tests

* Accepting linter corrections

* Added evaluation tests and sample code for champion scenario

* Added champion scenarios

* Generate sample code

* Fix isUnexpected function by adjust the autorest generated code manually.
Separate issue was filed to fix the issue in autorest.js project.

* Updated to use swagger file that has readonly attributes.

* Fixing bugs in test code

* Addressing feedback comments in PR.

* Added test records.

* Added autorest generated files with ci pipeline

* Fix package name and folder

* Updated autorest arguments and version and added tests

* Accepting linter corrections

* Added evaluation tests and sample code for champion scenario

* Added champion scenarios

* Generate sample code

* Fix isUnexpected function by adjust the autorest generated code manually.
Separate issue was filed to fix the issue in autorest.js project.

* Updated to use swagger file that has readonly attributes.

* Fixing bugs in test code

* Addressing feedback comments in PR.

* Added test records.

* Adding session records for multislot tests.

* Accepting changes made to lock file after rush update.

* fix browser tests - reasonable updates to personalizer tests and package.json

* Fixed issue with creating session records for browser and added the session record files.

* Reacting to feedback in comments.

* Added tests to use aad authentication.

* Fix lint and formatting.

* Addressing feedback.

* Replaced functions with constants in sample code.

* Regenerated samples code from samples-dev folder.

* Remove link to github locations that wont work because the PR is not yet merged.

* fix browser tests

* Added test record for aad authn test and igored links to samples to get pipelines to pass.

* Replacing with generic links to fix pipeline failures.

Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
2022-09-02 20:58:08 -07:00
Azure SDK Bot 82a9b0a303
Post release automated changes for core releases (#23086) 2022-09-02 12:22:23 -07:00
Ben Broderick Phillips defff0917c
Add github actions based check enforcer (#23077) 2022-09-02 14:40:31 -04:00
kazrael2119 f8d30b0d1c
release agrifood package (#23029)
* release agrifood package

* update files

* updae files
2022-09-02 10:30:57 +08:00
Jeremy Meng 909a485ee9
[ServiceBus][Test] remove tests ensuring unexpected sample changes (#23079)
Previously our `build:samples` script would modify samples to import from
source. However, newer sample workflow no longer does this, and the
`build:samples` script now just "echo Obsolete".

This PR removes tests that guard against committing unwanted sample changes.
2022-09-01 17:02:30 -07:00
Azure SDK Bot 1efa6a9559
Post release automated changes for core releases (#23083)
* Post release automated changes for azure-core-util

* Post release automated changes for azure-core-http

* Post release automated changes for azure-core-rest-pipeline

* Post release automated changes for azure-core-amqp
2022-09-01 23:37:07 +00:00
Azure SDK Bot 389bd7637d
Migrate SkipDefaultCheckout to SkipCheckoutNone (#23072)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-09-01 16:46:56 -04:00
Jeremy Meng 639fdd89d1
[dev-tool] ensure test file `**` glob pattern option is quoted (#22836)
* [test][search-document] address missing test issue

It appears that dev-tool doesn't receive the wrapping quotes around glob pattern
on Linux/MacOS, which prevents Mocha from handle the pattern correctly.

This PR adds the quotes when the argument is a glob pattern that contains "**"
so that expansion can be done by Mocha.

* Don't mutate the original options
2022-09-01 12:20:33 -07: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
Jeremy Meng fd849fcc35
[core] prepare for 2022 Sep releases (#23060)
- Bump core-util minor version
- Update CHANGELOG files
- Update packages that depends on the particular change in this version.
- Remove -beta.1 as we already GA @azure/core-util.
2022-08-31 20:31:25 -07:00
Azure SDK Bot 3612440665
Remove unnecessary checkout: none that causes conflicts with sparse checkout declarations (#23068)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-08-31 19:34:07 -07:00
Azure SDK Bot d9041a9e10
Post release automated changes for azure-monitor-ingestion (#22989) 2022-08-31 16:34:24 -07:00
Jeremy Meng 554404bd34
[dev-tool] react to typing changes in rollup v2.78 (#23059)
* [dev-tool] react to typing changes in rollup v2.78

Previously the type for `load` is `any`. Now it can also be a object

```
type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
```

This PR adds type narrowing to fix TypeScript build error.

* bump rollup version
2022-08-31 16:20:28 -07:00
Timo van Veenendaal 5cace9f673
[recorder] Throw error if RECORDINGS_RELATIVE_PATH not set in browser (#23057) 2022-08-31 11:07:13 -07:00
Timo van Veenendaal 20e1234785
[monitor-query] Update samples to use 10-minute server timeout (#23055) 2022-08-31 10:17:41 -07:00
Jeremy Meng 298ceb1d19
[engsys] remove typedoc dependency and usage (#23061)
We have tool to generate docs in ci pipelines. Individual package shouldn't need
to generate docs any more.
2022-08-31 09:59:07 -07:00
kazrael2119 1f9325c666
fix bug in netapp by putting the parameters in the right position (#23062) 2022-08-31 15:11:22 +08:00
kazrael2119 7b5870c31f
release containerinstance sdk (#23043)
* release containerinstance sdk

* update files
2022-08-31 14:08:35 +08:00
Timo van Veenendaal aa0252698c
[ACR] Troubleshooting guide (#22926) 2022-08-30 12:51:07 -07:00
Michael Zappe 6a25930371
Catch new exception (#22973)
* Catch new exception

* Formatting

Co-authored-by: Michael Zappe <michaelzappe@microsoft.com>
2022-08-30 07:40:46 -07:00
Harsha Nalluru 108b2951be
[Service Bus] Enable sending large messages (#23014)
* new test

* fix sending large messages

* formatting and docs

* format

* changelog

* more docs

* Update sdk/servicebus/service-bus/CHANGELOG.md

Co-authored-by: Jeremy Meng <yumeng@microsoft.com>

* Update sdk/servicebus/service-bus/test/internal/sendBatch.spec.ts

* Apply suggestions from code review

* fix error message

Co-authored-by: Jeremy Meng <yumeng@microsoft.com>
2022-08-30 04:56:50 -07:00
marche0133 a3de182720
Azure communication job router sdk (#22806)
* Pass js sdk pipeline ci (#18888)

* Initial commit of job router sdk

* Fix code (Todo: createSpan needs to add to client)

* add api review file

* update pnpm yaml

* skip samples for now

* add readme

* fix lint errors

* fix lint errors

* fix lint errors

* add recordings

* add recordings missing content

* add recordings missing content - browser mode

* remove assert

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/README.md

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/src/routerClient.ts

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Update sdk/communication/communication-job-router/src/routerClient.ts

Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* update README.md

* update README.md

Co-authored-by: Marc Ma <marcma@microsoft.com>
Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>

* Latest API & Swagger (Update post patch routes, etc) (#19953)

* update to latest patch routes and models

* minor fix

* update routerClient

* update according to feedback
run autorest on latest swagger

* minor updaate

Co-authored-by: Marc Ma <marcma@microsoft.com>

* rev 1 (#22096)

Co-authored-by: Marc Ma <marcma@microsoft.com>

* address required/options params feedback (#22245)

update to latest swagger
clean up tests

Co-authored-by: Marc Ma <marcma@microsoft.com>

* expose models (#22331)

* expose link models

* add api file
expose models

Co-authored-by: Marc Ma <marcma@microsoft.com>

* Add samples for js sdk (#22444)

* Add samples-dev
Generate samples from samples-dev
Adjust route params with public review swagger

* Update options and routerClient

Co-authored-by: Marc Ma <marcma@microsoft.com>

* Public feedback and new api version (#22793)

* Add jobRouterAdministration.ts
New swagger with new api version

* Update samples and api version number
Remove requests.ts

* Update shrinkwrap file

Co-authored-by: Marc Ma <marcma@microsoft.com>

* Rename to jobrouter

* Rename in docs

* Resolve lint errors

* Remove samples readme temporarily
Remove empty options

* Remove beta tag
Update connection string name

* Update test node recordings

* Fix lint and tests

* Run check-format (prettier)

* Update to test-recorder v2

* Update communication packages version to v2

* Resolve conflicts

* Update Readme
Resolve lint

* Update version number

* Fix tests in node mode
TOOD: fix tests in browser mode

* Update according to feedbacks

* Update import
Update pnpm lock

* Update samples

* Update api file

* Fix api file

* Add a missing route

* fields renaming
sample-dev update

* Add paths for the package

* Add todos and issue links
Update readme
Update some recordings

* Update tests

* Prettier

* headerless matcher

* rename the package folder

* update package name in files

Co-authored-by: Marc Ma <marcma@microsoft.com>
2022-08-29 16:25:50 -07:00
Ronnie Geraghty 9251e5056d
[Bot Rules] Changing Cosmos Service Team Mentions (#23034) 2022-08-29 13:24:27 -07:00
Ronnie Geraghty a9e4a55240
[CODEOWNERS] Adding Automation Service Team (#23031) 2022-08-29 13:11:04 -07:00
Ronnie Geraghty 12908b1d96
[Bot Rules] Adding Automation Service Team (#23032) 2022-08-29 13:10:27 -07:00
Jeremy Meng 001c4fcb92
[engsys][identity] enable code coverage result generation (#22785)
The dev-tool runs nyc for integration tests. However, without proper reporter
configurations, desired code coverage reports are not generated.

This PR adds the .nycrc file that is copied from the template project thus
enables code coverage report generation.
2022-08-29 11:06:11 -07:00
Ronnie Geraghty c4eeff4810
[Bot Rules] Changes to reflect CODEOWNERS (#23020) 2022-08-29 09:32:21 -07:00
kazrael2119 d8a7b3e44c
release containerservice with stable version (#23003) 2022-08-29 10:45:11 +08:00
kazrael2119 43fd29bb9d
release labservices (#22992) 2022-08-29 10:17:23 +08:00
Azure SDK Bot 480e82cd0f
Post release automated changes for apimanagement releases (#23022)
Post release automated changes for azure-api-management-custom-widgets-scaffolder
2022-08-27 22:39:39 +00:00
Sajeetharan 582e83a802
update code owners for Cosmos SDK (#22990) 2022-08-27 10:42:15 -04:00
Matthew Podwysocki d63c111c9c
[opentelemetry] update dependencies (#23018) 2022-08-26 16:40:07 -04:00
Ján Mach 7edec8c24d
Apim/custom widgets packages beta2 CLI improvement (#23021)
### Packages impacted by this PR
@azure/api-management-custom-widgets-scaffolder

### Issues associated with this PR
n/a

### Describe the problem that is addressed by this PR
Update the CLI of the scaffolder package to make it more intuitive

### 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?
n/a

### Are there test cases added in this PR? _(If not, why?)_
No, there were no changes to the API, only minor improvements to existing templates.

### Provide a list of related PRs _(if any)_
n/a
2022-08-26 20:07:15 +00:00
Azure SDK Bot 1c496ca435
Post release automated changes for notificationhubs releases (#23010)
Post release automated changes for azure-notification-hubs
2022-08-26 18:52:43 +00:00
Ján Mach 5eb60e2415
Apim/custom widgets scaffolder beta2 - templates updated (#22974)
### Packages impacted by this PR
@azure/api-management-custom-widgets-scaffolder

### Issues associated with this PR
n/a

### Describe the problem that is addressed by this PR
Updates & synchronizes dependencies used in various templates.
Improves formatting in the templates.
Removes unnecessary duplicated path from fetch requests in templates.

### 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?
n/a

### Are there test cases added in this PR? _(If not, why?)_
No, there were no changes to the API, only minor improvements to existing templates.

### Provide a list of related PRs _(if any)_
n/a
2022-08-26 16:03:20 +00:00
Azure SDK Bot 52229090ec
Post release automated changes for storage releases (#23012)
* Post release automated changes for azure-storage-blob

* Post release automated changes for azure-storage-file-datalake
2022-08-26 06:17:04 +00:00
Harsha Nalluru ed8718a45a
[Form Recognizer] Regenerate with the latest swagger (#22984)
* swagger and regenerate

* regenerate

* edit versions

* fr regenerate

* build fixes

* prettier

* format

* [ai-form-recognizer] Fixup tests for GA endpoint

* get/list Model(s) -> get/list DocumentModel(s)

* Fix copyright header generation.

* Format

* Update sdk/formrecognizer/ai-form-recognizer/package.json

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

Co-authored-by: Will Temple <witemple@microsoft.com>
2022-08-25 23:57:55 +00:00
Matthew Podwysocki 234c51100d
[notification hubs] Update browser signkey method (#23000)
* [notification hubs] Update browser signkey method

* [notification hubs] Update browser signkey method
2022-08-25 16:34:44 -04:00
Azure SDK Bot 6caabbe4d7
Sync eng/common directory with azure-sdk-tools for PR 3874 (#23005)
* Add sparse checkout to perf template

* Rename base template, add parameters

* Add comment

* Add TODO

* Fix copy/pase bug, add language to artifacts path

* Fix language ref

* Fix python language

* perf.yml extends perf-base.yml

* Remove unnecessary base yml

* Fetch pull request refs

* Fix refs path

* Fetch commitish if matches PR syntax

* Print command before running

* Add PR commitish to remote.origin.fetch

* Add pool and vmimage parameters

* Map ref under "refs/remotes/origin"

* Add ref to refs/remotes/origin

Co-authored-by: Mike Harder <mharder@microsoft.com>
2022-08-25 13:32:36 -07:00
KarishmaGhiya 295dbb025f
update changelog for identity beta-1 release (#23001) 2022-08-25 10:45:54 -04:00
EmmaZhu-MSFT 95394b7f0f
Prepare STG84 release. (#23002) 2022-08-25 13:13:32 +08:00
Ben Broderick Phillips 6a698c5c05
Don't skip checkout exclusion in release config (#22730) 2022-08-24 15:01:35 -04:00