Permalink
Switch branches/tags
Nothing to show
Commits on Aug 24, 2012
  1. modify some messages

    afresh1 committed Aug 24, 2012
    make the output a bit clearer
Commits on Aug 13, 2012
  1. Move xmlopts to a data structure instead of in the XMLout call

    afresh1 committed Aug 13, 2012
    Just a bit cleaner
  2. Change to reset Postgres

    afresh1 committed Aug 13, 2012
    I need to test on PostgreSQL now so yay!
  3. Don't try to process an object we don't have

    afresh1 committed Aug 13, 2012
    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.
  4. Set the fields more directly

    afresh1 committed Aug 13, 2012
    The "normal" accessors don't actually take arguments, they just
    mean Me and Now
  5. Only set the fields we need to

    afresh1 committed Aug 13, 2012
    Creator and Created get set when we import the ticket (yay!)
  6. Reset Creator/Created/LastUpdatedBy/LastUpdated at the end

    afresh1 committed Aug 13, 2012
    I was hoping it would keep LastUpdated but it doesn't seem to work.
    Something to look at.
  7. Fix crufty $|

    afresh1 committed Aug 13, 2012
    No idea why it was there in the first place but I don't want it.
  8. use the processed values instead of those from the XML

    afresh1 committed Aug 13, 2012
    Safer, the values we probably need.
  9. Initialize before calling main

    afresh1 committed Aug 13, 2012
    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

    afresh1 committed Aug 12, 2012
    I had a problem, this fixed it.
  2. Turn rt-ticket-importer into a modulino

    afresh1 committed Aug 12, 2012
    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

    afresh1 committed Aug 12, 2012
    They are probably wrong
  4. reset_rt helper script

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

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

    afresh1 committed Aug 11, 2012
    it seems that is what RT likes.
  3. Reorder use line and don't quote hash keys

    afresh1 committed Aug 11, 2012
    Just make it a bit tidier
  4. Cache completed items in a single hash instead of individual

    afresh1 committed Aug 11, 2012
    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

    afresh1 committed Aug 11, 2012
    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

    afresh1 committed Aug 11, 2012
    This one actually runs later so it ended up more like the original.
  7. ConvertAttachment -> import_attachment

    afresh1 committed Aug 11, 2012
    Same as the rest, just different.
  8. ConvertTransaction -> import_transaction

    afresh1 committed Aug 11, 2012
    Much fixups to make moar betterer
  9. ConvertTicket -> import_ticket

    afresh1 committed Aug 11, 2012
    Just handle the "special" stuff here.
  10. a generic _ConvertItem wrapper

    afresh1 committed Aug 11, 2012
    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

    afresh1 committed Jul 11, 2012
    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

    afresh1 committed Aug 11, 2012
    So we can lookup what to do with them rather than large if/else structures
  13. better "main"

    afresh1 committed Jul 11, 2012
    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

    afresh1 committed Jul 28, 2012
  15. Revert "Note that this importer doesn't work anymore"

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

    afresh1 committed Jul 27, 2012
    Makes the logic easier to follow
  2. Keep some sort of record even if users don't have an email

    afresh1 committed Jul 27, 2012
    Should help keep EmailRecord transactions happy