Skip to content

Add reference and referenceId fields instead of productTemplateId in milestoneTemplates #151

Closed
@vikasrohit

Description

@vikasrohit

To decouple the timeline/milestones from projects/phase/products and to be better at supporting timelines/milestones for other entities than project/phase/product, we need to use reference and referenceId in stead of productTemplatedId in ProductMilestoneTemplate model.
Purpose of this ticket to:

  1. Rename the ProductMilestoneTemplate model to MilestoneTemplate
  2. do the required changes in the model and its CRUD operations.
  3. Create new endpoint /v4/milestoneTemplates which lists all the milestone templates for the given reference and referenceId
  4. Update the /v4/productTemplates/123/milestones endpoint to fetch milestone templates using API call to the new endpoint created in 3.
  5. Update the other places in project service itself, where we are looking for milestone templates based on productTemplateId e.g. project's create endpoint uses productTemplateId to look for all required milestone templates.
  6. Update unit tests
  7. Update swagger and postman docs

fyi @RishiRajSahu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions