Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Add email service support for the symbols. #560

Merged
merged 8 commits into from
Oct 1, 2018
Merged

Conversation

cristinamanum
Copy link
Contributor

Add email service support for the symbols.

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);
}
}
Copy link
Contributor Author

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));
}
}
}
Copy link
Contributor Author

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>
Copy link
Contributor Author

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" />
Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed?

Copy link
Contributor Author

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);
Copy link
Member

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?

Copy link
Contributor Author

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" />
Copy link
Member

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.

Copy link
Contributor Author

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();
Copy link
Member

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?

Copy link
Contributor Author

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" />
Copy link
Member

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...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@cristinamanum cristinamanum merged commit 6c6da90 into dev Oct 1, 2018
@cristinamanum cristinamanum deleted the cmanuSymbolsMessages branch October 5, 2018 19:51
joelverhagen pushed a commit that referenced this pull request Oct 26, 2020
* Add message support for symbols.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants