Problem: Deleting categories with autorerange

Found a bug? Tell us!!
Post Reply
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Problem: Deleting categories with autorerange

Post by blog.brockha.us »

Oh man.. I deleted a category and was asked, what to do with the content of this category. I said: Move it to 'no category' (meaning: root).

After doing this, all subcategories of this category went away, too, and all articles were in 'no category'. I thougt that ALL content would be moved to the 'no category', meaning: Also the subcategories.. :( I think this habit should change in the future or at least a warning should be displayed, that all subcategories will also be deleted, if a category is deleted.

And: While creating all my subcategories again and assingning articles to it I was in desperate need of a filter showing all entries not having a category. This filter is not available yet..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem: Deleting categories with autorerange

Post by garvinhicking »

Hi!

But it's expected that all subcategories are deleted, if you delete a category, right? :) It's like warning people that their coffee might be hot. ;)

So if you move all content in "no category", all subcategories entries will be moved omtp "no category" as well, IMHO that's expected and logical behaviour?
And: While creating all my subcategories again and assingning articles to it I was in desperate need of a filter showing all entries not having a category. This filter is not available yet..
Phew. That sounds like a tricky SQL query. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Problem: Deleting categories with autorerange

Post by blog.brockha.us »

Well no.. (in my case).

I had this structure

Code: Select all

root
+ blog
  + Games
     + XBox
     + Wii
     + Playstation
  + Technics
  + Regular Stuff
+ tests
I wanted to get rid of the blog category but wanted to stay with all the subcategories. I only ordered to delete the category blog, not all subcategories. After s9y asked me, where to put the content in and I ordered "no category", I expected this situation:

Code: Select all

root
+ Games
   + XBox
   + Wii
   + Playstation
+ Technics
+ Regular Stuff
+ tests

If s9y is deleting subcategories I would like to be asked before. :-)
garvinhicking wrote:Phew. That sounds like a tricky SQL query. :)
Does it?
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem: Deleting categories with autorerange

Post by garvinhicking »

Hi!

Your expected situation would only happen when s9y could MOVE categories, and not delete them. So IMHO you are missing a MOVE feature, and not complaining about a buggy delete function, because it works as it would expected to be.

In your case, you should have EDITED a category and simply switched the parent-category to "MAIN" instead of "blog": :-))
garvinhicking wrote:Phew. That sounds like a tricky SQL query. :)
Does it?
[/quote]

Yes, because the left outer joins are AFAIR hard to toggle so that they give results for unmatched categories.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post by blog.brockha.us »

Well.. That's not worth the discussion anymore, I guess, as we simply have two different opinions here. The delete functionality does already move content (else it would delete all articles in the category, too).
I think the problem is the definition of what's the "content" of a category to be relocated. I hoped, content is both: articles and categories, Serendipity only defines articles as content and removes subcategories.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I don't want to be annoying, just tried to explain the reasoning behind it :)

You are right, s9y thinks of content in that regard as 'articles' and not as subcategories.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post by blog.brockha.us »

You didn't annoy me at all! :-) I just think we have two different opinions here, that's all. No big deal. :-)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Post Reply