Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new app config connection string #4946

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
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
6 changes: 6 additions & 0 deletions .azure-pipelines/apiview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ stages:
displayName: 'Install .NET'
inputs:
version: '$(DotNetRuntimeVersion)'

- task: UseDotNet@2
displayName: 'Install .NET runtime'
inputs:
packageType: runtime
version: '$(DotNetRuntimeVersion)'

- task: DotNetCoreCLI@2
displayName: 'Build & Test'
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/steps/apiview-ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ steps:
APIVIEW_AUTHENTICATIONSCHEME: "Test"
APIVIEW_SENDGRID__KEY: "Test"
APIVIEW_APIKEY: "$(azuresdk-apiview-apikey)"
APIVIEW_APPCONFIG: "$(apiview-appconfig-connectionstring)"

- task: Powershell@2
inputs:
Expand Down
19 changes: 15 additions & 4 deletions src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@
<li class="nav-item">
<a class="nav-link" id="help-Java" data-toggle="tab" href="#java-help">Java</a>
</li>
<li class="nav-item">
<a class="nav-link" id="help-Kotlin" data-toggle="tab" href="#java-help">Kotlin</a>
</li>
<li class="nav-item">
<a class="nav-link" id="help-JavaScript" data-toggle="tab" href="#js-help">JS/TS</a>
</li>
Expand All @@ -120,7 +123,10 @@
<a class="nav-link" id="help-Swagger" data-toggle="tab" href="#swagger-help">Swagger</a>
</li>
<li class="nav-item">
<a class="nav-link" id="help-CADL" data-toggle="tab" href="#cadl-help">CADL</a>
<a class="nav-link" id="help-Cadl" data-toggle="tab" href="#cadl-help">Cadl</a>
</li>
<li class="nav-item">
<a class="nav-link" id="help-Json" data-toggle="tab" href="#json-help">Json</a>
</li>
</ul>

Expand Down Expand Up @@ -237,9 +243,14 @@
</div>
<div class="tab-pane" id="cadl-help">
<ol>
<li>
Provide URL to cadl project root path.
</li>

Provide URL to cadl project root path.
maririos marked this conversation as resolved.
Show resolved Hide resolved

</ol>
</div>
<div class="tab-pane" id="json-help">
<ol>
Upload JSON API review token file.
</ol>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/APIView/APIViewWeb/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
config.AddEnvironmentVariables(prefix: "APIVIEW_");
config.AddUserSecrets(typeof(Program).Assembly);
IConfiguration settings = config.Build();
string connectionString = settings.GetConnectionString("AppConfig");
string connectionString = settings.GetValue<string>("AppConfig");
// Load configuration from Azure App Configuration
config.AddAzureAppConfiguration(options =>
{
Expand Down