Skip to content

Commit de753f5

Browse files
authored
Merge pull request #8125 from NuGet/dev
[ReleasePrep][2020.07.23] RI dev to master
2 parents e738574 + a83a8eb commit de753f5

43 files changed

Lines changed: 971 additions & 326 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 67 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/page-list-packages.less

Lines changed: 80 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,91 @@
33
margin-bottom: 33px;
44
}
55

6-
.row-heading {
7-
.cell-heading {
8-
h1 {
9-
.break-word;
10-
}
6+
.no-padding {
7+
padding: 0 !important;
8+
}
9+
10+
.no-margin {
11+
margin: 0 !important;
12+
}
13+
14+
.btn-command {
15+
margin-top: 33px;
16+
margin-bottom: 33px;
17+
width: 90px;
18+
height: 45px;
19+
background-color: transparent;
20+
border: none;
21+
}
22+
23+
@media (max-width: @screen-md) {
24+
.btn-command {
25+
text-align: left;
26+
margin-top: 0px;
27+
margin-bottom: 5px;
1128
}
29+
}
1230

13-
@media (min-width: @screen-md-min) {
14-
display: table;
15-
width: 100%;
31+
.prerel-filter {
32+
white-space: nowrap;
33+
}
1634

17-
.cell-heading {
18-
text-align: left;
19-
display: table-cell;
20-
}
35+
@media (min-width: @screen-md) {
36+
.prerel-filter {
37+
display: inline-block;
38+
margin-top: 54px;
39+
}
40+
}
41+
42+
.btn-command:hover {
43+
background-color: #f4f4f4;
44+
}
45+
46+
.advanced-search-panel {
47+
background-color: @alert-info-bg;
48+
border-color: @alert-info-border;
49+
margin-right: 0px;
50+
margin-left: 0;
51+
margin-bottom: 15px;
2152

22-
.cell-controls {
23-
margin-top: 42px;
24-
display: table-cell;
25-
text-align: right;
53+
fieldset {
54+
margin: 20px;
55+
56+
label {
57+
margin-left: 3px;
58+
font-weight: 400;
59+
font-size: small;
2660
white-space: nowrap;
2761
}
62+
63+
input {
64+
margin-right: 3px;
65+
position: relative;
66+
top: 2px;
67+
}
68+
}
69+
70+
legend {
71+
margin-bottom: 5px;
72+
font-weight: 500;
73+
font-size: medium;
74+
white-space: nowrap;
75+
}
76+
77+
.btn {
78+
margin-left: 20px;
79+
margin-bottom: 10px;
80+
}
81+
82+
.warning-panel {
83+
margin-left: 10px;
84+
margin-right: 10px;
85+
}
86+
}
87+
88+
@media (min-width: @screen-sm) {
89+
.text-align-right {
90+
text-align: right;
2891
}
2992
}
30-
}
93+
}

src/GitHubVulnerabilities2Db/Collector/AdvisoryQueryBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public string CreateSecurityAdvisoriesQuery(DateTimeOffset? updatedSince = null,
2121
cursor
2222
node {
2323
databaseId
24-
ghsaId
24+
permalink
2525
severity
2626
updatedAt
2727
" + CreateVulnerabilitiesConnectionQuery() + @"
@@ -33,7 +33,7 @@ public string CreateSecurityAdvisoriesQuery(DateTimeOffset? updatedSince = null,
3333
public string CreateSecurityAdvisoryQuery(SecurityAdvisory advisory)
3434
=> @"
3535
{
36-
securityAdvisory(ghsaId: " + advisory.GhsaId + @") {
36+
securityAdvisory(databaseId: " + advisory.DatabaseId + @") {
3737
severity
3838
updatedAt
3939
identifiers {

src/GitHubVulnerabilities2Db/GitHubVulnerabilities2Db.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
<Compile Include="GraphQL\SecurityAdvisory.cs" />
6262
<Compile Include="GraphQL\QueryResponse.cs" />
6363
<Compile Include="GraphQL\QueryService.cs" />
64-
<Compile Include="GraphQL\SecurityAdvisoryExtensions.cs" />
6564
<Compile Include="GraphQL\SecurityVulnerability.cs" />
6665
<Compile Include="Ingest\AdvisoryIngestor.cs" />
6766
<Compile Include="Ingest\GitHubVersionRangeParser.cs" />

src/GitHubVulnerabilities2Db/GraphQL/SecurityAdvisory.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ namespace GitHubVulnerabilities2Db.GraphQL
1111
public class SecurityAdvisory : INode
1212
{
1313
public int DatabaseId { get; set; }
14-
15-
/// <summary>
16-
/// The GitHub SecurityAdvisory ID in the format 'GHSA-xxxx-xxxx-xxxx'.
17-
/// </summary>
18-
public string GhsaId { get; set; }
19-
14+
public string Permalink { get; set; }
2015
public string Severity { get; set; }
2116
public DateTimeOffset UpdatedAt { get; set; }
2217
public DateTimeOffset? WithdrawnAt { get; set; }

src/GitHubVulnerabilities2Db/GraphQL/SecurityAdvisoryExtensions.cs

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/GitHubVulnerabilities2Db/Ingest/AdvisoryIngestor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private Tuple<PackageVulnerability, bool> FromAdvisory(SecurityAdvisory advisory
4141
{
4242
GitHubDatabaseKey = advisory.DatabaseId,
4343
Severity = (PackageVulnerabilitySeverity)Enum.Parse(typeof(PackageVulnerabilitySeverity), advisory.Severity, ignoreCase: true),
44-
AdvisoryUrl = advisory.GetPermalink()
44+
AdvisoryUrl = advisory.Permalink
4545
};
4646

4747
foreach (var securityVulnerability in advisory.Vulnerabilities?.Edges?.Select(e => e.Node) ?? Enumerable.Empty<SecurityVulnerability>())
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace NuGet.Services.Entities
5+
{
6+
/// <summary>
7+
/// Specifies the type of the readme file used in the package
8+
/// </summary>
9+
public enum EmbeddedReadmeFileType
10+
{
11+
/// <summary>
12+
/// Indicates that the package has no embedded readme file.
13+
/// </summary>
14+
Absent = 0,
15+
16+
/// <summary>
17+
/// Indicates that the embedded readme file is markdown.
18+
/// </summary>
19+
Markdown = 1,
20+
}
21+
}

src/NuGet.Services.Entities/NuGet.Services.Entities.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
</ItemGroup>
4949
<ItemGroup>
5050
<Compile Include="AccountDelete.cs" />
51+
<Compile Include="EmbeddedReadmeFileType.cs" />
5152
<Compile Include="CredentialRevocationSource.cs" />
5253
<Compile Include="Certificate.cs" />
5354
<Compile Include="Constants.cs" />

src/NuGet.Services.Entities/Package.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,5 +285,7 @@ public bool HasReadMe
285285
/// A flag that indicates that the package metadata had an embedded icon specified.
286286
/// </summary>
287287
public bool HasEmbeddedIcon { get; set; }
288+
289+
public EmbeddedReadmeFileType EmbeddedReadmeType { get; set; }
288290
}
289291
}

0 commit comments

Comments
 (0)