ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

We want to contribute some code but...

Added by Nicolas Paez at 2012-08-28 04:17 pm

Hi everyone,

We have been working on a plugin to enhance the incoming email processing (email clients send emails with different variations, so we wrote some code to "unify" those variations and prevent the parser to fail). Our code in a contained in a plugin but:

1- We needed to modify a "core file" (one of the notification mail templates)
We found this section (https://www.chiliproject.org/projects/chiliproject/wiki/Patching_core_code_from_plugin) in the plugin documentation section, but it is empty, so we were thinking in just mentioning the required changes in the documentation of our plugin, is there any better alternative?

2- We have the code in an internal subversion server
We were thing in moving it to Git, but our code base is version 2.6, should we start by forking the current chili version and add our code there? or there is a way to apply our contribution to the 2.6 version?

Thanks!
NicoPaez


Replies (2)

RE: We want to contribute some code but... - Added by Holger Just at 2012-08-28 04:25 pm

1- We needed to modify a "core file" (one of the notification mail templates)

The templates (i.e. everything you see in the app/views directory can be overridden by a plugin. Just create a new file with the same path and name as the file in the core in your plugin. It will then automatically take precedence. Note that you should then closely observer changes to these files in the ChiliProject core to make sure your plugin remains compatible.

2- We have the code in an internal subversion server

While ChiliProject core uses git (and prefers Pull Requests on Github for contributions), you don't need to use Git for your internal development. If you have any proposed changes, you can also just open an issue and attach a patch. See our Contribute page for more details.

RE: We want to contribute some code but... - Added by Nicolas Paez at 2012-08-30 01:57 pm

Ok, thanks!
There is one more thing.
My plugin has a hook to operate on incoming mails. We have modify the mail_handler_controller to add our hook. Is this acceptable or there is a better way?

Thanks!

(1-2/2)