Alofoxx / MantisBT-2-Phabricator

Migrate data from a Mantis Bug Tracker database into a Phabricator [Maniphest] installation.
Apache License 2.0
5 stars 0 forks source link

Missing btFinish.php file #1

Open ctrladel opened 7 years ago

ctrladel commented 7 years ago

Made it through all the config steps only to find this on the final page. Looks like btFinish is missing from the repo?

Warning: require(/var/www/MantisBT-2-Phabricator/template/btFinish.php): failed to open stream: No such file or directory in /var/www/MantisBT-2-Phabricator/m2p_core.php on line 687

Fatal error: require(): Failed opening required '/var/www/MantisBT-2-Phabricator/template/btFinish.php' (include_path='.:/usr/share/php') in /var/www/MantisBT-2-Phabricator/m2p_core.php on line 687
Alofoxx commented 7 years ago

This is because I have not finished writing the code (hence the messages saying this is a work in progress in the readme). I'll see if i can get the second half done this weekend (phab side)

ctrladel commented 7 years ago

Ah, the readme gave me the impression that it was at one point functional but rough around the edges and maybe not up to date. If you want to write up an outline of what needs to happen in btFinish I wouldn't mind doing some of the coding.

Alofoxx commented 7 years ago

@ctrladel see if you can get this param array syntax to work and create a project (fix your include, url and token at the top of the file and it will run standalone).

https://github.com/Alofoxx/MantisBT-2-Phabricator/commit/762d2f556791210c9c6ecef6a4f653e14fbb5c7c#diff-51a2199d284fbbfbc453cc97a15b67a0R102

ctrladel commented 7 years ago

Was able to get it to work with this syntax

    $api_parameters = [ 
      'transactions' => [
        [
            "type" => "name",
            "value" => "Test2",
        ],
        [
            "type" => "icon",
            "value" => "project",
        ],
        [
            "type" => "color",
            "value" => "blue",
        ],
      ]
    ];

This page on my local phabricator instance was extremely helpful https://secure.phabricator.com/conduit/method/project.edit/