Skip to content

Share tags - #11383

Merged
LukasReschke merged 11 commits into
owncloud:masterfrom
ockham:share-tags2
Oct 16, 2014
Merged

LukasReschke merged 11 commits into
owncloud:masterfrom
ockham:share-tags2

Conversation

@ockham

@ockham ockham commented Oct 1, 2014

Copy link
Copy Markdown
Contributor

Supersedes #11351.

Comment thread lib/private/tagging/tagmapper.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

missing param $tableName

@ockham

ockham commented Oct 1, 2014

Copy link
Copy Markdown
Contributor Author

CCing @babelouest

Comment thread lib/private/tagging/tag.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why not name it owner? ;)

@MorrisJobke

Copy link
Copy Markdown
Contributor

I just read over the code. It looks good, but I need additional time to test against the mechanism.

@MorrisJobke

Copy link
Copy Markdown
Contributor

You maybe should explain (or point to the explaination) what are those types and backends. That would be nice.

@ockham

ockham commented Oct 1, 2014

Copy link
Copy Markdown
Contributor Author

The backend stuff is kinda tricky, I explained it in one commit in my contacts related PR:

Fix and re-activate Contact sharing backend.

While not needed for actual contacts sharing (which is solely done via
the Addressbook sharing backend), we need its isValidSource() function
in core's \OC\Tags::getIdsForTag() (which implements \OCP\ITags::getIdsForTag()).
It is required there to test if the items that are tagged with a given
tag are actually allowed to be accessed by the user, i.e. owned by the
user or someone who is sharing it with the user.

Does that make it clearer?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@ockham your sql statements are invalid on postgres and oracle - please have a look: https://ci.owncloud.org/job/pull-request-analyser/7675/console

In case you need support on this feel free to get in touch with me - THX

Comment thread lib/private/tagging/tag.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The user needs to be passed in, either through the constructor or the method, but Id prefer getDisplayName($userName), but I'm unsure if it is a good idea to do this in the backend. IMHO this belongs to the frontend

@MorrisJobke

Copy link
Copy Markdown
Contributor

Today was a PR merged, that fixed the unit tests on master. Can I ask you to rebase your branch on top of this?

@ockham

ockham commented Oct 13, 2014

Copy link
Copy Markdown
Contributor Author

@MorrisJobke ok, one moment

@ockham

ockham commented Oct 13, 2014

Copy link
Copy Markdown
Contributor Author

Wait a second, aren't those failures due to some CI server's full hard disk?

@MorrisJobke

Copy link
Copy Markdown
Contributor

@ockham THey were fixed today.

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 20 new issues, 20 updated code elements

@MorrisJobke

Copy link
Copy Markdown
Contributor

@ockham Usually you don't need to say "retest this" as jenkins will notice changes (if you push to a branch) So the retest was just used to test even if there was no change (regarding the commit sha sum of the last test) and somehow the jenkins infrastructure was fixed in the meantime (as this caused the false negative)

@MorrisJobke

Copy link
Copy Markdown
Contributor

@DeepDiver1975 Looks like a problem with the filesystem:


Generating code coverage report in HTML format ...PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Could not write to coverage-html-sqlite/index.dashboard.html: failed to open stream: Read-only file system' in /usr/share/php/Text/Template.php:164

@LukasReschke

Copy link
Copy Markdown
Contributor

@MorrisJobke We're on it.

@MorrisJobke

Copy link
Copy Markdown
Contributor

@LukasReschke Thanks

@ockham

ockham commented Oct 15, 2014

Copy link
Copy Markdown
Contributor Author

Review, please?
Pinging @Raydiation @DeepDiver1975

@ockham

ockham commented Oct 15, 2014

Copy link
Copy Markdown
Contributor Author

CC'in @jancborchardt

@ghost

ghost commented Oct 15, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/259/
🚀 Test PASSed. 🚀

@LukasReschke

Copy link
Copy Markdown
Contributor

Well, let's make @ockham happy: 👍

LukasReschke added a commit that referenced this pull request Oct 16, 2014
@LukasReschke
LukasReschke merged commit 5f3ddf5 into owncloud:master Oct 16, 2014
@LukasReschke

Copy link
Copy Markdown
Contributor

Merging as @MorrisJobke also 👍'd this before.

@ockham Thanks a lot for your contribution! - You rock!

@ockham
ockham deleted the share-tags2 branch October 23, 2014 20:42
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants