Skip to content

Conversation

@etnoy
Copy link
Collaborator

@etnoy etnoy commented Jan 25, 2025

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

@etnoy etnoy force-pushed the feat/nullable-dates branch 3 times, most recently from f5f4059 to 52ba6fa Compare January 26, 2025 00:13
@etnoy etnoy force-pushed the feat/nullable-dates branch 4 times, most recently from bc9702a to 50de167 Compare January 26, 2025 22:35
@etnoy etnoy marked this pull request as ready for review January 26, 2025 22:45
@etnoy etnoy requested a review from danieldietzler as a code owner January 26, 2025 22:45
@etnoy etnoy force-pushed the feat/nullable-dates branch 2 times, most recently from 3a1c659 to 3723484 Compare January 27, 2025 22:33
@etnoy etnoy requested a review from mertalev as a code owner January 27, 2025 22:33
@github-actions github-actions bot added documentation Improvements or additions to documentation 📱mobile labels Jan 27, 2025
@etnoy etnoy force-pushed the feat/nullable-dates branch from 3723484 to fd823d2 Compare January 27, 2025 22:33
@etnoy etnoy force-pushed the feat/nullable-dates branch from fd823d2 to 3b4276f Compare January 27, 2025 22:39
@etnoy etnoy force-pushed the feat/nullable-dates branch 6 times, most recently from 71fc410 to e213a74 Compare January 28, 2025 02:51
@alextran1502 alextran1502 requested a review from jrasm91 January 28, 2025 03:55
@etnoy etnoy force-pushed the feat/nullable-dates branch 3 times, most recently from 053b814 to 52d2206 Compare February 2, 2025 17:45
@etnoy etnoy force-pushed the feat/nullable-dates branch from 52d2206 to 0222ef6 Compare February 2, 2025 22:24
@etnoy etnoy force-pushed the feat/nullable-dates branch 11 times, most recently from 7034792 to 32dc64f Compare February 6, 2025 00:34
@etnoy etnoy force-pushed the feat/nullable-dates branch 4 times, most recently from 3843642 to a9ce302 Compare February 7, 2025 20:22
@etnoy etnoy force-pushed the feat/nullable-dates branch from a9ce302 to c3c6ba6 Compare February 7, 2025 20:23
Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +165 to +171
if (!asset.fileCreatedAt) {
asset.fileCreatedAt = stats.mtime;
}

if (!asset.fileModifiedAt) {
asset.fileModifiedAt = stats.mtime;
}
Copy link
Member

Choose a reason for hiding this comment

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

What's this for?

Copy link
Collaborator Author

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.

Copy link
Member

@jrasm91 jrasm91 left a 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.

Copy link
Member

@mertalev mertalev left a 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

@alextran1502 alextran1502 merged commit 5407a28 into main Feb 13, 2025
36 checks passed
@alextran1502 alextran1502 deleted the feat/nullable-dates branch February 13, 2025 21:30
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.

6 participants