https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292015-07-07T13:43:51ZRedmineRedmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=647072015-07-07T13:43:51ZOndřej Ezr
<ul><li><strong>File</strong> <a href="/attachments/13903">redmine-hook.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/13903/redmine-hook.patch">redmine-hook.patch</a> added</li></ul><p>This version may be more usefull ... ( after all plugins had loaded, do something... )</p> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=652812015-08-05T08:12:42ZToshi MARUYAMA
<ul><li><strong>Category</strong> set to <i>Plugin API</i></li></ul> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=869052018-09-01T21:13:49ZOndřej Ezr
<ul></ul><p>Any news?</p> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=869062018-09-01T23:40:31ZGo MAEDA
<ul></ul><p>Ondřej Ezr wrote:</p>
<blockquote>
<p>It would be cool to have a load hook to refer from a plugins</p>
</blockquote>
<p>Would you describe use cases of the hook?</p> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=869222018-09-02T11:35:58ZOndřej Ezr
<ul></ul><p>Whatever code you write you can assure that redmine is fully loaded already.</p>
<p>1) Engine initializers (for plugins in engine) for example.<br />2) Plugins who wants to load some code after all plugins were initialized.<br />3) Any code in libs depending on the redmine code should know if redmine is loaded.<br />4) You can write code for rails and have feature for redmine in your gem.</p>
<p>loads of other cases, always solvable in different way, but nicer by the hook.</p>
<p>My case was 1) 2) and 4) in my experiences with developement for redmine, but obviously after 3 years even the GIT forgot the code I needed it in ... ;)<br />So if I am concern, close this one rather than asking me iritating questions with obvious answers after 3 years of having simple one line diff.</p>
<p>Please move to some kind of git source code management. You got mergerequests, pull requests. Of course you dont have time to go through every patch by hand :X<br />Otherwise your software is dead, because community is unable to contribute.</p> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=869522018-09-03T03:25:35ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>Candidate for next major release</i></li></ul><p>Thank you for describing the use cases. Sorry for irritating you but those points were not obvious to me because I am not interested in developing plugins. So, your explanation was helpful to me.</p>
<p>Setting target version to "Candidate for next major release". I think that we need a little more work to merge this change.</p>
<ul>
<li>Someone has to write test code. Test code is needed to add new features to Redmine core.</li>
<li>I would like to get feedback from users. Adding/changing public API will affect many users, and it is not easy to change once it is implemented.</li>
</ul> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=869602018-09-03T18:21:40ZOndřej Ezr
<ul></ul><p>Yeah, I was more irritated for the 3 years gap from first response, I understand this needs time to get evaluated and tested before merge.<br />But 3 years is far from being effective.</p>
<p>I think that gitlab for example would give you a lot more efficiency you need.<br />Exactly what you are describing would still be needed to be done, but it would be much easier.</p>
<p>AND community is used to git nowadays, somebody could even write the tests already for me :)<br /> OR I could do it far more easily :)</p>
<p>Just the notes. I know, you probably already considered it and still didn't, for some reason I can't see, do it, but I am voting for it if it's worth something :)</p>
<p>I alone know of at least 4 programmers who would like to colaborate, but doesn't because they knows your response time is too high to be helpful for them, so they has to go monkey patch and don't bother to program to the core :)</p>
<p>I will try to remember it and help if I got time, but I already dont have the code localy. So needs more time.</p> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=997372020-11-16T01:25:49ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/34072">Patch #34072</a>: Hook after plugins were loaded</i> added</li></ul> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=997392020-11-16T01:29:57ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li><li><strong>Target version</strong> deleted (<del><i>Candidate for next major release</i></del>)</li></ul><p>The upcoming Redmine 4.2.0 will have <code>:after_plugins_loaded</code> that is called after all plugins are loaded (<a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Hook after plugins were loaded (Closed)" href="https://www.redmine.org/issues/34072">#34072</a>). I think you you can use the new hook as an alternative to the proposed patch.</p> Redmine - Patch #20263: Redmine load hookhttps://www.redmine.org/issues/20263?journal_id=1024332021-05-13T13:41:06ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Closed</i></li></ul>