-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[PM-22450] Bump Collection.RevisionDate on edits and access changes #7380
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
Changes from all commits
8d67715
a330cd6
59a90c6
4ee23dd
0a7c65f
e878ae2
48d9e7c
2cc7800
2aafad2
ab54a70
4d80849
7206101
1f9ae7b
0e81b49
1bd19cb
dabb672
4948c15
7ae69c9
7b39459
c3cf999
7de27a9
a308ef2
d339457
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -16,7 +16,7 @@ public class Group : ITableObject<Guid>, IExternal | |||
| [MaxLength(300)] | ||||
| public string? ExternalId { get; set; } | ||||
| public DateTime CreationDate { get; internal set; } = DateTime.UtcNow; | ||||
| public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow; | ||||
| public DateTime RevisionDate { get; set; } = DateTime.UtcNow; | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π¨ SUGGESTED: The Consider keeping
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is wrong, Claude. I had to make the set public because otherwise on
RevisionDate with the given value and defaults to DateTime.UtcNow. I noticed this because the tests would fail.
|
||||
|
|
||||
| public void SetNewId() | ||||
| { | ||||
|
|
||||
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.
The repository serializes/deserializes the entity for the sproc call, and the internal set prevented
RevisionDatefrom being set, causing the value to be lost. Making it public fixes that.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.
I also saw that only some entities have an internal set. I'm not sure why we have that inconsistency.