[geeklog-devel] Updating a plugin in the Plugin Repository
dirk at haun-online.de
Thu May 28 16:42:19 EDT 2009
Tim asked about this on IRC and we decided to move the discussion here.
So say you already have a plugin in the Plugin Repository. Now someone
(the developer or an admin) wants to update it. How would that work?
My take is to model this somewhat after how the File Management plugin
does it (minus the bugs):
- Click on an "Edit" link
- You can now edit the description and select a new file for upload
- Click "update"
What happens then depends on a variety of options we talked about
before, e.g. is the person allowed to update the plugin directly or does
it have to go through re-approval by a moderator?
If it goes into the moderation queue, you should still be able to
download the old version until the update is approved. So you would need
two db entries (which you would need anyway, if you're using the
Who can replace a file? A "Plugin Repository Admin" in any case. And if
you allow public uploads (as, say, on geeklog.net) then anybody should
be able to submit an update. Plugins may change ownership or two people
may be working on a plugin, etc., so I don't see a reason to restrict that.
Also, it shouldn't require that the newly uploaded file has a different
filename than the old version (as the File Management plugin does - I
consider this a bug). Preferrably, the file name would be editable
without having to re-upload the file (typos happen ...).
Did I forget anything?
P.S. Tim, if you haven't done so already, I'd suggest you have a look at
the File Management, at least from the workflow / UI point of view.
More information about the geeklog-devel