Drafts plugin v0.1.1

Added by Jean-Baptiste Barth about 7 years ago

As an answer to #2910, I needed something quickly for one of my redmine instances at $WORK. People using Redmine there are posting quite long issues and they often lose everything if they close their browser or click on a bad button/link.

I tried to implement something to save drafts regularly. It uses a dedicated table, saving drafts as yamlized dumps of the object, so 1) it can be extended to other models, 2) it's not intrusive at all, and it doesn't require to change 50 lines of code in the core (which may have been the case if we just added a "draft" boolean column in the Issue table).

The plugin is called "redmine_drafts", and it's available on github : http://github.com/jbbarth/redmine_drafts. Don't know if it's an artwork, but it works for me and my colleagues for a couple of months now.

Here's a screenshot :

Any question or feedback would be welcome.

Replies (13)

RE: Drafts plugin v0.1.1 - Added by Vladimir Dzalbo about 7 years ago

Love it!

Thanks a lot for your effort!

RE: Drafts plugin v0.1.1 - Added by Michael Koch about 7 years ago

this is great!

RE: Drafts plugin v0.1.1 - Added by Rodrigo Catto almost 7 years ago

Great! Remember that in some installations of Redmine, rake must run as:

rake db:migrate_plugins RAILS_ENV=production

...like in Redmine on apt-get for Ubuntu 10.04 LTS.
http://www.redmine.org/wiki/redmine/Plugins

RE: Drafts plugin v0.1.1 - Added by Holger Winkelmann almost 7 years ago

any Way to have IT for Large Wikis too ?

RE: Drafts plugin v0.1.1 - Added by Jean-Baptiste Barth almost 7 years ago

I didn't have much time recently to work on that, but you can fork me on github, work on a patch, and send me a pull request. If it's tested and seems ok, I'll push it on the main repository.

Korean translation - Added by Ki Won Kim almost 7 years ago

Cool!!!
Thanks for your effort...
and I attached Korean translation

ko.yml Magnifier (322 Bytes)

RE: Drafts plugin v0.1.1 - Added by Radosław Koppel almost 7 years ago

Really nice plug-in.
I attached Polish translation below.
Regards!

pl.yml Magnifier - Drafts plugin Polish translation (264 Bytes)

RE: Drafts plugin v0.1.1 - Added by Haruyuki Iida almost 7 years ago

I love this plugin. Thanks.
I attached Japanese translation.

Regards.

ja.yml Magnifier - Drafts plugin Japanese translation (308 Bytes)

RE: Drafts plugin v0.1.1 - Added by Jean-Baptiste Barth almost 7 years ago

Thanks all for your interest in this plugin. I added your translations and fixed the README.

RE: Drafts plugin v0.1.1 - Added by Jeremy Davis almost 7 years ago

Hi!

I tried using this plugin (which sounds very useful!), but I get the following errors:

1) Can't find "autosave_drafts_path" (_issue_form.html.erb)
2) Can't find "restore_draft_path" (_pending.html.erb)

and probably others of the same kind.

I'm using an old version of redmine (0.8.4), on which my predecessors in the company have built a huge quantity of plugins and mods... so updating redmine is not an option.

I'm guessing it's a redmine-version compatibility issue.

Any ideas?

Thanks a lot!

RE: Drafts plugin v0.1.1 - Added by Rafael Trestini over 6 years ago

Very nice feature. In attachment, brazilian portuguese version.

Thanks!

pt-BR.yml Magnifier - Brazilian Portuguese translation (296 Bytes)

RE: Drafts plugin v0.1.1 - Added by Ki Won Kim about 3 years ago

Add Korean language file.
Thanks

ko.yml Magnifier (349 Bytes)

RE: Drafts plugin v0.1.1 - Added by Pavel Potcheptsov almost 3 years ago

For my redmine's versions (2.4.x and 2.5.x) I have still this plugin installed.
Should I stop using it or covered issue still exist in redmine?

(1-13/13)