Nothing anymore in the roadmap

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
joujoukinder
Posts: 7
Joined: 24 Aug 2010, 11:44

Nothing anymore in the roadmap

Post by joujoukinder »

Hi everyone,

Can you help me ? In mantis, I am using versions and I had the roadmap until today. I don't know what I have done, but I have no roadmap anymore !

On the bugs, the target versions are always set.

Best regards.

Matteo
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Nothing anymore in the roadmap

Post by atrol »

Check whether someone changed the version to "released"
Please use Search before posting and read the Manual
joujoukinder
Posts: 7
Joined: 24 Aug 2010, 11:44

Re: Nothing anymore in the roadmap

Post by joujoukinder »

No, the version is not released. I have 2 versions that are not released and none is shown on the roadmap...
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Nothing anymore in the roadmap

Post by atrol »

Have you set $g_roadmap_view_threshold in your config_inc.php ?
Please use Search before posting and read the Manual
joujoukinder
Posts: 7
Joined: 24 Aug 2010, 11:44

Re: Nothing anymore in the roadmap

Post by joujoukinder »

I just did. No changes...

What I added :

Code: Select all

$g_roadmap_view_threshold = ADMINISTRATOR;
I have restarted all the services, (apache, mySql...)

What is wrong ? :-(
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Nothing anymore in the roadmap

Post by atrol »

If you have no $g_roadmap_view_threshold in your config_inc.php it's OK because standard setting is VIEWER
But this seems not to be related to your problem

You could enable database tracing to get some more information what is happening
Please use Search before posting and read the Manual
joujoukinder
Posts: 7
Joined: 24 Aug 2010, 11:44

Re: Nothing anymore in the roadmap

Post by joujoukinder »

OK. I found what seems to be wrong :

I have many subproject levels in mantis. The main level is "MyApplication" and then some levels are within this one :

- MyApplication
- Feature1
- Feature2
- Feature 2.1
- Feature 2.2

I versioned the "MyApplication" project. But when I put a bug into mantis, I chose the sublevel that the bug is related to. Because in my firm, each feature is a project.

In the roadmap_page.php, this is what I found :

Code: Select all

$t_version_rows = array_reverse( version_get_all_rows( $t_project_id ) );
I can't see my bugs, because there is no inheritance from the parent level "MyApplication" and the sublevels. The version_get_all_rows( $t_project_id ) returns only the versions ids that are set to "MyApplication", and another query get the bugs, but only for the versions of "MyApplication". But in my case, I want to see all the bugs of "MyApplication" including all the sublevels.

I am wrong ?

Best regards. Matteo.
johnsterdotcom
Posts: 1
Joined: 26 Aug 2010, 22:22

Re: Nothing anymore in the roadmap

Post by johnsterdotcom »

Subproject inheritance is something that's lacking a great deal in Mantis from what I can see.

I overcame the roadmapping issue with the following hack in roadmap_page.php :

Code: Select all


                        /*
                        $query = "SELECT sbt.*, $t_relation_table.source_bug_id, dbt.target_version as parent_version FROM $t_bug_table AS sbt
                                                LEFT JOIN $t_relation_table ON sbt.id=$t_relation_table.destination_bug_id AND $t_relation_table.relationship_type=2
                                                LEFT JOIN $t_bug_table AS dbt ON dbt.id=$t_relation_table.source_bug_id
                                                WHERE sbt.project_id=" . db_param() . " AND sbt.target_version=" . db_param() . " ORDER BY sbt.status ASC, sbt.last_updated DESC";
                        */

                        $query = "SELECT sbt.*, $t_relation_table.source_bug_id, dbt.target_version as parent_version FROM $t_bug_table AS sbt
                                                LEFT JOIN $t_relation_table ON sbt.id=$t_relation_table.destination_bug_id AND $t_relation_table.relationship_type=2
                                                LEFT JOIN $t_bug_table AS dbt ON dbt.id=$t_relation_table.source_bug_id
                                                WHERE sbt.target_version=" . db_param() . " ORDER BY sbt.status ASC, sbt.last_updated DESC";

My next challenge (personally), is to get the custom field usage to cascade parent to child. My experience with Mantis is limited (< 1 month), but I think you'll there's a fair number of obstacles for you if sub-projects and hierarchies are your thing (as they are mine). Be prepared for some challenges.
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Nothing anymore in the roadmap

Post by atrol »

Please use Search before posting and read the Manual
joujoukinder
Posts: 7
Joined: 24 Aug 2010, 11:44

Re: Nothing anymore in the roadmap

Post by joujoukinder »

Ok, I see...

So I have to correct the code on my own and what fir the issue to be corrected on the next version right ?
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Nothing anymore in the roadmap

Post by atrol »

joujoukinder wrote: So I have to correct the code on my own and what fir the issue to be corrected on the next version right ?
Yes
Please use Search before posting and read the Manual
Post Reply