-
Notifications
You must be signed in to change notification settings - Fork 2.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
Add versioning to objectstore #29607
Changes from all commits
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 |
---|---|---|
|
@@ -38,19 +38,17 @@ | |
parse: function(result) { | ||
var fullPath = this._fileInfo.getFullPath(); | ||
var fileId = this._fileInfo.get('id'); | ||
var results = _.map(result, function(version) { | ||
var revision = parseInt(version.id, 10); | ||
return _.map(result, function(version) { | ||
var revision = version.id; | ||
return { | ||
id: revision, | ||
name: revision, | ||
fullPath: fullPath, | ||
timestamp: revision, | ||
versionId: revision, | ||
timestamp: moment(new Date(version['{DAV:}getlastmodified'])).format('X'), | ||
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. oh, so was this broken in the other PR ? I missed it when testing the versions panel 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. no - for the regular versioning the revision is the timestamp and it worked. |
||
size: version['{DAV:}getcontentlength'], | ||
fileId: fileId | ||
}; | ||
}); | ||
return results; | ||
} | ||
}); | ||
|
||
|
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.
shouldn't it be
IVersionedStorage
here or whatever we called the interface ?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.
no Common implements IVersionedStorage - this is a temporal hack until versioning for regular storages is moved into Common