Skip to content

OC_VCategories => OC\Tags. Public interface and getter in server container#4892

Merged
DeepDiver1975 merged 23 commits into
appframework-masterfrom
vcategories_public
Sep 25, 2013
Merged

OC_VCategories => OC\Tags. Public interface and getter in server container#4892
DeepDiver1975 merged 23 commits into
appframework-masterfrom
vcategories_public

Conversation

@tanghus

@tanghus tanghus commented Sep 17, 2013

Copy link
Copy Markdown
Contributor

Stripped VObject specific stuff out of the class to make it an all-purpose tagging lib.

An instance can be obtained by $server->getTagManager()->loadTagsFor('type');

@georgehrke @DeepDiver1975 @icewind1991 @karlitschek

@tanghus tanghus mentioned this pull request Sep 18, 2013
27 tasks
Comment thread lib/public/itags.php Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

addMultiple
addRange
addSet
???

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Neither are very good, but I'll expand it to addMultiple :)

@tanghus

tanghus commented Sep 19, 2013

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing and fixing @DeepDiver1975
I've updated to (most of) your suggestions and added two more tests.

@tanghus

tanghus commented Sep 19, 2013

Copy link
Copy Markdown
Contributor Author

Hmm, test passes locally.

@DeepDiver1975

Copy link
Copy Markdown
Member

@tanghus it's causing issues on Oracle

00:26:34.723 
00:26:40.016 Testing with oci ...
00:26:41.421 PHPUnit 3.7.21 by Sebastian Bergmann.
00:26:41.421 
00:26:41.421 Configuration read from /var/lib/jenkins/jobs/pull-request-analyser/workspace/tests/phpunit-autotest.xml
00:26:41.421 
00:26:41.429 ...............................................................  63 / 659 (  9%)
00:26:42.219 ............................................................... 126 / 659 ( 19%)
00:26:42.777 ....................S.......................................... 189 / 659 ( 28%)
00:28:19.234 ............................................................... 252 / 659 ( 38%)
00:28:33.069 ............................................................... 315 / 659 ( 47%)
00:28:39.506 ............................................................... 378 / 659 ( 57%)
00:28:49.138 ............................................................... 441 / 659 ( 66%)
00:28:49.490 ............................................................... 504 / 659 ( 76%)
00:28:50.840 ...SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS........................ 567 / 659 ( 86%)
00:28:54.189 ..............F................................................ 630 / 659 ( 95%)
00:29:02.563 .............................
00:29:02.724 
00:29:02.724 Time: 02:21, Memory: 38.75Mb
00:29:02.724 
00:29:02.724 There was 1 failure:
00:29:02.724 
00:29:02.724 1) Test_Tags::testIsEmpty
00:29:02.724 Failed asserting that true is false.

@tanghus

tanghus commented Sep 19, 2013

Copy link
Copy Markdown
Contributor Author

Freakin' Oracle. Nothing but trouble

@tanghus

tanghus commented Sep 19, 2013

Copy link
Copy Markdown
Contributor Author

Maybe if I don't catch the db exception, we can see what it's actually bitching about?

@DeepDiver1975

Copy link
Copy Markdown
Member

Maybe if I don't catch the db exception, we can see what it's actually bitching about?

let me see if I can find it in the server logs .....

@DeepDiver1975

Copy link
Copy Markdown
Member

as far as I can tell we have no exception or db error - might be related to the query?

Comment thread lib/tags.php

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@butonic can you please have a quick look? Why would that fail on Oracle? THX

Comment thread lib/public/itags.php

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@icewind1991 What is the correct way to do this with the new hooks system?

@ghost

ghost commented Sep 23, 2013

Copy link
Copy Markdown

Test passed.
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/1168/

@tanghus

tanghus commented Sep 24, 2013

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 Currently the manager class doesn't do anything else but instantiating objects, but that can change later if there's a need for caching them or smth.

@ghost

ghost commented Sep 24, 2013

Copy link
Copy Markdown

Test passed.
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/1192/

@tanghus

tanghus commented Sep 25, 2013

Copy link
Copy Markdown
Contributor Author

Any 👍 ? @DeepDiver1975 @georgehrke @bartv2
This change doesn't currently affect anything else than calendar and contacts.

@DeepDiver1975

Copy link
Copy Markdown
Member

👍

DeepDiver1975 added a commit that referenced this pull request Sep 25, 2013
OC_VCategories => OC\Tags. Public interface and getter in server container
@DeepDiver1975
DeepDiver1975 merged commit 469b309 into appframework-master Sep 25, 2013
@DeepDiver1975
DeepDiver1975 deleted the vcategories_public branch September 25, 2013 21:24
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants