[WIP] Introducing metadata collections in dav#29214
Conversation
0bb390a to
4d80d3f
Compare
| * | ||
| * @param array $principalInfo | ||
| */ | ||
| public function __construct($principalInfo, IMetaData $metaData) { |
There was a problem hiding this comment.
there should be no principalInfo here - this collection is not user based
| use Sabre\DAVACL\AbstractPrincipalCollection; | ||
| use Sabre\DAVACL\IPrincipal; | ||
|
|
||
| class RootCollection extends AbstractPrincipalCollection { |
There was a problem hiding this comment.
no principal collection - there is no user involved.
we want 'meta/$fileid/v' not 'meta/$user/$fileId/v
| * @return MetaDataHome | ||
| */ | ||
| function getChildForPrincipal(array $principalInfo) { | ||
| $metaData = \OC::$server->getMetaData(); |
There was a problem hiding this comment.
Please have a look at #29207
$metaNodeOfFile = \OC::$server->getRootFolder()->get("meta/{$info->getId()}/v");|
|
||
| /** | ||
| * This class provides avatar functionality | ||
| * @since 6.0.0 |
There was a problem hiding this comment.
this class will go away ... dont worry
| use OCP\Files\NotFoundException; | ||
|
|
||
| /** | ||
| * This class provides avatar functionality |
e4b2618 to
db5f0ce
Compare
There was a problem hiding this comment.
Removed. Got added to PR by mistake.
e74c028 to
d7afba9
Compare
There was a problem hiding this comment.
TODO:
- try to move this to class Common
00f9a6d to
ef5676f
Compare
b9ba5c5 to
f7b6cb4
Compare
Codecov Report
@@ Coverage Diff @@
## master #29214 +/- ##
============================================
+ Coverage 59.56% 59.59% +0.02%
- Complexity 17156 17291 +135
============================================
Files 1029 1038 +9
Lines 57211 57529 +318
============================================
+ Hits 34076 34282 +206
- Misses 23135 23247 +112
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
as discussed - meta sub tree is read only
846fe03 to
dd16f79
Compare
ce1c776 to
de41350
Compare
This change is to have metadata collection in dav app. This will help users to: 1) Create fileid with a UUID 2) Create subfolder "p" inside "meta" folder 3) Create subfolder "v" inside "meta" folder The "p" folder stands for preview and "v" folder stands for version. Signed-off-by: Sujith H <sharidasan@owncloud.com>
de41350 to
d9f799d
Compare
|
closing this in favor of #29281 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This change is to have metadata collection
in dav app. This will help users to:
The "p" folder stands for preview and "v"
folder stands for version.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
Lets focus on versions for now
Related Issue
Todo
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: