Skip to content

Should features add themself to versions ? #34

@danieleTrimarchi

Description

@danieleTrimarchi

Currently we do define feats, then add them to a version.
Features could have version in the args, so that they can add themself directly to the version :

class Feature(object):

    def __init__(
        self,
        featName: str,
        remainingEffort: int,
        version : Version = None,
        assignee: DevGroup.DevBase = None,
        percentageLoad: numbers.Number = 0,
        startDate: date = datetime.today().date(),       
    ):

   ...

  if version is not None : 
      version.addFeat(self)
   

Note the condition if version is not None, required to assure that Features (actually : we should rename them into Taks) can also live standalone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions