mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #00192
[Bug 544160] Re: leap2a import deletes existing blogs
My vote is to never delete any content automatically. In fact, maybe the
right solution is to not give users an empty default blog, similar to
not giving them any default portfolio views. This not only solves the
question of when to delete the default blog, but also immediately makes
users aware of the ability to create multiple blogs (we shouldn't have
to implement logic to determine which users are aware of Mahara's
features, we should just make the users aware of the features!). I
actually changed the behaviour on the usability branch so that the list
of blogs is always shown, even if there is only one.
That said, I agree that ultimately a single blog with proper tags is the
best solution. For now, however, I'd shy away from automatically
deleting things.
--
leap2a import deletes existing blogs
https://bugs.launchpad.net/bugs/544160
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Status in Mahara ePortfolio: New
Bug description:
affects mahara
This doesn't matter when using Leap2A to create completely new user
accounts, but it certainly matters when importing it over MNet.
The problem is that the blog plugin has the following logic:
- At the start of the import, check to see if there's already a blog for
this user
- When importing anything, create a blog if necessary
- At the end, if a blog has been created, and there WAS a blog at the start
of the import, delete the original blog.
This is so that if a user gets created, and they get the default "Blah
Users's blog" blog created by default, and then new blogs created, delete
the "Blah User's Blog" since it doesn't make sense.
I'm not sure of the best way to fix this - do we have *any* way to check
that a given blog is the default blog, or one that a user created
themselves?
Either way, we should certainly not delete any blogs that have posts.
Still until we figure out the above question, I don't think we can avoid
data loss :(
--
/* ---------------------------------------------------
Penny Leach | http://mjollnir.org | http://she.geek.nz
GPG: 8347 00FC B5BF 6CC0 0FC9 AB90 1875 120A A30E C22B
--------------------------------------------------- */
References