-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat(server): Nullable asset dates #15669
Conversation
f5f4059
to
52ba6fa
Compare
bc9702a
to
50de167
Compare
3a1c659
to
3723484
Compare
3723484
to
fd823d2
Compare
fd823d2
to
3b4276f
Compare
…/nullable-dates
71fc410
to
e213a74
Compare
053b814
to
52d2206
Compare
…/nullable-dates
52d2206
to
0222ef6
Compare
…/nullable-dates
7034792
to
32dc64f
Compare
3843642
to
a9ce302
Compare
a9ce302
to
c3c6ba6
Compare
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.
LGTM
if (!asset.fileCreatedAt) { | ||
asset.fileCreatedAt = stats.mtime; | ||
} | ||
|
||
if (!asset.fileModifiedAt) { | ||
asset.fileModifiedAt = stats.mtime; | ||
} |
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.
What's this for?
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.
External assets :)
Since they are imported by the library service with null dates, this is where they become non-null.
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.
LGTM. Might need @mertalev to comment on any performance implications by this change.
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.
LGTM, I don't see anything problematic with this change
Allow fileCreatedAt, fileModifiedAt, localDateTime to be null, making them placeholders before metadata extraction runs
No dtos have changed, so clients don't need to be updated