Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
318a0af
adding commands to generate the config files for each db type
severussundar Aug 8, 2022
e58f34c
adding the pipeline tasks to run the script to generate the config files
severussundar Aug 8, 2022
39b6b2b
removing the checked-in config files
severussundar Aug 8, 2022
77b14a2
creating config files in a new directory, modifying tests
severussundar Aug 8, 2022
b6e304c
removing unnecessary using statements
severussundar Aug 8, 2022
05d5dbb
fixing errors in pipeline yml files
severussundar Aug 8, 2022
70f00fc
fixing mistake in dotnet command
severussundar Aug 8, 2022
ed6e9d2
fixing install command
severussundar Aug 8, 2022
dce1f54
changing the install command arguements
severussundar Aug 8, 2022
31496b4
adding required options with pack command
severussundar Aug 8, 2022
a569b15
fixing typo in arguments field
severussundar Aug 8, 2022
7360720
adding cosmos pipeline for the same change
severussundar Aug 8, 2022
c30f6ea
changing the path for the nupkg file
severussundar Aug 8, 2022
6059343
figuring the right path for cli nupkg
severussundar Aug 8, 2022
fda13b8
fixing merge conflicts when merging with main
severussundar Aug 13, 2022
4f96877
mrege conflict changes
severussundar Aug 14, 2022
96d7571
adding scripts to generate config files using dab commands
severussundar Aug 14, 2022
25a2e15
adding commands to generate cosmos config file
severussundar Aug 14, 2022
5063ebd
adding commands for MsSql config
severussundar Aug 14, 2022
49d3de6
adding commands for Mssql and PostgreSql, updating MsSql commands
severussundar Aug 14, 2022
a4e7817
modifying scripts to use full path to read from .txt files
severussundar Aug 14, 2022
d9ddfab
removing empty lines in shell script
severussundar Aug 14, 2022
5bc9c6b
adding pipeline tasks
severussundar Aug 14, 2022
429afb6
removing copy of dab-config files to output after build
severussundar Aug 14, 2022
529432e
removing dab-config checked-in files
severussundar Aug 14, 2022
e64eef4
changing pipeline input to cwd
severussundar Aug 14, 2022
ef021d5
adding a condition to ensure script runs after build
severussundar Aug 15, 2022
8ef2aa9
using absolute path to find dll path
severussundar Aug 15, 2022
8c6276c
removing succeedeed condition on shell script
severussundar Aug 15, 2022
1334663
fixing ps1 script,adding right steps in cosmos pipeline, adding displ…
severussundar Aug 15, 2022
e187e9d
fixing file transform task file path
severussundar Aug 15, 2022
3f728c6
updating MsSql commands
severussundar Aug 15, 2022
af9a9f1
updating commands, json serialization options
severussundar Aug 15, 2022
0ae21b2
fixing commands for pgsql and mysql
severussundar Aug 15, 2022
c24f4af
passing right arguement for cosmos
severussundar Aug 15, 2022
bc3685d
reverting the javascript encoder
severussundar Aug 15, 2022
0620e7f
adding test category to unit tests that read a file, setting encoding…
severussundar Aug 16, 2022
5e86b38
removing overrides.json files
severussundar Aug 16, 2022
9f49094
adding a postbuild task to see if it runs on linux
severussundar Aug 24, 2022
5c7de14
adding a postbuild event to generate config files
severussundar Aug 25, 2022
8ee2ea0
resolving merge conflicts with main
severussundar Aug 25, 2022
b609551
removing test category in unit tests
severussundar Aug 25, 2022
b97d6bc
adding global arguement for pwsh install command
severussundar Aug 25, 2022
7a4a85e
moving powershell install after nuget install
severussundar Aug 26, 2022
89d1da4
adding postbuild tasks, scripts to generate config for linux/macOs, r…
severussundar Aug 26, 2022
16eb98c
fixing absolute path in bash script
severussundar Aug 26, 2022
9b54a1a
adding comments in sh script
severussundar Aug 26, 2022
857ef1e
changing comments in bash
severussundar Aug 26, 2022
ea02410
setting commandprocessor property as false
severussundar Aug 26, 2022
c760285
trying to invoke sh script with bash command
severussundar Aug 27, 2022
3539ee4
moving postbuild to cli, renaming Sql to sql
severussundar Aug 28, 2022
d02886c
copying generated config files to test folder
severussundar Aug 28, 2022
183ead3
adding no-build arguement to integration tests
severussundar Aug 28, 2022
3c45b94
chaning the file names in commands
severussundar Aug 29, 2022
900e465
chaning the file names in pipeline files
severussundar Aug 29, 2022
44f0a56
updating commands to reflect latest config changes
severussundar Aug 29, 2022
70d83e9
fix formatting
severussundar Aug 29, 2022
e13972d
adding --no-build arguement to pack command
severussundar Aug 29, 2022
f46252a
resolving merge conflicts with main
severussundar Oct 12, 2022
424e867
adding msbuild utilites assembly
severussundar Oct 12, 2022
2edc47e
generating config files using postbuild tasks
severussundar Oct 13, 2022
814fc9d
adding changes for moving config files to right directories
severussundar Oct 13, 2022
daa8efa
updating commands to include latest changes to config files
severussundar Oct 13, 2022
e09f97c
updating file transform task in pipelines
severussundar Oct 13, 2022
fbcf134
updating review entity commands
severussundar Oct 13, 2022
e9d3d8e
updating review entity in mysql and pgsql commands
severussundar Oct 13, 2022
7d7690f
updating pgsql command
severussundar Oct 13, 2022
d1ff3cb
removing stored-procedure commands for mysql
severussundar Oct 13, 2022
46cf150
moving commads to a folder, removing copy files task
severussundar Oct 13, 2022
5982dfd
adding empty line at end, deleting scripts, deleting checked-in confi…
severussundar Oct 13, 2022
edb76bb
removing no-build arguement in unit tests
severussundar Oct 13, 2022
a0f02e9
Merge branch 'main' into dev/shyamsundarj/generating-config-files-usi…
severussundar Oct 13, 2022
a5a2e6e
adding --no-build to unit tests
severussundar Oct 13, 2022
c8591b6
removing --no-build arguement
severussundar Oct 13, 2022
b9a4f6a
adding empty line at the end
severussundar Oct 13, 2022
46df057
adding empty line at the end for dab-config.json file
severussundar Oct 13, 2022
ad43741
Merge branch 'main' into dev/shyamsundarj/generating-config-files-usi…
severussundar Oct 17, 2022
be46369
adding powershell script
severussundar Oct 25, 2022
ca80cb9
adding bash script
severussundar Oct 25, 2022
39a2489
added conditional postbuild task
severussundar Oct 25, 2022
b5340c6
adding comments to the scripts
severussundar Oct 25, 2022
7de67ff
resolving merge conflicts with main
severussundar Oct 25, 2022
269b394
removing unsupported schema elements from dab-config.json
severussundar Oct 25, 2022
7095466
adding object type for source in schema
severussundar Oct 25, 2022
e81d973
added reference config files
severussundar Oct 25, 2022
d82f7c9
setting generateCOnfig property to true in build
severussundar Oct 25, 2022
706981c
setting generateConfigFiles to true in build pipeline
severussundar Oct 25, 2022
bbfe74b
adding comments, removing copy to engine output directory
severussundar Oct 25, 2022
d6a862b
removing mappings
severussundar Oct 25, 2022
08e3da8
including map commands for mssql commands file
severussundar Oct 25, 2022
6828bd6
adding newline at end of file
severussundar Oct 26, 2022
3143071
increasing sql and cosmos client version numbers
severussundar Oct 26, 2022
402434f
using newer versions of the sql and cosmos clinet nuget
severussundar Oct 26, 2022
cc6e9b7
reverting to original versions
severussundar Oct 26, 2022
85cd5fd
updating Star to StarAlias in Cosmos commands
severussundar Oct 27, 2022
770d3c1
resolving merge conflicts with main
severussundar Oct 27, 2022
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
2 changes: 1 addition & 1 deletion .pipelines/build-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ steps:
command: custom
custom: pack
projects: '**/*.sln'
arguments: '--configuration $(buildConfiguration) -p:Version=$(dabVersion)'
arguments: '-p:generateConfigFiles=true --configuration $(buildConfiguration) -p:Version=$(dabVersion)'

- task: DotNetCoreCLI@2
displayName: "Run Unit Tests"
Expand Down
22 changes: 12 additions & 10 deletions .pipelines/cosmos-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ variables:
steps:
- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate'

- task: UseDotNet@2
displayName: Setup .NET SDK v6.0.x
inputs:
packageType: sdk
version: 6.0.x

- task: NuGetToolInstaller@1

- task: NuGetCommand@2
Expand All @@ -41,23 +41,25 @@ steps:
feedsToUse: config
nugetConfigPath: Nuget.config

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.Cosmos.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/Service/dab-config.Cosmos.json'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)' # Update this to match your need
arguments: '-p:generateConfigFiles=true --configuration $(buildConfiguration)' # Update this to match your need

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.Cosmos.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/out/tests/net6.0/dab-config.Cosmos.json'

- task: DotNetCoreCLI@2
displayName: 'Run Cosmos DB Integration Tests'
inputs:
command: test
arguments: '--filter "TestCategory=Cosmos" --configuration $(buildConfiguration) $(ADDITIONAL_TEST_ARGS)'
arguments: '--filter "TestCategory=Cosmos" --no-build --configuration $(buildConfiguration) $(ADDITIONAL_TEST_ARGS)'
projects: '**/*Tests/*.csproj'

# '/XPlat Code coverage --results-directory /home/vsts/work/1/s/TestResults/'
Expand Down
38 changes: 19 additions & 19 deletions .pipelines/mssql-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ jobs:
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: Get and Start Ubuntu SQL Server Image Docker

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.MsSql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/Service/dab-config.MsSql.json'

- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)' # Update this to match your need
arguments: '-p:generateConfigFiles=true --configuration $(buildConfiguration)' # Update this to match your need

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.MsSql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/out/tests/net6.0/dab-config.MsSql.json'

- task: DotNetCoreCLI@2
displayName: 'Run MsSql Integration Tests'
inputs:
command: test
arguments: '--filter "TestCategory=MsSql" --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
arguments: '--filter "TestCategory=MsSql" --no-build --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
projects: '**/*Tests/*.csproj'

- task: PublishCodeCoverageResults@1
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
steps:
- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate'

- task: UseDotNet@2
displayName: Setup .NET SDK v6.0.x
inputs:
Expand Down Expand Up @@ -129,25 +129,25 @@ jobs:
SqlLocalDb.exe start MSSQLLocalDB
SqlLocalDb.exe info "MSSQLLocalDB"

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.MsSql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/Service/dab-config.MsSql.json'

- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)' # Update this to match your need
arguments: '-p:generateConfigFiles=true --configuration $(buildConfiguration)' # Update this to match your need

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.MsSql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/out/tests/net6.0/dab-config.MsSql.json'

- task: DotNetCoreCLI@2
displayName: 'Run MsSql Integration Tests'
inputs:
command: test
arguments: '--filter "TestCategory=MsSql" --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
arguments: '--filter "TestCategory=MsSql" --no-build --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
projects: '**/*Tests/*.csproj'

- task: PublishCodeCoverageResults@1
Expand Down
20 changes: 10 additions & 10 deletions .pipelines/mysql-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate'

- task: UseDotNet@2
displayName: Setup .NET SDK v6.0.x
inputs:
Expand Down Expand Up @@ -48,25 +48,25 @@ jobs:
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: Get and Start Ubuntu MySql Image Docker

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.MySql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/Service/dab-config.MySql.json'

- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)' # Update this to match your need
arguments: '-p:generateConfigFiles=true --configuration $(buildConfiguration)' # Update this to match your need

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.MySql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/out/tests/net6.0/dab-config.MySql.json'

- task: DotNetCoreCLI@2
displayName: 'Run MySql Integration Tests'
inputs:
command: test
arguments: '--filter "TestCategory=MySql" --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
arguments: '--filter "TestCategory=MySql" --no-build --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
projects: '**/*Tests/*.csproj'

- task: PublishCodeCoverageResults@1
Expand Down
18 changes: 9 additions & 9 deletions .pipelines/pg-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ jobs:
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: Get and Start Ubuntu Postgres Image Docker

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.PostgreSql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/Service/dab-config.PostgreSql.json'

- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)' # Update this to match your need
arguments: '-p:generateConfigFiles=true --configuration $(buildConfiguration)' # Update this to match your need

- task: FileTransform@1.206.0
displayName: 'Generate dab-config.PostgreSql.json'
inputs:
folderPath: '$(System.DefaultWorkingDirectory)'
fileType: 'json'
targetFiles: 'src/out/tests/net6.0/dab-config.PostgreSql.json'

- task: DotNetCoreCLI@2
displayName: 'Run Postgres Integration Tests'
inputs:
command: test
arguments: '--filter "TestCategory=PostgreSql" --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
arguments: '--filter "TestCategory=PostgreSql" --no-build --configuration $(buildConfiguration) --collect "XPlat Code coverage"'
projects: '**/*Tests/*.csproj'

- task: PublishCodeCoverageResults@1
Expand Down
6 changes: 6 additions & 0 deletions ConfigGenerators/CosmosCommands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
init --config "dab-config.Cosmos.json" --database-type "cosmos" --connection-string "AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==" --cosmos-database "graphqldb" --cosmos-container "planet" --graphql-schema "schema.gql" --host-mode Development --authenticate-devmode-requests false --cors-origin "http://localhost:5000"
add Planet --config "dab-config.Cosmos.json" --source "graphqldb.planet" --permissions "anonymous:create,read,update,delete" --rest false --graphql "Planet:Planets"
update Planet --config "dab-config.Cosmos.json" --permissions "authenticated:create,read,update,delete"
add Character --config "dab-config.Cosmos.json" --source "graphqldb.character" --permissions "authenticated:create,read,update,delete" --rest false --graphql "Character:Characters"
add StarAlias --config "dab-config.Cosmos.json" --source "graphqldb.star" --permissions "anonymous:create,read,update,delete" --rest false --graphql "Star:Stars"
update StarAlias --config "dab-config.Cosmos.json" --source "graphqldb.star" --permissions "authenticated:create,read,update,delete"
Loading