Skip to content

Commit 0e29b4f

Browse files
author
Bart Koelman
committed
Added marker to our TODOs
1 parent 1cc2278 commit 0e29b4f

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

src/JsonApiDotNetCore/Repositories/EntityFrameworkCoreRepository.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using Microsoft.EntityFrameworkCore.Metadata;
1717
using Microsoft.Extensions.Logging;
1818

19-
// TODO: Tests that cover relationship updates with required relationships. All relationships right now are currently optional.
19+
// TODO: @ThisPR Tests that cover relationship updates with required relationships. All relationships right now are currently optional.
2020
// - Setting a required relationship to null
2121
// - Creating resource with resource
2222
// - One-to-one required / optional => what is the current behavior?
@@ -189,7 +189,7 @@ public virtual async Task AddToToManyRelationshipAsync(TId primaryId, ISet<IIden
189189
await UpdateRelationshipAsync(relationship, primaryResource, secondaryResourceIds);
190190
await SaveChangesAsync();
191191

192-
// TODO: Do we need to flush cache here?
192+
// TODO: @ThisPR Do we need to flush cache here?
193193
}
194194
}
195195

@@ -251,7 +251,7 @@ public virtual async Task SetRelationshipAsync(TResource primaryResource, object
251251
await UpdateRelationshipAsync(relationship, primaryResource, secondaryResourceIds);
252252
await SaveChangesAsync();
253253

254-
// TODO: Do we need to flush cache here?
254+
// TODO: @ThisPR Do we need to flush cache here?
255255
}
256256

257257
/// <inheritdoc />
@@ -298,7 +298,7 @@ public virtual async Task DeleteAsync(TId id)
298298
_dbContext.Remove(resource);
299299
await SaveChangesAsync();
300300

301-
// TODO: Do we need to flush cache here?
301+
// TODO: @ThisPR Do we need to flush cache here?
302302
}
303303

304304
private NavigationEntry GetNavigationEntry(TResource resource, RelationshipAttribute relationship)
@@ -352,7 +352,7 @@ public virtual async Task RemoveFromToManyRelationshipAsync(TResource primaryRes
352352
await UpdateRelationshipAsync(relationship, primaryResource, rightResources);
353353
await SaveChangesAsync();
354354

355-
// TODO: Do we need to flush cache here?
355+
// TODO: @ThisPR Do we need to flush cache here?
356356
}
357357

358358
/// <inheritdoc />
@@ -483,7 +483,7 @@ private static object GetNonNullValueForProperty(PropertyInfo propertyInfo)
483483

484484
if (Nullable.GetUnderlyingType(propertyType) != null)
485485
{
486-
// TODO: Write test with primary key property type int? or equivalent.
486+
// TODO: @ThisPR Write test with primary key property type int? or equivalent.
487487
propertyType = propertyInfo.PropertyType.GetGenericArguments()[0];
488488
}
489489

src/JsonApiDotNetCore/Serialization/BaseDeserializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected virtual IIdentifiable SetRelationships(IIdentifiable resource, IDictio
120120
continue;
121121
}
122122

123-
// TODO: Extra validation to make sure there are no list-like data for HasOne relationships and vice versa (Write test)
123+
// TODO: @ThisPR Extra validation to make sure there are no list-like data for HasOne relationships and vice versa (Write test)
124124
if (attr is HasOneAttribute hasOneAttribute)
125125
{
126126
SetHasOneRelationship(resource, hasOneAttribute, relationshipData);

src/JsonApiDotNetCore/Services/JsonApiResourceService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace JsonApiDotNetCore.Services
1919
{
20-
// TODO: Add write operations to our documentation.
20+
// TODO: @ThisPR Add write operations to our documentation.
2121

2222
/// <inheritdoc />
2323
public class JsonApiResourceService<TResource, TId> :

test/JsonApiDotNetCoreExampleTests/Acceptance/ManyToManyTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace JsonApiDotNetCoreExampleTests.Acceptance
1212
{
13-
// TODO: Move left-over tests in this file.
13+
// TODO: @ThisPR Move left-over tests in this file.
1414

1515
public sealed class ManyToManyTests : IClassFixture<IntegrationTestContext<Startup, AppDbContext>>
1616
{

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/FetchingRelationshipsTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public async Task When_getting_existing_ToOne_relationship_it_should_succeed()
6060

6161
var json = JsonConvert.DeserializeObject<JObject>(body).ToString();
6262

63-
// TODO: links/related was removed from the expected response body here, which violates the json:api spec.
63+
// TODO: @ThisPR links/related was removed from the expected response body here, which violates the json:api spec.
6464

6565
string expected = @"{
6666
""links"": {

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/UpdatingRelationshipsTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace JsonApiDotNetCoreExampleTests.Acceptance.Spec
1515
{
16-
// TODO: Move left-over tests in this file.
16+
// TODO: @ThisPR Move left-over tests in this file.
1717

1818
public sealed class UpdatingRelationshipsTests : IClassFixture<IntegrationTestContext<Startup, AppDbContext>>
1919
{

test/JsonApiDotNetCoreExampleTests/IntegrationTests/Writing/RgbColor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public sealed class RgbColor : Identifiable<string>
88
[Attr]
99
public string DisplayName { get; set; }
1010

11-
// TODO: Change into required relationship and add a test that fails when trying to assign null.
11+
// TODO: @ThisPR Change into required relationship and add a test that fails when trying to assign null.
1212
[HasOne]
1313
public WorkItemGroup Group { get; set; }
1414
}

0 commit comments

Comments
 (0)