-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull in feature/modelSerializer so ci proj ref legs are happy (#38710)
* Revert "update api" This reverts commit ae54d7d. * Revert "remove serialization" This reverts commit 748872b. * Release v1.11.1 (#38602) * [Event Hubs] September 2023 Release Prep (#38604) The focus of these changes is to prepare the core Event Hubs library for the September 2023 release. * Sync eng/common directory with azure-sdk-tools repository (#38606) * Don't allow setting Variant to Variant (#38592) * Don't allow setting Variant to Variant * pr fb * Allow As<T> to return null for reference types (#38611) * Allow As<T> to return null for reference types * Improve cast exception message * [Communication]Enable managed identity in ACScommunication resource sdk (#37566) * Update autorest mark down to latest OpenApi spec * initial code generation with new Swagger spec hash * remove bugged format and generate code * update spec link to remote link * Adding test scenario for MI * Update Export Api * Update to most recent spec hash * Update Sample Snippets * Add Managed Identity tests session records assets * Re-enforce resourceId format * updated test recording * updated recordings * updated-recordings * fix tests and Update test recordings * Update changelog release history * Provide backward compatibility to accomodate breaking change * remove param from fallback overload * Update customize folder with communication service resource data * fix build issues * fix build issues * export api to support older resource data * fix build issues * Update release date of `1.2.0-beta.2` --------- Co-authored-by: Joel Enikanorogbon <[email protected]> Co-authored-by: Jorge Beauregard <[email protected]> Co-authored-by: Mingzhe Huang <[email protected]> * Increment package version after release of Microsoft.Azure.WebJobs.Extensions.SignalRService (#38618) * Increment package version after release of Azure.ResourceManager.Communication (#38617) * Increment package version after release of Azure.Messaging.EventHubs (#38627) * [Event Hubs] September 2023 Release Prep (non-core) (#38605) The focus of these changes is to prepare the Event Hubs processor and function extensions libraries for the September 2023 release. * Remove circular shared source references in Azure.Core tests files (#38607) * Initial reshuffle * Second reshuffle * nits * fix * [SignalR extensions] Release v1.11.2 (#38623) * Release v1.11.2 * Fix test issue * STG 90 GA release prep (#38631) * Fix release date for Confidential Ledger (#38629) * Increment version for eventhub releases (#38632) * Increment package version after release of Microsoft.Azure.WebJobs.Extensions.EventHubs * Increment package version after release of Azure.Messaging.EventHubs.Processor * [AppConfig] Update API Compat version (#38628) The focus of these changes is to update the API Compat target after the 1.2.1 release. * Prepare for release (#38612) * Prepare for release * change log * Increment package version after release of Azure.Communication.JobRouter (#38641) * Increment version for storage releases (#38642) * revert some unexpected sample configuration changes (#38619) * Update AutoRest C# version to 3.0.0-beta.20230912.3 (#38653) * Increment package version after release of Azure.Security.ConfidentialLedger (#38644) * update version to patch (#38646) * Update dockerfile for net6.0 (#38645) * NonDisposingStream: delegate remaining Stream APIs to inner stream (#38184) * [App Config] Snapshot API Updates Based on Arch Board Feedback (#38650) [App Configuration] Updates in snapshot API * Fix casing on some events (#38674) * Legacy checkpoint support (#38546) * Sync eng/common directory with azure-sdk-tools for PR 6895 (#38672) * Add legacy moniker migration logic * Add functionality from Java testing --------- Co-authored-by: Daniel Jurek <[email protected]> * .NET-specific changes: Move deprecated packages to legacy (#36194) * First cut at migrating to legacy moniker * Update-PackageMonikers.ps1 * Refinement * Update docindex.yml for testing * Rename * ToC fixes * Refactor namespace discovery * Remove EnsureNamespaces * Add "legacy" moniker * Undo Service-Level-Readme-Automation.ps1 because it is generating incorrect package paths * Better edge case handling, documentation * Add fixes to service level overview generation * Reset eng/common * docindex changes * Comment cleanup * Fix ToC generation tests * Test cleanup * Remove unused <IncludeGeneratorSharedCode> MSBuild properties (#38648) * Remove <IncludeGeneratorSharedCode> MSBuild properties * revert personalizer * Increment package version after release of Azure.Messaging.EventGrid (#38682) * temp fix to release alpha package * update api * update code to not add new types * update code to internalize types * make model factory customer for now * update api * [Document Translation] Fix Document Translation README.md links (#38593) * Fix Document Translation README.md links * Remove extra whitespace and remove en-us from links * Revert mocking link change * Remove duplicate URL --------- Co-authored-by: Rango Meadows <[email protected]> * Prepare release for AppService (#38696) * [WebPubSub] Increase isolated package version and fix a few issues (#38692) * Increase isolated process package. * Fix title * Fixing scaler provider initialization pattern (#38673) * src, test, and samples projects for DataMovement.Files.Shares (#38678) * src, test, and samples projects for DataMovement.Files.Shares * placeholder readme * remove shared source * more csproj * blank changelog --------- Co-authored-by: yzt <[email protected]> Co-authored-by: Jesse Squire <[email protected]> Co-authored-by: Azure SDK Bot <[email protected]> Co-authored-by: Anne Thompson <[email protected]> Co-authored-by: Joel Eniqs <[email protected]> Co-authored-by: Joel Enikanorogbon <[email protected]> Co-authored-by: Jorge Beauregard <[email protected]> Co-authored-by: Mingzhe Huang <[email protected]> Co-authored-by: Sean McCullough <[email protected]> Co-authored-by: Christopher Scott <[email protected]> Co-authored-by: JoshLove-msft <[email protected]> Co-authored-by: Dapeng Zhang <[email protected]> Co-authored-by: Reuben Bond <[email protected]> Co-authored-by: ShivangiReja <[email protected]> Co-authored-by: Alexey Rodionov <[email protected]> Co-authored-by: Daniel Jurek <[email protected]> Co-authored-by: Matthew Meadows (Rango the Dog) <[email protected]> Co-authored-by: Rango Meadows <[email protected]> Co-authored-by: Wei Hu <[email protected]> Co-authored-by: JialinXin <[email protected]> Co-authored-by: Jocelyn <[email protected]>
- Loading branch information
1 parent
f6b779d
commit 10a91fb
Showing
345 changed files
with
25,420 additions
and
1,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<# | ||
.SYNOPSIS | ||
Move metadata JSON and package-level overview markdown files for deprecated packages to the legacy folder. | ||
.DESCRIPTION | ||
Move onboarding information to the "legacy" moniker for whose support is "deprecated" in the Metadata CSV. | ||
Only one version of a package can be documented in the "legacy" moniker. If multiple versions are available, | ||
the "latest" version will be used and the "preview" version will be deleted. | ||
.PARAMETER DocRepoLocation | ||
The location of the target docs repository. | ||
#> | ||
|
||
param( | ||
[Parameter(Mandatory = $true)] | ||
[string] $DocRepoLocation | ||
) | ||
|
||
. (Join-Path $PSScriptRoot common.ps1) | ||
|
||
Set-StrictMode -Version 3 | ||
|
||
function getPackageMetadata($moniker) { | ||
$jsonFiles = Get-ChildItem -Path (Join-Path $DocRepoLocation "metadata/$moniker") -Filter *.json | ||
$metadata = @{} | ||
|
||
foreach ($jsonFile in $jsonFiles) { | ||
$packageMetadata = Get-Content $jsonFile -Raw | ConvertFrom-Json -AsHashtable | ||
$packageIdentity = $packageMetadata.Name | ||
if (Test-Path "Function:$GetPackageIdentity") { | ||
$packageIdentity = &$GetPackageIdentity $packageMetadata | ||
} | ||
|
||
$metadata[$packageIdentity] = @{ File = $jsonFile; Metadata = $packageMetadata } | ||
} | ||
|
||
return $metadata | ||
} | ||
|
||
function getPackageInfoFromLookup($packageIdentity, $version, $lookupTable) { | ||
if ($lookupTable.ContainsKey($packageIdentity)) { | ||
if ($lookupTable[$packageIdentity]['Metadata'].Version -eq $version) { | ||
# Only return if the version matches | ||
return $lookupTable[$packageIdentity] | ||
} | ||
} | ||
|
||
return $null | ||
} | ||
|
||
function moveToLegacy($packageInfo) { | ||
$docsMsMetadata = &$GetDocsMsMetadataForPackageFn -PackageInfo $packageInfo['Metadata'] | ||
|
||
Write-Host "Move to legacy: $($packageInfo['Metadata'].Name)" | ||
$packageInfoPath = $packageInfo['File'] | ||
Move-Item "$($packageInfoPath.Directory)/$($packageInfoPath.BaseName).*" "$DocRepoLocation/metadata/legacy/" -Force | ||
|
||
$readmePath = "$DocRepoLocation/$($docsMsMetadata.PreviewReadMeLocation)/$($docsMsMetadata.DocsMsReadMeName)-readme.md" | ||
if (Test-Path $readmePath) { | ||
Move-Item ` | ||
$readmePath ` | ||
"$DocRepoLocation/$($docsMsMetadata.LegacyReadMeLocation)/" ` | ||
-Force | ||
} | ||
} | ||
|
||
function deletePackageInfo($packageInfo) { | ||
$docsMsMetadata = &$GetDocsMsMetadataForPackageFn -PackageInfo $packageInfo['Metadata'] | ||
|
||
Write-Host "Delete superseded package: $($packageInfo['Metadata'].Name)" | ||
$packageInfoPath = $packageInfo['File'] | ||
Remove-Item "$($packageInfoPath.Directory)/$($packageInfoPath.BaseName).*" -Force | ||
|
||
$readmePath = "$DocRepoLocation/$($docsMsMetadata.PreviewReadMeLocation)/$($docsMsMetadata.DocsMsReadMeName)-readme.md" | ||
if (Test-Path $readmePath) { | ||
Remove-Item $readmePath -Force | ||
} | ||
} | ||
|
||
$metadataLookup = @{ | ||
'latest' = getPackageMetadata 'latest' | ||
'preview' = getPackageMetadata 'preview' | ||
} | ||
$deprecatedPackages = (Get-CSVMetadata).Where({ $_.Support -eq 'deprecated' }) | ||
|
||
foreach ($package in $deprecatedPackages) { | ||
$packageIdentity = $package.Package | ||
if (Test-Path "Function:$GetPackageIdentityFromCsvMetadata") { | ||
$packageIdentity = &$GetPackageIdentityFromCsvMetadata $package | ||
} | ||
|
||
$packageInfoPreview = $packageInfoLatest = $null | ||
if ($package.VersionPreview) { | ||
$packageInfoPreview = getPackageInfoFromLookup ` | ||
-packageIdentity $packageIdentity ` | ||
-version $package.VersionPreview ` | ||
-lookupTable $metadataLookup['preview'] | ||
} | ||
|
||
if ($package.VersionGA) { | ||
$packageInfoLatest = getPackageInfoFromLookup ` | ||
-packageIdentity $packageIdentity ` | ||
-version $package.VersionGA ` | ||
-lookupTable $metadataLookup['latest'] | ||
} | ||
|
||
if (!$packageInfoPreview -and !$packageInfoLatest) { | ||
# Nothing to move or delete | ||
continue | ||
} | ||
|
||
if ($packageInfoPreview -and $packageInfoLatest) { | ||
# Delete metadata JSON and package-level overview markdown files for | ||
# the preview version instead of moving both. This mitigates situations | ||
# where the "latest" verison doesn't have a package-level overview | ||
# markdown file and the "preview" version does. | ||
deletePackageInfo $packageInfoPreview | ||
moveToLegacy $packageInfoLatest | ||
} else { | ||
moveToLegacy ($packageInfoPreview ?? $packageInfoLatest) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"main": "dist/src/index.js", | ||
"dependencies": { | ||
"@azure-tools/typespec-csharp": "0.2.0-beta.20230907.2" | ||
"@azure-tools/typespec-csharp": "0.2.0-beta.20230912.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.