Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Aug 24, 2012

  1. Andrew Fresh

    modify some messages

    make the output a bit clearer
    authored

Aug 13, 2012

  1. Andrew Fresh

    Move xmlopts to a data structure instead of in the XMLout call

    Just a bit cleaner
    authored
  2. Andrew Fresh

    Change to reset Postgres

    I need to test on PostgreSQL now so yay!
    authored
  3. Andrew Fresh

    Don't try to process an object we don't have

    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.
    authored
  4. Andrew Fresh

    Set the fields more directly

    The "normal" accessors don't actually take arguments, they just
    mean Me and Now
    authored
  5. Andrew Fresh

    Only set the fields we need to

    Creator and Created get set when we import the ticket (yay!)
    authored
  6. Andrew Fresh

    Reset Creator/Created/LastUpdatedBy/LastUpdated at the end

    I was hoping it would keep LastUpdated but it doesn't seem to work.
    Something to look at.
    authored
  7. Andrew Fresh

    Fix crufty $|

    No idea why it was there in the first place but I don't want it.
    authored
  8. Andrew Fresh

    use the processed values instead of those from the XML

    Safer, the values we probably need.
    authored
  9. Andrew Fresh

    Initialize before calling main

    I need the user mappings to make things work properly.
    authored

Aug 12, 2012

  1. Andrew Fresh

    A sample script that resets missing users on tickets

    I had a problem, this fixed it.
    authored
  2. Andrew Fresh

    Turn rt-ticket-importer into a modulino

    I want to re-use bits so to make it easy, just do it.
    authored
  3. Andrew Fresh

    Don't try to create links to tickets we don't know about

    They are probably wrong
    authored
  4. Andrew Fresh

    Don't say we created something when we didn't

    authored
  5. Andrew Fresh

    Merge branch 'master' of github.com:afresh1/rt-ticket-import-export

    authored
  6. Andrew Fresh

    reset_rt helper script

    It was really useful for me, so may help someone else.
    authored
  7. Andrew Fresh

    Correct key is "Requestor" not "Requestors"

    authored

Aug 11, 2012

  1. Andrew Fresh

    Refactor more stuff into a helper method.

    I was going to have to modify several of them, so rather than that, refactor!
    authored
  2. Andrew Fresh

    Return 'Id's instead of 'UserObj's

    it seems that is what RT likes.
    authored
  3. Andrew Fresh

    Don't need the WARN signal handler either.

    authored
  4. Andrew Fresh

    Reorder use line and don't quote hash keys

    Just make it a bit tidier
    authored
  5. Andrew Fresh

    Cache completed items in a single hash instead of individual

    Allows me to put some things in a common routine later.
    
    nitpick my ($user) = @_ instead of my $user = shift;
    authored
  6. Andrew Fresh

    Some helper methods for links

    because we need all the old tickets and transactions imported before
    we can create the links, we need to queue them until the end.
    authored
  7. Andrew Fresh

    ConvertLink -> import_link

    This one actually runs later so it ended up more like the original.
    authored
  8. Andrew Fresh

    ConvertAttachment -> import_attachment

    Same as the rest, just different.
    authored
  9. Andrew Fresh

    ConvertTransaction -> import_transaction

    Much fixups to make moar betterer
    authored
  10. Andrew Fresh

    ConvertTicket -> import_ticket

    Just handle the "special" stuff here.
    authored
  11. Andrew Fresh

    a generic _ConvertItem wrapper

    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.
    authored
  12. Andrew Fresh

    New helper method, ConvertQueue

    Looks up the new QueueID from the name, defaulting to General if there isn't one that matches.
    authored
  13. Andrew Fresh

    Add some lookup tables of data types

    So we can lookup what to do with them rather than large if/else structures
    authored
  14. Andrew Fresh

    better "main"

    Read tickets from a directory of xml instead of a single file.
    
    Handles what we need it to better than what we had.
    authored
  15. Andrew Fresh

    Add some notes to the README

    authored
  16. Andrew Fresh

    Revert "Note that this importer doesn't work anymore"

    Because now it should.
    
    This reverts commit 2cf673e.
    
    Conflicts:
    
    	rt-ticket-importer
    authored

Jul 27, 2012

  1. Andrew Fresh

    Lookup User and Link types

    Makes the logic easier to follow
    authored
  2. Andrew Fresh

    Keep some sort of record even if users don't have an email

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