#1786 Write forum import API

v1.0.0
closed
Wolf
sf-8 (45)
General
nobody
2015-08-20
2011-03-23
Mark Ramm
No

Based off of ticket import API system, probably.

Look for existing forum data formats, i.e. any public standards.

Consider supplementing the regular forum API with a few import-specific fields

Related

Tickets: #1824

Discussion

  • Mark Ramm - 2011-03-31
    • milestone: apr-7 --> apr-14
     
  • Dave Brondsema

    Dave Brondsema - 2011-04-07
    • summary: Write forum post importer (sfx to allura discussion tool) --> Write forum import API
    • Description has changed:

    Diff:

    --- old 
    +++ new 
    @@ -1,0 +1,1 @@
    +Based off of ticket import API
    
    • size: --> 8
     
  • Dave Brondsema

    Dave Brondsema - 2011-04-07
    • Description has changed:

    Diff:

    --- old 
    +++ new 
    @@ -1,1 +1,5 @@
    -Based off of ticket import API
    +Based off of ticket import API system, probably.
    +
    +Look for existing forum data formats, i.e. any public standards.
    +
    +Consider supplementing the regular forum API with a few import-specific fields
    
     
  • Rick Copeland - 2011-04-08
    • status: open --> in-progress
    • assigned_to: Rick Copéland
     
  • Rick Copeland - 2011-04-11
    • status: in-progress --> code-review
    • assigned_to: Rick Copéland --> Wolf
     
  • Rick Copeland - 2011-04-11
    (forge)(rc/1786)
    : rick446@legolas-vm: ~/src/forge/Allura; git qa
    Todays unlucky sucker is: Wolf
    

    To QA:

    • Generate an xml dump from an existing sfx project. I've been using Ming (https://sourceforge.net/export/xml_export2.php?group_id=289238)
    • Convert the xml dump to psuedo-forgeplucker using the project-to-plucker script in forgeclassic:

    .

    python project-to-plucker.py merciless_export.xml merciless_export.json
    
    • Log in as a 'super user' (someone with access to /nf/admin/, by default locally this is root:foo)
    • Create an api ticket with the capabilities { "import": "test" } (or {"import":"project_you_want_to_import_into"} )
    • note the api key and secret key generated
    • create an instance of the forum tool in your target project (in the example I create one with the mount point 'fora')
    • Run the import script

    .

    paster script development.ini ../scripts/allura_import.py -- merciless_export.json -p test -f fora -u http://localhost:8080 -a tck0d760b27cbf58a7a4c98 -s 54c6feb71ba42fe04e7db34fcbc415edae4db696eaff5cf06043b0dd15e059482c2a2ded7e7465dd
    
     
  • Rick Copeland - 2011-04-11

    Also, the changes are on forge:1786 and forge-classic:rc/1786

     
  • Wolf - 2011-04-12

    merged to forge-classic at e804f93 and awaiting conflict cleanup to merge to forge

     
  • Wolf - 2011-04-12
    • status: code-review --> closed
     

Log in to post a comment.