[Registry-dev] deleting tags
Chathura C. Ekanayake
chathura at wso2.com
Fri Apr 25 01:08:38 PDT 2008
There is a requirement from the Mashup team for admin users to be able
to remove tags done by all users. This is not possible with the current
implementation, as it only removes the tag done by the admin user.
We can change the "void removeTag(String path, String tag)"
implementation to remove all instances of the "tag" on resource at
"path", if the current user is admin (or a user in admin role). I think
it is acceptable allow admin to remove tags done by all users.
Thoughts...
Thanks,
Chathura
Chathura C. Ekanayake wrote:
>
> I modified the removeTag(...) method as discussed in this thread. Now
> it removes all taggings with the given tag, if the current user is the
> author of the resource.
> If current user is not the author of the resource, it only removes the
> tagging done by the current user.
>
> Thanks,
> Chathura
>
> Glen Daniels wrote:
>> Sanjiva Weerawarana wrote:
>>> I don't grok the "remove all instances of that tag from all users" bit.
>>>
>>> Is this like a way to remove a "bad" tag (say "xxx") which may have
>>> been applied by other users on a resource I own?
>>
>> Yep - it's me saying "I don't want this tag on my thing" for any
>> reason whatsoever. The way it is now, you'd need to remove each
>> individual user's use of that tag before it would disappear. With
>> the new API I proposed, you just remove the tag and it's gone, which
>> is the way Flickr works.
>>
>>> +1 for Jonathan's comment that removing all tags is YAGNI.
>>
>> Good by me.
>>
>> --Glen
>>
>> _______________________________________________
>> Registry-dev mailing list
>> Registry-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>
>
>
> _______________________________________________
> Registry-dev mailing list
> Registry-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>
More information about the Registry-dev
mailing list