fix(file-backend): return correct last modified in head object#861
fix(file-backend): return correct last modified in head object#861ferhatelmas merged 1 commit intomasterfrom
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughSummary by CodeRabbit
WalkthroughReplaced internal lastModified computation in the file backend to use the filesystem modification time ( Assessment against linked issues
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/test/file-backend.test.ts (1)
191-215: UsewithOptionalVersionto avoid hardcoding the file layout.This keeps the test resilient if the versioning path format changes.
♻️ Proposed change
- const filePath = path.join(tmpDir, `${bucket}/${key}/${version}`) + const filePath = path.join(tmpDir, withOptionalVersion(`${bucket}/${key}`, version))
Pull Request Test Coverage Report for Build 22154238163Details
💛 - Coveralls |
371a425 to
0c62610
Compare
closes #858 Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
0c62610 to
19d84d9
Compare
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
last modified is wrong for head object in file backend
What is the new behavior?
last modified is correct as in get object
Additional context
closes #858
simplify date construction as well