-
Notifications
You must be signed in to change notification settings - Fork 21
Add email service support for the symbols. #560
Conversation
private string GalleryPackageUrl(Package package) => string.Format(_emailConfiguration.PackageUrlTemplate, package.PackageRegistration.Id, package.NormalizedVersion); | ||
private string PackageSupportUrl(Package package) => string.Format(_emailConfiguration.PackageSupportTemplate, package.PackageRegistration.Id, package.NormalizedVersion); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is renamed to PackageMessageService and moved under MessageService/PackageMessageService.cs
await _coreMessageService.SendValidationTakingTooLongNoticeAsync(package, GalleryPackageUrl(package.PackageRegistration.Id, package.NormalizedVersion)); | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not new code but the file was renamed and changed its location.
@@ -112,7 +112,7 @@ | |||
<Version>2.28.0</Version> | |||
</PackageReference> | |||
<PackageReference Include="NuGetGallery.Core"> | |||
<Version>4.4.5-master-37818</Version> | |||
<Version>4.4.4-dev-40792</Version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be changed to a master version before submit.
@@ -23,7 +23,7 @@ | |||
<dependency id="NuGet.Services.Storage" version="2.28.0" /> | |||
<dependency id="NuGet.Services.Validation" version="2.28.0" /> | |||
<dependency id="NuGet.Services.Validation.Issues" version="2.28.0" /> | |||
<dependency id="NuGetGallery.Core" version="4.4.5-master-37818" /> | |||
<dependency id="NuGetGallery.Core" version="4.4.4-dev-40792" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be changed to a master version before submit.
|
||
namespace NuGet.Services.Validation.Orchestrator | ||
{ | ||
//ToDo: https://github.com/NuGet/NuGetGallery/issues/6255 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
} | ||
|
||
public string GalleryPackageUrl(string packageId, string packageNormalizedVersion) => string.Format(EmailConfiguration.PackageUrlTemplate, packageId, packageNormalizedVersion); | ||
public string PackageSupportUrl(string packageId, string packageNormalizedVersion) => string.Format(EmailConfiguration.PackageSupportTemplate, packageId, packageNormalizedVersion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For PackageMessageService
, this is included in the service class. Can we be consistent w/ which pattern we use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was removed from there. They are both(PackageMessageService and SymbolsPackageMessageService) follow the same pattern.
<Compile Include="Symbols\SymbolScanOnlyConfiguration.cs" /> | ||
<Compile Include="Symbols\SymbolCriteriaEvaluator.cs" /> | ||
<Compile Include="Symbols\SymbolScanValidator.cs" /> | ||
<Compile Include="PackageSigning\Scan\ScanValidator.cs" /> | ||
<Compile Include="Services\IEntityService.cs" /> | ||
<Compile Include="IMessageService.cs" /> | ||
<Compile Include="MessageService\IMessageService.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not put these under "Orchestrator/Services"? More consistent w/ what we do in Gallery.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved.
@@ -93,7 +93,7 @@ private void ConfigureDatabaseServices(IServiceCollection services) | |||
services.AddScoped<IEntitiesContext>(p => | |||
{ | |||
var connectionFactory = p.GetRequiredService<ISqlConnectionFactory<GalleryDbConfiguration>>(); | |||
var connection = connectionFactory.CreateAsync().GetAwaiter().GetResult(); | |||
System.Data.Common.DbConnection connection = connectionFactory.CreateAsync().GetAwaiter().GetResult(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we add using?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
@@ -45,6 +45,7 @@ | |||
<Compile Include="Configuration\ConfigurationValidatorFacts.cs" /> | |||
<Compile Include="Configuration\CoreMessageServiceConfigurationFacts.cs" /> | |||
<Compile Include="Configuration\TopologicalSortFacts.cs" /> | |||
<Compile Include="SymbolsMessageServiceFacts.cs" /> | |||
<Compile Include="MessageServiceFacts.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put these in the same directories as the runtime source? i.e., "Orchestrator.Tests/MessageService" (or "Orchestrator.Tests/Services" if you change it...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
* Add message support for symbols.
Add email service support for the symbols.