Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e4adb69
fix orderby for null int types
aaronburtle Nov 2, 2022
7b6f695
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Nov 2, 2022
a44ac07
merging to local
aaronburtle Nov 9, 2022
ed3949b
merging main
aaronburtle Dec 7, 2022
cd391ab
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Dec 8, 2022
2813ca4
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Dec 9, 2022
45745b3
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Jan 30, 2023
625f70b
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Jan 30, 2023
8d6a32e
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Jan 31, 2023
001897f
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Feb 1, 2023
8e41220
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Feb 17, 2023
9ec7c9d
improving folder structure
aaronburtle Feb 17, 2023
04669bb
Update MsSqlCommands.txt
aaronburtle Feb 17, 2023
278142e
Update MySqlCommands.txt
aaronburtle Feb 17, 2023
82b500d
Update PostgreSqlCommands.txt
aaronburtle Feb 17, 2023
cad4ee0
renaming folders
aaronburtle Feb 17, 2023
82b93b3
Merge branch 'dev/aaronburtle/fixFolderStructure' of https://github.c…
aaronburtle Feb 17, 2023
b141e7b
fix reference to new name
aaronburtle Feb 17, 2023
1bb0ca1
fixed address in pipeline
aaronburtle Feb 17, 2023
5def108
adjust address in script
aaronburtle Feb 17, 2023
dec57e6
adjust address in script
aaronburtle Feb 17, 2023
7b3ce33
Merge branch 'main' into dev/aaronburtle/fixFolderStructure
abhishekkumams Feb 20, 2023
846e7c0
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Feb 22, 2023
10c2c49
Merge branch 'main' into dev/aaronburtle/fixFolderStructure
aaronburtle Feb 22, 2023
fcce4c9
renaming to match correct casing
aaronburtle Feb 22, 2023
2eaa3f2
Merge branch 'dev/aaronburtle/fixFolderStructure' of https://github.c…
aaronburtle Feb 22, 2023
df67a7f
rename
aaronburtle Feb 22, 2023
d7fe019
update name in pipeline
aaronburtle Feb 22, 2023
ab7ad00
renaming proj file
aaronburtle Feb 22, 2023
a074175
rename within scripts'
aaronburtle Feb 22, 2023
4b36bc8
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Feb 24, 2023
9c9916f
flatten src/Cli
aaronburtle Feb 24, 2023
abd6350
cosmos to comsmosdb
aaronburtle Feb 24, 2023
a89af25
Merge branch 'main' into dev/aaronburtle/fixFolderStructure
aaronburtle Feb 24, 2023
275fe19
update .sln
aaronburtle Feb 24, 2023
dd49219
update proj file paths
aaronburtle Feb 24, 2023
ad1ef5d
fix ath in publsh script
aaronburtle Feb 24, 2023
ce50184
add output path to cli proj file
aaronburtle Feb 27, 2023
6816114
add output path to cli.test proj
aaronburtle Feb 27, 2023
266fa2e
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Feb 27, 2023
7264be7
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Feb 27, 2023
270a87e
Merge branch 'main' into dev/aaronburtle/fixFolderStructure
aaronburtle Feb 27, 2023
d761deb
Merge branch 'main' of https://github.com/Azure/hawaii-gql
aaronburtle Feb 27, 2023
9c4e8cd
Merge branch 'main' into dev/aaronburtle/fixFolderStructure
aaronburtle Feb 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pipelines/build-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ steps:
displayName: "Package DAB to multiple platforms"
inputs:
targetType: 'filePath'
filePath: $(System.DefaultWorkingDirectory)/publish.ps1
filePath: $(System.DefaultWorkingDirectory)/scripts/publish.ps1
arguments: $(buildConfiguration) $(Build.ArtifactStagingDirectory) $(dabVersion) -Package

- task: PowerShell@2
displayName: "Smoke Test for DAB CLI"
inputs:
targetType: 'filePath'
filePath: $(System.DefaultWorkingDirectory)/dab-smoke-test-script.ps1
filePath: $(System.DefaultWorkingDirectory)/scripts/dab-smoke-test-script.ps1
arguments: $(buildConfiguration) $(Build.ArtifactStagingDirectory) $(Agent.OS) $(dabVersion)

# Sign the binaries that were generated per platform
Expand All @@ -165,7 +165,7 @@ steps:
displayName: "Zip the binaries after signing"
inputs:
targetType: 'filePath'
filePath: $(System.DefaultWorkingDirectory)/publish.ps1
filePath: $(System.DefaultWorkingDirectory)/scripts/publish.ps1
arguments: $(buildConfiguration) $(Build.ArtifactStagingDirectory) $(dabVersion) -CreateZip

# Generating SBOM manifest for Dab files
Expand All @@ -179,7 +179,7 @@ steps:
displayName: "Generate Manifest File"
inputs:
targetType: 'filePath'
filePath: $(System.DefaultWorkingDirectory)/create_manifest_file.ps1
filePath: $(System.DefaultWorkingDirectory)/scripts/create-manifest-file.ps1
arguments: $(buildConfiguration) $(Build.ArtifactStagingDirectory) $(dabVersion) $(isReleaseBuild)

# This code takes all the files in $(Build.ArtifactStagingDirectory) and uploads them as an artifact of your build.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ Set-Location $workingDirectory;
#Generates the config files for the selected database types.
foreach($databaseType in $databaseTypes){
if($databaseType -eq "mssql"){
$commandFile = "MsSqlCommands.txt";
$commandFile = "mssql-commands.txt";
$configFile = "dab-config.MsSql.json";
}
elseif($databaseType -eq "mysql"){
$commandFile = "MySqlCommands.txt";
$commandFile = "mysql-commands.txt";
$configFile = "dab-config.MySql.json";
}
elseif($databaseType -eq "postgresql"){
$commandFile = "PostgreSqlCommands.txt";
$commandFile = "postgresql-commands.txt";
$configFile = "dab-config.PostgreSql.json";
}
else{
$commandFile = "CosmosCommands.txt";
$commandFile = "cosmosdb_nosql-commands.txt";
$configFile = "dab-config.CosmosDb_NoSql.json";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ cd $workingDirectory;
for databaseType in ${databaseTypes[@]}
do
if [[ $databaseType == "mssql" ]]; then
commandFile="MsSqlCommands.txt";
commandFile="mssql-commands.txt";
configFile="dab-config.MsSql.json";
elif [[ $databaseType == "mysql" ]]; then
commandFile="MySqlCommands.txt";
commandFile="mysql-commands.txt";
configFile="dab-config.MySql.json";
elif [[ $databaseType == "postgresql" ]]; then
commandFile="PostgreSqlCommands.txt";
commandFile="postgresql-commands.txt";
configFile="dab-config.PostgreSql.json";
else
commandFile="CosmosCommands.txt";
commandFile="cosmosdb_nosql-commands.txt";
configFile="dab-config.CosmosDb_NoSql.json";
fi

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions publish.ps1 → scripts/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ param (
[Parameter (Mandatory=$false)][switch] $CreateZip
)

$BuildRoot = $PSScriptRoot
$BuildRoot = Split-Path $PSScriptRoot -Parent

$RIDs = "win-x64", "linux-x64", "osx-x64"

if ($Package)
{
foreach ($RID in $RIDs) {
$cmd = "dotnet publish --configuration $BuildConfiguration --output $BuildOutputDir/publish/$BuildConfiguration/$RID/dab --runtime $RID --self-contained true -p:Version=$DabVersion $BuildRoot/src/Cli/src/Cli.csproj"
$cmd = "dotnet publish --configuration $BuildConfiguration --output $BuildOutputDir/publish/$BuildConfiguration/$RID/dab --runtime $RID --self-contained true -p:Version=$DabVersion $BuildRoot/src/Cli/Cli.csproj"
Write-Host $cmd
Invoke-Expression $cmd
}
Expand Down
4 changes: 2 additions & 2 deletions src/Azure.DataApiBuilder.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.DataApiBuilder.Servic
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.DataApiBuilder.Auth", "Auth\Azure.DataApiBuilder.Auth.csproj", "{249FF898-AD6E-46F2-B441-F6926BCD5179}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli", "Cli\src\Cli.csproj", "{55528027-AC5E-4B3A-901A-BAE649C44C07}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli", "Cli\Cli.csproj", "{55528027-AC5E-4B3A-901A-BAE649C44C07}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.Tests", "Cli\test\Cli.Tests.csproj", "{2D9D5A56-2025-43BA-97D6-47385C2890FE}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.Tests", "Cli.Tests\Cli.Tests.csproj", "{2D9D5A56-2025-43BA-97D6-47385C2890FE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FBA18E2E-32A2-437C-AA5D-F9EF358874DC}"
ProjectSection(SolutionItems) = preProject
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<BaseOutputPath>..\..\out\tests</BaseOutputPath>
<OutputPath>$(BaseOutputPath)\tests</OutputPath>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -30,7 +30,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\src\Cli.csproj" />
<ProjectReference Include="..\Cli\Cli.csproj" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions src/Cli/src/Cli.csproj → src/Cli/Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackAsTool>true</PackAsTool>
<ToolCommandName>dab</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
<BaseOutputPath>..\..\out\cli</BaseOutputPath>
<OutputPath>$(BaseOutputPath)\cli</OutputPath>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
<PackageId>Microsoft.DataApiBuilder</PackageId>
<Title>Microsoft.DataApiBuilder</Title>
Expand Down Expand Up @@ -46,34 +46,34 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Service\Azure.DataApiBuilder.Service.csproj" />
<ProjectReference Include="..\Service\Azure.DataApiBuilder.Service.csproj" />
</ItemGroup>

<ItemGroup>
<ConfigFiles Include="..\..\Service\dab-config*.json" />
<ConfigFiles Include="..\Service\dab-config*.json" />
</ItemGroup>

<ItemGroup>
<None Remove="dab.draft.schema.json" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\..\nuget\README.md" Pack="true" PackagePath="\" CopyToOutputDirectory="PreserveNewest" />
<None Include="..\..\..\nuget\nuget_icon.png" Pack="true" PackagePath="\" />
<None Include="..\..\..\LICENSE.txt" Pack="true" PackagePath="\" CopyToOutputDirectory="PreserveNewest" />
<None Include="..\..\..\NOTICE.txt" Pack="true" PackagePath="\" Condition="Exists('..\..\..\NOTICE.txt')" CopyToOutputDirectory="PreserveNewest" />
<None Include="..\..\nuget\README.md" Pack="true" PackagePath="\" CopyToOutputDirectory="PreserveNewest" />
<None Include="..\..\nuget\nuget_icon.png" Pack="true" PackagePath="\" />
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="\" CopyToOutputDirectory="PreserveNewest" />
<None Include="..\..\NOTICE.txt" Pack="true" PackagePath="\" Condition="Exists('..\..\..\NOTICE.txt')" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
<Content Include="..\..\..\schemas\dab.draft.schema.json">
<Content Include="..\..\schemas\dab.draft.schema.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="GenerateConfigFiles" AfterTargets="PostBuildEvent">
<Exec Command="powershell.exe -command ..\..\..\ConfigGenerators\configGenerator.ps1 $(generateConfigFileForDbType) " Condition=" '$(OS)' == 'Windows_NT' And '$(generateConfigFileForDbType)' != '' " />
<Exec Command="bash ../../../ConfigGenerators/configGenerator.sh $(generateConfigFileForDbType) " Condition=" '$(OS)' != 'Windows_NT' And '$(generateConfigFileForDbType)' != '' " />
<Copy SourceFiles="@(ConfigFiles)" DestinationFolder="..\..\out\tests\$(TargetFramework)" />
<Exec Command="powershell.exe -command ..\..\config-generators\config-generator.ps1 $(generateConfigFileForDbType) " Condition=" '$(OS)' == 'Windows_NT' And '$(generateConfigFileForDbType)' != '' " />
<Exec Command="bash ../../config-generators/config-generator.sh $(generateConfigFileForDbType) " Condition=" '$(OS)' != 'Windows_NT' And '$(generateConfigFileForDbType)' != '' " />
<Copy SourceFiles="@(ConfigFiles)" DestinationFolder="..\out\tests\$(TargetFramework)" />
</Target>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.