Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Use existing file metadata for created and modified dates#1217

Merged
kazup01 merged 3 commits into
BoostIO:masterfrom
SCdF:use-file-metadata-on-import
Dec 16, 2017
Merged

Use existing file metadata for created and modified dates#1217
kazup01 merged 3 commits into
BoostIO:masterfrom
SCdF:use-file-metadata-on-import

Conversation

@SCdF

@SCdF SCdF commented Dec 1, 2017

Copy link
Copy Markdown
Contributor

NB: this definitely works on OSX. Other operating systems may have
slightly different interpretations of (eg) birthtime.

See: https://nodejs.org/api/fs.html#fs_class_fs_stats

@kazup01 kazup01 requested a review from sota1235 December 2, 2017 02:24
@kazup01 kazup01 added the awaiting review ❇️ Pull request is awaiting a review. label Dec 7, 2017
@sota1235

Copy link
Copy Markdown
Contributor

@kazup01 Could you check whether this PR works on windows? If it works, it's ok

@sota1235 sota1235 requested review from kazup01 and removed request for sota1235 December 13, 2017 15:19
@kazup01

kazup01 commented Dec 13, 2017

Copy link
Copy Markdown
Member

@sota1235 Sure. I will check it tomorrow.

@sota1235 sota1235 removed their assignment Dec 13, 2017
@kazup01 kazup01 added awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. and removed awaiting review ❇️ Pull request is awaiting a review. labels Dec 14, 2017
@kazup01

kazup01 commented Dec 14, 2017

Copy link
Copy Markdown
Member

Hi @SCdF ,

An error occurs in the following procedure.

  • Select note in the note list
  • Move note to another folder with drag and drop
  • The number of notes is not counted in the number next to folder name
  • An error occurs when selecting another note.

Attach gif and errors in the console.

dec-14-0029 13-16-21

screen shot 0029-12-14 at 1 16 59 pm

SCdF added 3 commits December 14, 2017 13:13
NB: this definintely works on OSX. Other operating systems may have
slightly different interpretations of birthtime.

See: https://nodejs.org/api/fs.html#fs_class_fs_stats
 - Respects the dates that may be in input over default dates
 - Respects key and storage over what might be in input
@SCdF SCdF force-pushed the use-file-metadata-on-import branch from 93669ea to 745d250 Compare December 14, 2017 13:16
@SCdF

SCdF commented Dec 14, 2017

Copy link
Copy Markdown
Contributor Author

Nice catch! I didn't realise createNote is involved when you move notes. This has happened because I flipped the order of an Object assign to prioritise calculated dates over default "now" ones.

I've rejigged it so that it this is no longer a problem.

@kazup01 kazup01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@kazup01 kazup01 merged commit 0cc9f00 into BoostIO:master Dec 16, 2017
@kazup01

kazup01 commented Dec 16, 2017

Copy link
Copy Markdown
Member

Merged. Thanks @SCdF ;)

@kazup01 kazup01 added next release (v0.8.19) and removed awaiting changes 🖊️ Pull request has been reviewed, but contributor needs to make changes. Next Release labels Dec 16, 2017
@kohei-takata kohei-takata mentioned this pull request Dec 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants