Skip to content

Commit 4622ebe

Browse files
authored
Merge pull request #5985 from NuGet/dev
[Deployment][2018.05.21]RI dev into master
2 parents e2318e4 + db760d2 commit 4622ebe

File tree

139 files changed

+22433
-11765
lines changed

Some content is hidden

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

139 files changed

+22433
-11765
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ tools/
3131
.nuget/EULA_Microsoft Visual Studio Team Services Credential Provider.docx
3232
.nuget/ThirdPartyNotices.txt
3333
AssemblyInfo.g.cs
34+
tests/Scripts/Config-*.json
3435

3536
# MSTest test Results
3637
[Tt]est[Rr]esult*/

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

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/modals.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@
9393
}
9494

9595
.transform-text {
96-
padding: 40px 15px;
96+
padding-top: 20px;
97+
padding-left: 15px;
98+
padding-right: 15px;
99+
padding-bottom: 40px;
97100
margin: 0px;
98101
}
99102
}

src/NuGetGallery.Core/Auditing/CloudAuditingService.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ public override string RenderAuditEntry(AuditEntry entry)
152152

153153
public override bool RecordWillBePersisted(AuditRecord auditRecord)
154154
{
155-
return auditRecord.GetType() == typeof(PackageAuditRecord);
155+
var packageAuditRecord = auditRecord as PackageAuditRecord;
156+
157+
return packageAuditRecord != null &&
158+
(packageAuditRecord.Action == AuditedPackageAction.Delete || packageAuditRecord.Action == AuditedPackageAction.SoftDelete);
156159
}
157160
}
158-
}
161+
}

src/NuGetGallery.Core/Authentication/NuGetClaims.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public static class NuGetClaims
3737
/// </summary>
3838
public const string ExternalLogin = ClaimsDomain + "externallogin";
3939

40+
/// <summary>
41+
/// The claim url for the claim that stores the list of associated external login identities.
42+
/// </summary>
43+
public const string ExternalCredentialIdenities = ClaimsDomain + "externalcredentialidentity";
44+
4045
/// <summary>
4146
/// The claim url for the claim that stores whether or not the user has enabled multi-factor authentication.
4247
/// </summary>

src/NuGetGallery.Core/CoreConstants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public static class CoreConstants
2020
public const string PackageContentType = "binary/octet-stream";
2121
public const string OctetStreamContentType = "application/octet-stream";
2222
public const string TextContentType = "text/plain";
23+
public const string CertificateContentType = "application/pkix-cert";
2324

2425
public const string UserCertificatesFolderName = "user-certificates";
2526
public const string ContentFolderName = "content";

src/NuGetGallery.Core/Entities/EntitiesContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ protected override void OnModelCreating(DbModelBuilder modelBuilder)
348348
.Property(c => c.Sha1Thumbprint)
349349
.HasMaxLength(40)
350350
.HasColumnType("varchar")
351-
.IsOptional();
351+
.IsRequired();
352352

353353
modelBuilder.Entity<UserCertificate>()
354354
.HasKey(uc => uc.Key);

src/NuGetGallery.Core/Services/CloudBlobCoreFileStorageService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ private static string GetContentType(string folderName)
446446
case CoreConstants.PackageReadMesFolderName:
447447
return CoreConstants.TextContentType;
448448

449+
case CoreConstants.UserCertificatesFolderName:
450+
return CoreConstants.CertificateContentType;
451+
449452
default:
450453
throw new InvalidOperationException(
451454
String.Format(CultureInfo.CurrentCulture, "The folder name {0} is not supported.", folderName));
Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
2-
"DiscontinuedForEmailAddresses": [
3-
4-
],
5-
"DiscontinuedForDomains": [
6-
"cannotUsePassword.com"
7-
],
8-
"ExceptionsForEmailAddresses": [
9-
10-
],
11-
"ForceTransformationToOrganizationForEmailAddresses": [
12-
13-
],
14-
"EnabledOrganizationAadTenants": [
15-
{
16-
"EmailDomain": "tenantOnly.com",
17-
"TenantId": "tenantID"
18-
}
19-
]
2+
"IsPasswordDiscontinuedForAll": false,
3+
"DiscontinuedForEmailAddresses": [
4+
5+
],
6+
"DiscontinuedForDomains": [
7+
"cannotUsePassword.com"
8+
],
9+
"ExceptionsForEmailAddresses": [
10+
11+
],
12+
"ForceTransformationToOrganizationForEmailAddresses": [
13+
14+
],
15+
"EnabledOrganizationAadTenants": [
16+
{
17+
"EmailDomain": "tenantOnly.com",
18+
"TenantId": "tenantID"
19+
}
20+
]
2021
}

src/NuGetGallery/App_Start/AppActivator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private static void BundlingPostStart()
198198
BundleTable.Bundles.Add(newScriptBundle);
199199

200200
var d3ScriptBundle = new ScriptBundle("~/Scripts/gallery/stats.min.js")
201-
.Include("~/Scripts/gallery/d3.v3.js")
201+
.Include("~/Scripts/d3/d3.js")
202202
.Include("~/Scripts/gallery/stats-perpackagestatsgraphs.js")
203203
.Include("~/Scripts/gallery/stats-dimensions.js");
204204
BundleTable.Bundles.Add(d3ScriptBundle);

0 commit comments

Comments
 (0)