Hi,We're working on a new plugin to rename projects, and it's ready
for its own repository. Can I have a new plugin repository called"rename-project?" Thanks!-Chad
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Feb 6, 2013 at 1:12 PM, Chad Horohoe <chor...@wikimedia.org> wrote:Hi,We're working on a new plugin to rename projects, and it's readyHmm... in Gerrit core we already have: create-project and set-project commands.So, we can create projects and change project settings using these commands.Wouldn't it feel strange if for renaming of a project one needs a plugin.I am not against the rename-project plugin but, eventually, it would be nice tohave this functionality in Gerrit core.
On Wednesday, February 6, 2013 1:32:16 PM UTC+1, zivkov wrote:On Wed, Feb 6, 2013 at 1:12 PM, Chad Horohoe <chor...@wikimedia.org> wrote:Hi,We're working on a new plugin to rename projects, and it's readyHmm... in Gerrit core we already have: create-project and set-project commands.So, we can create projects and change project settings using these commands.Wouldn't it feel strange if for renaming of a project one needs a plugin.I am not against the rename-project plugin but, eventually, it would be nice tohave this functionality in Gerrit core.Well, the same could be said for deleting a project, yet there's a plugin for that: https://gerrit.googlesource.com/plugins/delete-project/
+1 for a rename-project command though, whether it's a plugin or in core I don't mind.
--
I was aware of the delete-project plugin and I think it should also becomea part of Gerrit core. It is unintuitive that we can create a project in Gerritbut need a plugin to delete it.Hmm.. a reason to prefer working on a plugin project instead on Gerrit coremay be that it is simply faster because it is a different set of people with theCode-Review+2 permission?This way, a plugin project could be considered a topic branch with a differentset of access permissions ;-)
--
On Wednesday, February 6, 2013 11:05:01 AM UTC-6, Chad Horohoe wrote:On Wed, Feb 6, 2013 at 11:30 AM, Saša Živkov <ziv...@gmail.com> wrote:I was aware of the delete-project plugin and I think it should also becomea part of Gerrit core. It is unintuitive that we can create a project in Gerritbut need a plugin to delete it.Hmm.. a reason to prefer working on a plugin project instead on Gerrit coremay be that it is simply faster because it is a different set of people with theCode-Review+2 permission?This way, a plugin project could be considered a topic branch with a differentset of access permissions ;-)It's easier to update a plugin than core in your installation (just dropthe jar in). I'm in favor of making *more things* as plugins.-ChadI agree with Chad, there are a few benefits of plugins from a development side versus putting everything in core (besides more review permissions) -
Out of band updatesNo need to make everyone happy (the delete plugin is a great example of this - nobody could agree on what delete project should do, but if we put it in a plugin it doesn't matter. If you want it to archive rather than delete, use to code to create an archive plugin)
Less concerns about breaking things - plugins are fairly well sandboxed, and if they don't work just uninstall them
I just meant that I've always felt more comfortable writing a feature as a plugin compared to touching MergeOp or modifying other internals.
There are definitely some downsides to plugins from the user's perspective -Plugin discoverability (and installation) is hardSome features which complement features in core are odd to have as plugins (like Saša points out with create project vs rename/delete)I think we can solve these issue though - for issue 2, long term it'd be nice to have some statistics on what plugins users install (perhaps an opt-in system for automated reporting? See Jenkin's usage graph: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger)If a plugin is used by 90% of users, maybe we should move the logic to core or bundle the plugin with the core distribution?Sorry I'm starting to ramble here... but just my $0.02.Brad
Coming back to this now. We now have a rename-project plugin that has no commits or reviews, ironically can we delete it if we are not going to use it?Also, the reason I am bringing back this thread, we need this functionality now, it might looks easy, just move the dir and update the database and yet I guess there might be tricky stuff coming up later on.@chad Can you please shed some light on? :)