Skip to content

Commit 39bfced

Browse files
Release: 9.0.0 (#92)
* refactor: remove obsolete code (#90) * refactor: remove obsolete code * Empty Commit * Chore: Update Dependencies (#91) * chore: update nuget packages * chore: update github actions * feat: more logs (#74) log when transaction starts, commits, aborts * Chore: Update to .NET 7.0 (#107) * chore: switch to net7.0 i want to multi-target but it was giving me some problems.. will try to add net6.0 back at the end * chore: fix warnings * chore: update nuget packages * chore: update github actions * bugfix: cli parameter was changed * chore: move off of ::set-output
1 parent 952ef0e commit 39bfced

File tree

69 files changed

+1751
-3006
lines changed

Some content is hidden

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

69 files changed

+1751
-3006
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
- name: Checkout Repository
2323
uses: actions/checkout@v3
2424
- name: Install .NET SDK
25-
uses: actions/setup-dotnet@v2
25+
uses: actions/setup-dotnet@v3
2626
- name: Restore Dependencies
2727
run: dotnet restore EntityDb.sln --locked-mode
2828
- name: Run Project Tests
29-
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" -r ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
29+
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" --results-directory ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
3030
- name: Publish Coverage Results
3131
uses: codacy/codacy-coverage-reporter-action@v1
3232
with:

.github/workflows/dependabot-lockfiles-workaround.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/publish-beta.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
semantic_version_pattern='^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$'
2525
2626
if [[ ${GITHUB_MILESTONE} =~ $semantic_version_pattern ]]; then
27-
echo ::set-output name=is_semantic_version::'true'
27+
echo "is_semantic_version=true" >> $GITHUB_OUTPUT
2828
else
29-
echo ::set-output name=is_semantic_version::'false'
29+
echo "is_semantic_version=false" >> $GITHUB_OUTPUT
3030
fi
3131
beta:
3232
needs: milestone
@@ -38,17 +38,17 @@ jobs:
3838
- name: Checkout Repository
3939
uses: actions/checkout@v3
4040
- name: Install .NET SDK
41-
uses: actions/setup-dotnet@v2
41+
uses: actions/setup-dotnet@v3
4242
- name: Restore Dependencies
4343
run: dotnet restore EntityDb.sln --locked-mode
4444
- name: Run Project Tests
45-
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" -r ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
45+
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" --results-directory ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
4646
- name: Pack Projects into Nuget Packages
4747
run: dotnet pack EntityDb.sln --no-restore -c Release /p:Version='${{ needs.milestone.outputs.version }}-beta.${{ github.event.number }}.${{ github.run_number }}.${{ github.run_attempt }}'
4848
- name: Publish to Beta
4949
run: dotnet nuget push ./**/*.nupkg -s ${{ secrets.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }}
5050
- name: Packages & Symbols Artifact
51-
uses: actions/[email protected].0
51+
uses: actions/[email protected].1
5252
with:
5353
name: Packages & Symbols
5454
path: |
@@ -60,15 +60,15 @@ jobs:
6060
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
6161
coverage-reports: ./TestResults/**/*.xml
6262
- name: Generate Coverage Report
63-
uses: danielpalme/[email protected].9
63+
uses: danielpalme/[email protected].12
6464
with:
6565
reports: './TestResults/**/coverage.opencover.xml'
6666
targetdir: 'CoverageReport'
6767
reporttypes: 'HtmlInline'
6868
license: ${{ secrets.REPORTGENERATOR_LICENSE }}
6969
toolpath: 'reportgeneratortool'
7070
- name: Coverage Report Artifact
71-
uses: actions/[email protected].0
71+
uses: actions/[email protected].1
7272
with:
7373
name: CoverageReport
7474
path: CoverageReport

.github/workflows/publish-stable.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
version: ${{ steps.get_release.outputs.tag_name }}
1515
steps:
1616
- id: get_release
17-
uses: bruceadams/get-release@v1.2.3
17+
uses: bruceadams/get-release@v1.3.2
1818
env:
1919
GITHUB_TOKEN: ${{ github.token }}
2020
- id: parse
@@ -31,9 +31,9 @@ jobs:
3131
semantic_version_pattern='^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$'
3232
3333
if [[ ${GITHUB_TAG} =~ $semantic_version_pattern ]]; then
34-
echo ::set-output name=is_semantic_version::'true'
34+
echo "is_semantic_version=true" >> $GITHUB_OUTPUT
3535
else
36-
echo ::set-output name=is_semantic_version::'false'
36+
echo "is_semantic_version=false" >> $GITHUB_OUTPUT
3737
fi
3838
3939
stable:
@@ -46,7 +46,7 @@ jobs:
4646
- name: Checkout Repository
4747
uses: actions/checkout@v3
4848
- name: Install .NET SDK
49-
uses: actions/setup-dotnet@v2
49+
uses: actions/setup-dotnet@v3
5050
- name: Restore Dependencies
5151
run: dotnet restore EntityDb.sln --locked-mode
5252
- name: Run Project Tests
@@ -56,7 +56,7 @@ jobs:
5656
- name: Publish to Stable
5757
run: dotnet nuget push ./**/*.nupkg -s ${{ secrets.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }}
5858
- name: Packages & Symbols Artifact
59-
uses: actions/[email protected].0
59+
uses: actions/[email protected].1
6060
with:
6161
name: Packages & Symbols
6262
path: |

Directory.Build.props

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<Project>
2-
<!--Build-->
32
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
5-
<LangVersion>10.0</LangVersion>
3+
<TargetFramework>net7.0</TargetFramework>
64
<Nullable>enable</Nullable>
7-
<EnablePreviewFeatures>True</EnablePreviewFeatures>
85
<ImplicitUsings>enable</ImplicitUsings>
9-
</PropertyGroup>
6+
</PropertyGroup>
107

118
<ItemGroup>
129
<PackageReference Include="System.Linq.Async" Version="6.0.1" />

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.301",
3+
"version": "7.0.100",
44
"allowPrerelease": false,
55
"rollForward": "disable"
66
}

src/Directory.Build.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<Project>
22
<Import Project="../Directory.Build.props"/>
33

4-
<!--Build-->
54
<PropertyGroup>
65
<OutputType>Library</OutputType>
76
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
87
<GenerateDocumentationFile>true</GenerateDocumentationFile>
98
</PropertyGroup>
109

11-
<!--Pack-->
1210
<PropertyGroup>
1311
<IsPackable>true</IsPackable>
1412
<IncludeSymbols>true</IncludeSymbols>

src/EntityDb.Abstractions/Entities/IEntityRepository.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using EntityDb.Abstractions.Snapshots;
33
using EntityDb.Abstractions.Transactions;
44
using EntityDb.Abstractions.ValueObjects;
5-
using System.Diagnostics.CodeAnalysis;
65

76
namespace EntityDb.Abstractions.Entities;
87

@@ -22,23 +21,6 @@ public interface IEntityRepository<TEntity> : IDisposableResource
2221
/// </summary>
2322
ISnapshotRepository<TEntity>? SnapshotRepository { get; }
2423

25-
/// <ignore />
26-
[Obsolete("Please use GetSnapshot(...) instead. This method will be removed at a later date.")]
27-
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
28-
public Task<TEntity> GetCurrent(Id entityId, CancellationToken cancellationToken = default)
29-
{
30-
return GetSnapshot(entityId, cancellationToken);
31-
}
32-
33-
/// <ignore />
34-
[Obsolete("Please use GetSnapshot(...) instead. This method will be removed at a later date.")]
35-
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
36-
Task<TEntity> GetAtVersion(Id entityId, VersionNumber lteVersionNumber,
37-
CancellationToken cancellationToken = default)
38-
{
39-
return GetSnapshot(entityId + lteVersionNumber, cancellationToken);
40-
}
41-
4224
/// <summary>
4325
/// Returns the snapshot of a <typeparamref name="TEntity" /> for a given <see cref="Pointer" />.
4426
/// </summary>

src/EntityDb.Abstractions/Projections/IProjectionRepository.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using EntityDb.Abstractions.Snapshots;
33
using EntityDb.Abstractions.Transactions;
44
using EntityDb.Abstractions.ValueObjects;
5-
using System.Diagnostics.CodeAnalysis;
65

76
namespace EntityDb.Abstractions.Projections;
87

@@ -22,14 +21,6 @@ public interface IProjectionRepository<TProjection> : IDisposableResource
2221
/// </summary>
2322
ISnapshotRepository<TProjection>? SnapshotRepository { get; }
2423

25-
/// <ignore />
26-
[Obsolete("Please use GetSnapshot(...) instead. This method will be removed at a later date.")]
27-
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
28-
public Task<TProjection> GetCurrent(Id projectionId, CancellationToken cancellationToken = default)
29-
{
30-
return GetSnapshot(projectionId, cancellationToken);
31-
}
32-
3324
/// <summary>
3425
/// Returns the snapshot of a <typeparamref name="TProjection" /> for a given <see cref="Pointer" />.
3526
/// </summary>

src/EntityDb.Abstractions/Queries/FilterBuilders/IAgentSignatureFilterBuilder.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using EntityDb.Abstractions.ValueObjects;
2-
using System.Diagnostics.CodeAnalysis;
3-
using System.Linq.Expressions;
42

53
namespace EntityDb.Abstractions.Queries.FilterBuilders;
64

@@ -10,12 +8,6 @@ namespace EntityDb.Abstractions.Queries.FilterBuilders;
108
/// <typeparam name="TFilter">The type of filter used by the repository.</typeparam>
119
public interface IAgentSignatureFilterBuilder<TFilter> : IFilterBuilder<TFilter>
1210
{
13-
/// <ignore/>
14-
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
15-
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
16-
TFilter AgentSignatureMatches<TAgentSignature>(Expression<Func<TAgentSignature, bool>> agentSignatureExpression)
17-
=> throw new NotSupportedException();
18-
1911
/// <summary>
2012
/// Returns a <typeparamref name="TFilter" /> that only includes agentSignatures with any entity id which is contained
2113
/// in a set

0 commit comments

Comments
 (0)