Git Product home page Git Product logo

bz2redmine's People

Contributors

antapos avatar dubasdey avatar iyadkandalaft avatar ralli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bz2redmine's Issues

Unclear issue when running conversion

I'm running into the following error when doing my conversion.

<NameError: uncaught throw `there are bug priorities, which cannot be mapped. please modify the ISSUE_TRACKERS in settings.rb accordingly.'>

./bz2redmine.rb:586:in throw' ./bz2redmine.rb:586:inverify_bug_severities'
./bz2redmine.rb:523:in perform_sanity_checks' ./bz2redmine.rb:67:inmigrate'
./bz2redmine.rb:623

It is unclear to me because the error message reads "bug priorities" bun then points me to the ISSUE_TRACKERS section of the setup.rb file which is supposed to map to seventies and not Bugzilla priorities. Looking at my values everything looks to be as expected so I'm not sure what the problem is.

Below is how I have my settings.rb file configured.

ISSUE_PRIORITIES = {
"Low" => 1,
"Medium" => 2,
"High" => 3 }

ISSUE_TRACKERS = {
"critical" => 1,
"trivial" => 1,
"minimal" => 1,
"major" => 1,
"normal" => 1,
"blocker" => 1,
"enhancement" => 1
}

Support for Links within Bugs

Cross references and links between bugzilla bugs and redmine issues have a different syntax.
So after migration links between redmine issues get lost.

These are the patterns within bugzilla bugs which will be turned into a link (found at section 5.8.1. Autolinkification of the bugzilla online help)

The types of links supported by Redmine can be found at:

http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting

It would be relatively easy to support Links to different bugs.

Links to attachments would need a somewhat special handling since only links to attchments within the same issue are supported.

It would be a good feature migrate the cross references between bugzilla bugs to redmine (at least the easy cases).

bz2redmine gives "NameError: uninitialized constant BugzillaToRedmine::Net" due to missing net-ldap gem

bz2redmine fails with a "NameError: uninitialized constant BugzillaToRedmine::Net" when migrating LDAP users from Bugzilla to Redmine, i.e. settings.rb is configured as follows:

  • REDMINE_DEFAULT_AUTH_SOURCE_ID is not nil.
  • REDMINE_LDAP is defined as per your local LDAP settings.

The fix was to edit bz2redmine.rb to require the net-ldap gem, e.g.:
...
require "rubygems"
require "mysql"
require "net/ldap"
...

Could someone please implement this fix?

Thanks!

bz2redmine creates invalid issues

Database Version mysql Ver 14.12 Distrib 5.0.67, for suse-linux-gnu (x86_64) using readline 5.2
Ruby version 1.8.7 (x86_64-linux)
Rails version 2.1.2
Redmine Vesion 0.8.6

Issues created by bz2redmine have a due-date of 0000-00-00. This would not validate when the issue is entered directly in Redmine, and leads to runtime errors in the Gantt chart.

What about PostgreSQL?

I've PostgreSQL behind both bugzilla and redmine and I wish to use your tool for the migration.

I've changed the require="mysql" to require="pg" and replaced the

return Mysql::new(info.host, info.user, info.password, info.dbname)

with the equivalent for ruby-pg

return PGconn.connect(info.host, 5432, "", "", info.dbname, info.user, info.password)

Now I'm getting errors on the bz_select_sql, red_exec_sql and red_select_sql which, for what I understood, are the three functions used to read/write on the two databases (bugzilla and redmine).

I'm actually trying to convert those functions to their equivalent for the ruby-pg APIs but I'm really noob to ruby so I could appreciate your help.

BTW, I'm trying to migrate form bugzilla 3.2.2 to redmine 0.9.1

Can't find settings...

I'm getting an error when I try and run the migration:

sudo ruby bz2redmine.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- settings (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from bz2redmine.rb:29:in `<main>'

I've copied the script and the settings into the redmine directory

I've renamed example_settings.rb to settings.rb

For some reason it's not picking up the settings though. Does it have to be run from a specific location? ..or is this a bug?

Problem with Migrating

Hi.

Is this any posibility to use this migration script to migrate from bugzilla witch is on oracle DB to redmine witch is on postgre ?

Redmine version is 3.3.3.stable
Ruby version 2.3.1-p112
Rails version 4.2.6

List of dependencies

I'm attempting to convert my Bugzilla database on Ubuntu and and new to Linux, Redmine, and Ruby so I'm learning as I go along. I've installed the BitNami stack for redmine in hopes to simplify installing Redmine but I found that ruby seems to be installed under the BitNami-redmine stack as a sort of self contained dependency which meant that running bz2redmine.rb didn't work directly until I installed ruby1.8 using apt-get. I chose ruby1.8 because I remembered that in some of the Redmine documentation that 1.9 wasn't yet supported so I figured this bz2redmine.rb script would probably be written to target the same ruby that Redmine uses.

After running bz2redmine.rb after installing ruby1.8 I get the following error.

./bz2redmine.rb:27:in `require': no such file to load -- rubygems (LoadError)
from ./bz2redmine.rb:27

I'm guessing that I'm missing another dependency? I'm not familiar at all with ruby and searching for this specific error in google doesn't seem to point out how to resolve the issue.

Any improvements in the documentation on what the exact dependencies are and how to run this script for somebody who may not be familiar with Ruby or Linux would be very helpful.

Mail notification changes in Redmine

Thanks for writing a wonderful tool, helped us migrate over from our bugzilla setup to Redmine.

The latest versions of Redmine (ours is 1.1.1) have changed the mail_notification slot to a text value for different settings (it's not just 0/1 anymore). This was causing problems with our Redmine update, with ''Email notifications is not in the list" errors showing up in Redmine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.