-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more data and features to the "Tracked PRs" page (#4341)
- Loading branch information
Showing
22 changed files
with
647 additions
and
82 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
11 changes: 10 additions & 1 deletion
11
.../Microsoft.DotNet.ProductConstructionService.Client/Generated/Models/PullRequestUpdate.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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.DotNet.ProductConstructionService.Client.Models | ||
{ | ||
public partial class PullRequestUpdate | ||
{ | ||
public PullRequestUpdate() | ||
public PullRequestUpdate(Guid subscriptionId, int buildId) | ||
{ | ||
SubscriptionId = subscriptionId; | ||
BuildId = buildId; | ||
} | ||
|
||
[JsonProperty("sourceRepository")] | ||
public string SourceRepository { get; set; } | ||
|
||
[JsonProperty("subscriptionId")] | ||
public Guid SubscriptionId { get; set; } | ||
|
||
[JsonProperty("buildId")] | ||
public int BuildId { 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
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
15 changes: 15 additions & 0 deletions
15
...uctConstructionService/ProductConstructionService.BarViz/Code/Services/UserRoleManager.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,15 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.DotNet.ProductConstructionService.Client; | ||
|
||
namespace ProductConstructionService.BarViz.Code.Services; | ||
|
||
public class UserRoleManager(IProductConstructionServiceApi pcsApi) | ||
{ | ||
private readonly Lazy<Task<bool>> _isAdmin = new( | ||
() => pcsApi.IsAdmin(), | ||
LazyThreadSafetyMode.ExecutionAndPublication); | ||
|
||
public Task<bool> IsAdmin => _isAdmin.Value; | ||
} |
Oops, something went wrong.