-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Server changes to create manual and upgrade required API reviews usin…
…g pipeline(sandboxing) (#3774) * Generate reviews using sandboxing pipeline
- Loading branch information
1 parent
824b4d6
commit 976ebfc
Showing
9 changed files
with
195 additions
and
36 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
36 changes: 36 additions & 0 deletions
36
src/dotnet/APIView/APIViewWeb/Controllers/ReviewController.cs
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,36 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using APIViewWeb.Filters; | ||
using APIViewWeb.Repositories; | ||
using Microsoft.ApplicationInsights; | ||
using Microsoft.ApplicationInsights.DataContracts; | ||
using Microsoft.ApplicationInsights.Extensibility; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.Extensions.Logging; | ||
using System; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
||
namespace APIViewWeb.Controllers | ||
{ | ||
public class ReviewController : Controller | ||
{ | ||
private readonly ReviewManager _reviewManager; | ||
private readonly ILogger _logger; | ||
|
||
public ReviewController(ReviewManager reviewManager, ILogger<ReviewController> logger) | ||
{ | ||
_reviewManager = reviewManager; | ||
_logger = logger; | ||
} | ||
|
||
[HttpGet] | ||
public async Task<ActionResult> UpdateApiReview(string repoName, string artifactPath, string buildId, string project = "internal") | ||
{ | ||
await _reviewManager.UpdateReviewCodeFiles(repoName, buildId, artifactPath, project); | ||
return Ok(); | ||
} | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
src/dotnet/APIView/APIViewWeb/Models/ReviewGenPipelineParamModel.cs
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,10 @@ | ||
namespace APIViewWeb.Models | ||
{ | ||
public class ReviewGenPipelineParamModel | ||
{ | ||
public string ReviewID { get; set; } | ||
public string RevisionID { get; set; } | ||
public string FileID { get; set; } | ||
public string FileName { get; set; } | ||
} | ||
} |
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