Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dynamic Text Template infrastructure. #16754

Merged
merged 7 commits into from
Jun 13, 2023
Merged

Add Dynamic Text Template infrastructure. #16754

merged 7 commits into from
Jun 13, 2023

Conversation

maliming
Copy link
Member

@maliming maliming commented Jun 5, 2023

Breaking change: LocalizationResource(Type) of TemplateDefinition class is changed to LocalizationResourceName(string)

@maliming maliming added this to the 7.4-preview milestone Jun 5, 2023
@maliming maliming marked this pull request as ready for review June 7, 2023 08:47
@maliming maliming marked this pull request as ready for review June 7, 2023 09:36
@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #16754 (cdabb5a) into dev (1863a61) will increase coverage by 0.01%.
The diff coverage is 84.24%.

@@            Coverage Diff             @@
##              dev   #16754      +/-   ##
==========================================
+ Coverage   53.47%   53.48%   +0.01%     
==========================================
  Files        2976     2981       +5     
  Lines       92124    92225     +101     
==========================================
+ Hits        49263    49329      +66     
- Misses      42861    42896      +35     
Impacted Files Coverage Δ
...Volo/Abp/TextTemplating/TemplateContentProvider.cs 85.04% <0.00%> (ø)
...Templating/Razor/DefaultAbpCompiledViewProvider.cs 95.45% <33.33%> (-4.55%) ⬇️
...olo/Abp/TextTemplating/AbpTextTemplatingOptions.cs 91.66% <50.00%> (-8.34%) ⬇️
...tTemplating/NullIDynamicTemplateDefinitionStore.cs 72.72% <72.72%> (ø)
...lating/VirtualFiles/TemplateContentFileProvider.cs 72.72% <72.72%> (ø)
...bp/TextTemplating/StaticTemplateDefinitionStore.cs 82.97% <82.97%> (ø)
...lo/Abp/TextTemplating/TemplateDefinitionManager.cs 91.66% <93.33%> (-4.34%) ⬇️
...ore/Volo/Abp/TextTemplating/AbpTemplateRenderer.cs 85.71% <100.00%> (ø)
...Core/Volo/Abp/TextTemplating/TemplateDefinition.cs 90.47% <100.00%> (+0.73%) ⬆️
.../Abp/TextTemplating/TemplateRenderingEngineBase.cs 100.00% <100.00%> (ø)
... and 9 more

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more


[NotNull]
IReadOnlyList<TemplateDefinition> GetAll();
Task<IReadOnlyList<TemplateDefinition>> GetAllAsync();

[CanBeNull]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
[CanBeNull]
[ItemCanBeNull]

@@ -1,16 +1,17 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using JetBrains.Annotations;

namespace Volo.Abp.TextTemplating;

public interface ITemplateDefinitionManager
{
[NotNull]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
[NotNull]
[ItemNotNull]

using JetBrains.Annotations;

namespace Volo.Abp.TextTemplating;

public interface ITemplateDefinitionManager
{
[NotNull]
TemplateDefinition Get([NotNull] string name);
Task<TemplateDefinition> GetAsync([NotNull] string name);

[NotNull]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
[NotNull]
[ItemNotNull]

@hikalkan hikalkan merged commit 619d78d into dev Jun 13, 2023
5 checks passed
@hikalkan hikalkan deleted the text-template branch June 13, 2023 06:14
@hikalkan
Copy link
Member

hikalkan commented Jun 13, 2023

I will do the changes, no problem. Can you please create a migration guide and write that change for 7.4.

@maliming
Copy link
Member Author

I will do the changes, no problem. Can you please create a migration guide and write that change for 7.4.

ok.

@maliming maliming mentioned this pull request Jun 13, 2023
@EngincanV EngincanV mentioned this pull request Aug 10, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants