-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added BDD feature management / Basic PDF export #3
base: master
Are you sure you want to change the base?
Conversation
Initial version of submission form is ready, data is correctly serialized and stored.
Added download feature as *.feature file Added required migrations to db\* files
…narios and Scenario Steps. When loaded from db the form is adjusted accordingly.
Added Background section to download file
…ot and selecting "Export". Export is generated as PDF file.
Added migration file for new db table
Added default description for Re_Feature
I forgot to add a preview export file, you can view one here. |
Hi Martin. As for the export part. We tried a lot of export mechanisms during time and I am not sure if it is wise to have a large(r) external dependency when installing Redmine RE. Our last try was based on pandoc which did not work out to good since it behaved differently on different OSes. However, I'll check your solution out and I guess we'll move along with most of your changes. |
thanks for your efforts guys. |
I totally agree with you about not pushing Redmine RE into a certain direction. But I think especially because Redmine RE is not pushing the user into any certain direction and giving total freedom when starting off using it, it is good to give the opportunity to use something like features coming from BDD. In my project we will use features along with common (technical) requirements, which is mandatory because features on its own wouldn't satisfy the requirements definition process. Regarding the export function I also agree that having large or complex dependencies could raise the bars for projects to make use of Redmine RE, but on the other hand the dependencies are relatively small. Installing the ruby bindings for wkhtmltopdf is a breeze with gem / bundler which already is needed when setting up Redmine and wkhtmltopdf itself is available as static binary from the project which has zero other dependencies. In fact it is another dependency, but not to big to keep users away of using Redmine RE in my opinion. If you have any questions on the implementation, do not hesitate to send me a message! Cheers, |
Hi Marvin, i've installed you version of the re plugin and I got an error when i try to export something: RuntimeError (command failed (exitstatus=1): /home/dmarko2s/.rvm/gems/ruby-1.9.2-p320/bin/wkhtmltopdf --quiet --page-size Letter --margin-top 0.75in --margin-right 0.75in --margin-bottom 0.75in --margin-left 0.75in --encoding UTF-8 - -): (I had to install a gem manually, maybe ist the wrong version: dmarko2s@korem-dev:~/development/git_repos/redmine-2.5$ gem install wkhtmltopdf (It's hopfully just a small bug, because i realy like the way you integrated the feature!) |
Hi Dominic, I would suggest that you try the following:
http://wkhtmltopdf.org/downloads.html To see if the installation works run the following on your shell bsh$ wkhtmltopdf www.google.com test.pdf A PDF with the google front page should have been created then.
Hopefully this should do the trick. By the way: I found some minor issues with my changes which I will tackle within the next week. Along with the fixes I can send you some further Ideas of mine to enhance the plugin even further. Cheers |
Hi Marvin, I think the plugin is really wounderful, but I need to export the requirements to document. best regrads |
Hi Bernhard, sorry for the late reply - I'm currently kinda busy at my company projects. You've luck - the export routine is fairly simple and creates HTML in the first place and then generates a PDF document from that. Have a look at the exporter Seek for the function
taken from here http://stackoverflow.com/questions/2777802/how-to-write-to-file-in-ruby If you have any further questions drop me a message! Cheers, |
Hi There,
First thanks for your great work. It helped me to increase the productivity of my customer and to tighten the requirements definition process and management as well. Basically what the KOREM plugin was intended for.
As I suggested my customer to select a Behavior Driven Development (BDD) approach for their projects to collect requirements I added the possibility to KOREM to add so called features from the BDD philosophy to the Redmine database. For further information on this please read on here.
One missing feature also was that it is not simply possible to export the requirements and other added data from the plugin. We could have done this via an external interface (e.g. database admin interface), but a direct export was mandatory.
So I spend the effort and also added the possibility to export the tree structure as flat PDF file by right clicking on the tree root node and select the "Export" option. This feature uses pdfkit which requires wkhtmltopdf - I updated the gem file accordingly and added some information to the README.rdoc file.
I would be happy if you merge the changes in your main stream and if we could get together to talk about further adjustments which I have in mind, not only related to the export function, but also to other missing features.
Cheers,
Marvin Kruse
Philotech GmbH