#7114 Make imports work on user projects

v1.2.0
closed
sf-1 (616)
General
2015-08-20
2014-01-28
No

Discussion

    • status: in-progress --> code-review
    • Size: --> 1
     
  • allura:tv/7114
    tracwikiimporter:tv/7114

     
  • Dave Brondsema

    Dave Brondsema - 2014-01-29
    • QA: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2014-01-29
    • status: code-review --> in-progress
     
  • Dave Brondsema

    Dave Brondsema - 2014-01-29

    All 3 of these scripts are supposed to be end-user scripts that can be run with the Allura codebase but on an end-user's machine and not on the server, so we shouldn't query mongo. Really, we should have an extra parameter passed through for neighborhood here. And it'll have to do some hard-coded munging, I suppose, to handle the u/ shortname_prefix for user-projects :( Or maybe strip that part before passing to the script, and the scripts don't have to worry about the u/ part then.

     
    • status: in-progress --> code-review
     
  • New commits on both repos.

     
  • Dave Brondsema

    Dave Brondsema - 2014-02-04
    • status: code-review --> in-progress
     
  • Dave Brondsema

    Dave Brondsema - 2014-02-04

    Tracker imported, but wiki got this error, perhaps because user-projects have their shortname_prefix "u/" included in their shortname.

      File "/nfs/home/dbrondsema/tracwikiimporter/tracwikiimporter/importer.py", line 117, in import_tool
        load_data(f.name, WikiFromTrac.parser(), options)
      File "/nfs/home/dbrondsema/tracwikiimporter/tracwikiimporter/scripts/wiki_from_trac/loaders.py", line 54, in load_data
        import_wiki(cli, options.project, options.wiki, options, doc_txt)
      File "/nfs/home/dbrondsema/tracwikiimporter/tracwikiimporter/scripts/wiki_from_trac/loaders.py", line 74, in import_wiki
        r = cli.call(url + '/' + title, **page)
      File "/home/dbrondsema/dbrondsema-1019/forge/Allura/allura/lib/import_api.py", line 64, in call
        raise e
    HTTPError: HTTP Error 404: Not Found (http://sf-dbrondsema-1015.sb.sf.net/rest/p/u/admin1/wiki-gar2/GarPackagingTutorial)
    
     
  • New commit on tracwikiimporter:tv/7114

     
    • status: in-progress --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2014-02-06
    • status: code-review --> in-progress
     
  • Dave Brondsema

    Dave Brondsema - 2014-02-06

    Latest commit doesn't work for subprojects or other neighborhoods. I've added a commit to tv/7114 for your review which should handle those properly.

     
    • status: in-progress --> closed
     
  • Nice, that's much better than mine, thanks. Both repos merged.

     
  • Dave Brondsema

    Dave Brondsema - 2015-01-05
    • Milestone: unreleased --> asf_release_1.2.0
     

Log in to post a comment.