Modify

Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#12031 closed enhancement (fixed)

Allow for multiple projects to have the same milestones

Reported by: steffen.wolf@… Owned by: Cinc-th
Priority: normal Component: SimpleMultiProjectPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

I tried assigning the same milestone to multiple projects, which basically have the same roadmap. This failed, of course, but it would be nice if that was possible.

For example, it is not possible to have a milestone named "alpha" for two different projects.

Attachments (0)

Change History (23)

comment:1 Changed 9 years ago by Cinc-th

In 14645:

  • Allow multiple projects to have the same milestone. Only supported from the main admin panels by now.
  • New SmpMilestone model in smp_model.py
  • Removed some 0.11 compatibility code

Refs #12031 and #12374.

comment:2 Changed 9 years ago by Cinc-th

Owner: changed from falkb to Cinc-th
Status: newaccepted

comment:3 Changed 9 years ago by Cinc-th

In 14646:

Allow setting multiple projects for milestones from the roadmap page.

Refs #12031.

comment:4 Changed 9 years ago by Cinc-th

Summary: Allow for multiple projects to have the same milestonesAllow for multiple projects to have the same milestones or versions

comment:5 Changed 9 years ago by Cinc-th

In 14648:

Force project selection when creating a milestone. This functionality was lost when switching to multiple milestone selection.

Refs #12031.

comment:6 Changed 9 years ago by Cinc-th

In 14649:

Allow multiple projects for a version.

Refs #12031.

comment:7 Changed 9 years ago by falkb

I'm looking for Model::get_milestones_for_projectid(). What is the new API function for it?

comment:8 in reply to:  7 ; Changed 9 years ago by Cinc-th

Replying to falkb:

I'm looking for Model::get_milestones_for_projectid(). What is the new API function for it?

There is currently no such thing. I just implemented the methods I needed while doing other stuff.

Doing a fast scan I found the old model doesn't have something like that either. Having said that I believe the method you are looking for is a worthwhile addition. I may manage to put something together today or tomorrow.

comment:9 Changed 9 years ago by Cinc-th

Status update:

  • Association of multiple projects with milestones and versions is implemented.
  • Roadmap handling needs a massive make over so milestones are properly displayed

I found that the roadmap plugins in SMP are intertwined with the version plugin. This means that you must activate the version plugin to have a proper SMP roadmap.

I intend to separate the functionality so you may for example disable the version stuff without breaking the roadmap. This could mean we have for some time a feature regression while the new roadmap is implemented. To prevent such a regression one had to do the makeover locally and apply everything in a huge changeset. I'm not sure that is feasible.

Version 0, edited 9 years ago by Cinc-th (next)

comment:10 in reply to:  7 ; Changed 9 years ago by Cinc-th

Replying to falkb:

I'm looking for Model::get_milestones_for_projectid(). What is the new API function for it?

New in [14663]:

SmpComponent::get_components_for_project_id()

SmpMilestone::get_milestones_for_project_id()

SmpVersion::get_versions_for_project_id()

All methods return a (possibly empty) list of names.

comment:11 in reply to:  10 Changed 9 years ago by falkb

Replying to Cinc-th:

Replying to falkb:

I'm looking for Model::get_milestones_for_projectid(). What is the new API function for it?

New in [14663]:

SmpComponent::get_components_for_project_id()

Yeah, this is great, works well here (I have another plugin using those functions). Thanks a lot!

I've successfully updated to [14664], and didn't notice any trouble at the first glance, though I didn't try to link a milestone/version to more than one project. Great that the space below the filter-box is used by the project boxes now!!

comment:12 in reply to:  8 Changed 9 years ago by falkb

Replying to Cinc-th:

Doing a fast scan I found the old model doesn't have something like that either.

get_milestones_for_projectid() got lost in model.py with [14647].

comment:13 Changed 9 years ago by falkb

Another question: Could you support a setting which restricts to only 1 project per milestone/version? Here, we need this restriction. :)

comment:14 Changed 9 years ago by Cinc-th

In 14720:

  • New config setting to force single projects or allow multiple projects for versions and milestones. See plugin documentation (plugin administration).
  • Force project selection on milestone edit and creation page opened from the roadmap.

Note that version pages opened from roadmap are not working with multiple projects yet.

Removed 'tag_svn_revision' from setup.cfg, see trac:#11993.

Refs #12031.

comment:15 Changed 9 years ago by Cinc-th

In 14992:

  • Some refactoring and PEP0008 changes.
  • Removed V0.11 compatibility stuff.
  • Preparation for eliminating private roadmap template overriding the Trac default template.

Refs #12031 esp. comment:9

comment:16 Changed 9 years ago by Jun Omae

Your comment via commit hook in #12013 has been removed!

comment:17 Changed 9 years ago by Cinc-th

Thanks for that.

comment:18 Changed 9 years ago by Cinc-th

In 14993:

  • Removed private template for creating roadmap page. Instead the version information is added to the default page.
  • Replaced roadmap grouping component by a new one using Genshi template for grouping.
  • Allow enabling/disabling of grouping.

Note that filtering by project is currently somewhat broken when grouping by project.

Fixes #10087

Refs #12031 esp. comment:9:ticket:12031

comment:19 Changed 9 years ago by Cinc-th

Ticket #12556 was created for the filtering issue.

comment:20 Changed 9 years ago by Cinc-th

In 14999:

  • New interface to provide data for the roadmap page.
  • No more filtering by project in SmpVersionProject. This plugin only adds its data now.
  • Component SmpRoadmapProjectFilter rewritten. It does all the filtering for the roadmap in one place now.
  • SmpRoadmapModule created for proper calling of data gathering functions in other components.

Fixes #12556

Refs #12031 esp. comment:9

comment:21 Changed 9 years ago by Cinc-th

In 15000:

File api.py missing in [14999] added.

Fixes #12556

Refs #12031 esp. comment:9

comment:22 Changed 9 years ago by Cinc-th

Resolution: fixed
Status: acceptedclosed
Summary: Allow for multiple projects to have the same milestones or versionsAllow for multiple projects to have the same milestones

Narrowing this ticket to milestones only.

A follow up ticket for tracking progress for multiple projects for versions has been created: #12557

comment:23 Changed 8 years ago by Ryan J Ollos

In 15390:

0.5.1dev: Fix incorrect import from [15000]

Refs #12556, #12031.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Cinc-th.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.