An important advantage of redmine is its powerful plug-in extension function. You can find the plug-ins you need in the official redmine plug-in list and install and use them directly. And, as open-source software, these plug-insSource codeThis makes it easy for us to learn and develop and expand functions as needed.
Today, I want to install a useful plug-in, code review. With this plug-in, we can submitCodeOnline review is very convenient. I have referenced two articlesArticle: Describes how to use the redmine code review Wiki and redmine plug-in codereview. The procedure is as follows:
1. Install the code review plug-in
1. Download the code review plug-in: Download
Unzip redmine_code_review-0.4.3.Zip
Sudo MV redmine_code_review/OPT/Redmine/Vendor/Plugins
2. Load the plug-in
Sudo rake DB: Migrate_pluginsRails_env=Production
3. Restart redmine
Ii. Configure code review
1. Create a project and check the code review module in the module bar.
2. Install Subversion
Sudo apt-Get install Subversion
Set Svn in projects> Settings> repository to add the code library path.
3. open repository to view the project code.
3. Chinese garbled characters
The Code review plug-in is relatively simple to install, but encountered an annoying problem, that is, Chinese garbled characters. This problem has been plagued for a long time and has not been solved after reading many tutorials on the Internet. To this end, I also learned the development history of character encoding, from ASCII to GBK to utf8. Later, we found that the Chinese characters in the Code are encoded with GBK, while redmine is decoded with utf8, so garbled characters are generated. Finally, we found a solution to this problem. In fact, it is very simple. You can set GBK encoding.
Iv. Further development
Code review is not very useful, and new features need to be added, mainly including the following:
1. Code folding;
2. display the author and comments;
3. Integration with Alibaba trademanager's pop-up window function.
These are the work I will do in the next period.