Skip to content

Commit ba69320

Browse files
authored
Merge pull request #9027 from NuGet/dev
[ReleasePrep] RI dev to main
2 parents deb2fe7 + ac15859 commit ba69320

28 files changed

Lines changed: 143 additions & 204 deletions

File tree

src/AccountDeleter/EmptyFeatureFlagService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ public bool IsDisplayVulnerabilitiesEnabled()
8686
throw new NotImplementedException();
8787
}
8888

89-
public bool IsDotnet20BannerEnabled()
90-
{
91-
throw new NotImplementedException();
92-
}
93-
9489
public bool IsForceFlatContainerIconsEnabled()
9590
{
9691
throw new NotImplementedException();

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

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

src/Bootstrap/less/theme/common-supported-frameworks.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
@table-product-width: 232px;
44

55
.framework {
6-
font-family: Segoe UI;
76
font-size: 14px;
87
line-height: 20px;
98
}

src/Bootstrap/less/theme/page-home.less

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -14,67 +14,6 @@
1414
margin-top: 32px;
1515
}
1616

17-
.dotnet-20-banner {
18-
.dotnet-20-image {
19-
position: absolute;
20-
top: 0;
21-
left: 0;
22-
height: 100%;
23-
width: 100%;
24-
25-
img {
26-
height: 100%;
27-
width: 100%;
28-
object-fit: cover;
29-
background-color: #000;
30-
}
31-
}
32-
33-
.container {
34-
.row {
35-
color: white;
36-
37-
@media (max-width: @screen-md-max) {
38-
margin-top: 48px;
39-
margin-bottom: 48px;
40-
}
41-
42-
@media (min-width: @screen-md-max) {
43-
margin-top: 144px;
44-
margin-bottom: 144px;
45-
}
46-
47-
.banner-text {
48-
backdrop-filter: blur(2px);
49-
50-
h2 {
51-
margin-top: 0px;
52-
font-weight: 600;
53-
}
54-
55-
h3 {
56-
margin-top: 0px;
57-
font-weight: 400;
58-
}
59-
60-
a {
61-
padding: 5px 12px 5px 12px;
62-
border: 1px solid white;
63-
color: white;
64-
font-weight: 600;
65-
}
66-
67-
a:focus {
68-
outline-color: #fff;
69-
outline-style: dashed;
70-
outline-width: 2px;
71-
outline-offset: 3px;
72-
}
73-
}
74-
}
75-
}
76-
}
77-
7817
.what-is-nuget {
7918
font-size: 1.15em;
8019
padding-bottom: 75px;

src/GitHubVulnerabilities2Db/Fakes/FakeFeatureFlagService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,5 @@ public bool IsRecentPackagesNoIndexEnabled()
274274
{
275275
throw new NotImplementedException();
276276
}
277-
278-
public bool IsDotnet20BannerEnabled()
279-
{
280-
throw new NotImplementedException();
281-
}
282277
}
283278
}

src/NuGetGallery.Core/Frameworks/NuGetFrameworkExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ public static class NuGetFrameworkExtensions
1111
{
1212
public static string GetBadgeVersion(this NuGetFramework framework)
1313
{
14+
if (framework.Version == FrameworkConstants.EmptyVersion)
15+
{
16+
return string.Empty;
17+
}
18+
1419
var builder = new StringBuilder();
1520
builder.Append(framework.Version.Major);
1621
builder.Append(".");

src/NuGetGallery.Core/Packaging/PackageMetadata.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,22 @@ public static PackageMetadata FromNuspecReader(NuspecReader nuspecReader, bool s
284284
}
285285
}
286286

287-
return new PackageMetadata(
287+
var packageMetadata = new PackageMetadata(
288288
nuspecReader.GetMetadata().ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
289289
nuspecReader.GetDependencyGroups(useStrictVersionCheck: strict),
290290
nuspecReader.GetFrameworkAssemblyGroups(),
291291
nuspecReader.GetPackageTypes(),
292292
nuspecReader.GetMinClientVersion(),
293293
nuspecReader.GetRepositoryMetadata(),
294294
nuspecReader.GetLicenseMetadata());
295+
296+
// Fix null or empty description values for reflowed packages
297+
if (!strict)
298+
{
299+
packageMetadata.Description = packageMetadata.Description ?? string.Empty;
300+
}
301+
302+
return packageMetadata;
295303
}
296304

297305
private class StrictNuspecReader : NuspecReader

src/NuGetGallery.Services/Configuration/FeatureFlagService.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public class FeatureFlagService : IFeatureFlagService
4040
private const string GravatarProxyEnSubdomainFeatureName = GalleryPrefix + "GravatarProxyEnSubdomain";
4141
private const string ODataCacheDurationsFeatureName = GalleryPrefix + "ODataCacheDurations";
4242
private const string ShowEnable2FADialog = GalleryPrefix + "ShowEnable2FADialog";
43-
private const string ShowDotnet20Banner = GalleryPrefix + "ShowDotnet20Banner";
4443
private const string Get2FADismissFeedback = GalleryPrefix + "Get2FADismissFeedback";
4544
private const string PackageRenamesFeatureName = GalleryPrefix + "PackageRenames";
4645
private const string PatternSetTfmHeuristicsFeatureName = GalleryPrefix + "PatternSetTfmHeuristics";
@@ -229,11 +228,6 @@ public bool IsShowEnable2FADialogEnabled()
229228
return _client.IsEnabled(ShowEnable2FADialog, defaultValue: false);
230229
}
231230

232-
public bool IsDotnet20BannerEnabled()
233-
{
234-
return _client.IsEnabled(ShowDotnet20Banner, defaultValue: false);
235-
}
236-
237231
public bool IsGet2FADismissFeedbackEnabled()
238232
{
239233
return _client.IsEnabled(Get2FADismissFeedback, defaultValue: false);

src/NuGetGallery.Services/Configuration/IFeatureFlagService.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,5 @@ public interface IFeatureFlagService
291291
/// Whether or not recent packages has no index applied to block search engine indexing.
292292
/// </summary>
293293
bool IsRecentPackagesNoIndexEnabled();
294-
295-
/// <summary>
296-
/// Whether to show the banner announcing .NET's 20 year celebration.
297-
/// </summary>
298-
/// <returns></returns>
299-
bool IsDotnet20BannerEnabled();
300294
}
301295
}

src/NuGetGallery/App_Data/Files/Content/flags.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"NuGetGallery.ImageAllowlist": "Enabled",
3333
"NuGetGallery.ShowReportAbuseSafetyChanges": "Enabled",
3434
"NuGetGallery.ComputeTargetFramework": "Enabled",
35-
"NuGetGallery.ShowDotnet20Banner": "Enabled"
3635
},
3736
"Flights": {
3837
"NuGetGallery.TyposquattingFlight": {

0 commit comments

Comments
 (0)