Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Aug 24, 2012
  1. modify some messages

    authored
    make the output a bit clearer
Commits on Aug 13, 2012
  1. Change to reset Postgres

    authored
    I need to test on PostgreSQL now so yay!
  2. Don't try to process an object we don't have

    authored
    The most likely reason is that we already did it.
    
    We could store the $obj in the cache instead of just the $new_id
    but that would use a LOT more memory for little gain.
  3. Set the fields more directly

    authored
    The "normal" accessors don't actually take arguments, they just
    mean Me and Now
  4. Only set the fields we need to

    authored
    Creator and Created get set when we import the ticket (yay!)
  5. Reset Creator/Created/LastUpdatedBy/LastUpdated at the end

    authored
    I was hoping it would keep LastUpdated but it doesn't seem to work.
    Something to look at.
  6. Fix crufty $|

    authored
    No idea why it was there in the first place but I don't want it.
  7. use the processed values instead of those from the XML

    authored
    Safer, the values we probably need.
  8. Initialize before calling main

    authored
    I need the user mappings to make things work properly.
Commits on Aug 12, 2012
  1. A sample script that resets missing users on tickets

    authored
    I had a problem, this fixed it.
  2. Turn rt-ticket-importer into a modulino

    authored
    I want to re-use bits so to make it easy, just do it.
  3. Don't try to create links to tickets we don't know about

    authored
    They are probably wrong
  4. reset_rt helper script

    authored
    It was really useful for me, so may help someone else.
Commits on Aug 11, 2012
  1. Refactor more stuff into a helper method.

    authored
    I was going to have to modify several of them, so rather than that, refactor!
  2. Return 'Id's instead of 'UserObj's

    authored
    it seems that is what RT likes.
  3. Reorder use line and don't quote hash keys

    authored
    Just make it a bit tidier
  4. Cache completed items in a single hash instead of individual

    authored
    Allows me to put some things in a common routine later.
    
    nitpick my ($user) = @_ instead of my $user = shift;
  5. Some helper methods for links

    authored
    because we need all the old tickets and transactions imported before
    we can create the links, we need to queue them until the end.
  6. ConvertLink -> import_link

    authored
    This one actually runs later so it ended up more like the original.
  7. ConvertAttachment -> import_attachment

    authored
    Same as the rest, just different.
  8. ConvertTransaction -> import_transaction

    authored
    Much fixups to make moar betterer
  9. ConvertTicket -> import_ticket

    authored
    Just handle the "special" stuff here.
  10. a generic _ConvertItem wrapper

    authored
    Gets things ready and then calls the proper import routine.
    
    Also handles retrying if we had an id collision.
    
    Plus accessor methods for each type.
  11. New helper method, ConvertQueue

    authored
    Looks up the new QueueID from the name, defaulting to General if there isn't one that matches.
  12. Add some lookup tables of data types

    authored
    So we can lookup what to do with them rather than large if/else structures
  13. better "main"

    authored
    Read tickets from a directory of xml instead of a single file.
    
    Handles what we need it to better than what we had.
  14. Add some notes to the README

    authored
  15. Revert "Note that this importer doesn't work anymore"

    authored
    Because now it should.
    
    This reverts commit 2cf673e.
    
    Conflicts:
    
    	rt-ticket-importer
Commits on Jul 27, 2012
  1. Lookup User and Link types

    authored
    Makes the logic easier to follow
  2. Keep some sort of record even if users don't have an email

    authored
    Should help keep EmailRecord transactions happy
Something went wrong with that request. Please try again.