-
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
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at #29207
$metaNodeOfFile = \OC::$server->getRootFolder()->get("meta/{$info->getId()}/v");
lib/public/IMetaData.php
Outdated
|
||
/** | ||
* This class provides avatar functionality | ||
* @since 6.0.0 |
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.
10.0.4 ?
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.
this class will go away ... dont worry
lib/public/IMetaData.php
Outdated
use OCP\Files\NotFoundException; | ||
|
||
/** | ||
* This class provides avatar functionality |
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.
not avatar
e4b2618
to
db5f0ce
Compare
@@ -149,7 +149,7 @@ function delete() { | |||
} | |||
|
|||
function getName() { | |||
return 'systemtags'; | |||
return 'systemtags poda thendi'; |
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.
???
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.
Removed. Got added to PR by mistake.
e74c028
to
d7afba9
Compare
lib/private/Files/Storage/Local.php
Outdated
@@ -441,4 +441,25 @@ public function moveFromStorage(\OCP\Files\Storage $sourceStorage, $sourceIntern | |||
return parent::moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath); | |||
} | |||
} | |||
|
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.
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.
|
|
||
/** @var array */ | ||
|
||
private $metaData; |
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.
unused
throw new Forbidden('Permission denied to create a folder'); | ||
} | ||
|
||
function getChild($name) { |
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.
name ignored?
/** | ||
* @return \OCP\Files\Node | ||
*/ | ||
public function getMetaNodeFolder() { |
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.
public?
* Create folder meta | ||
*/ | ||
public function createMetaNode() { | ||
$this->nodeFolder->getStorage()->mkdir('meta'); |
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.
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: