Growth/Team/Task Completion Definition

The Task Completion Definition aims to build a unified understanding of what should be accomplished before a task is considered finished.

A Task Completion Definition can be applied to different development levels, and those depend on the work cycles of every team. This guide is specifically adapted to the workflow and terminology of the Growth Team and looks at a task/feature completion level once it has been defined on Phabricator

How to use this document
A Task Completion Definition is relevant in two different phases of the development workflow:
 * 1) During task definition: Any item should attach a description of the issue, its acceptance criteria and attach an agreed upon checklist with all the criteria that is relevant for this item.
 * 2) During task review and closure: The checklist that was agreed upon task definition should be used to validate the completion of the item.

To write the Task Completion Definition for a given item, you can follow these steps:
 * 1) Identify the appropriate item level: Are we describing an epic, a feature task or a bug?
 * 2) Identify the correct channel for writing down the Task Completion Definition: This would be a Phabricator epic or ticket tagged under "GrowthTeam" and "GrowthExperiments" projects.
 * 3) Use the epic/feature task definition template to write a clear and specific Task Completion Definition in the right channel.
 * 4) Use the epic/feature task checklist template to identify which elements should be also considered to validate the completion of the item. Any items that are agreed to be relevant to this epic/feature task should be copied below the Task Completion Definition description.

Epic
An Epic is described by multiple user stories and can involve one or more sub tasks with different Projects. The user story is described from the point of view of the end user/actor/stakeholder. The acceptance criteria for this epic is a list of functional details that are key to the user story.

Epic completion checklist

 * Functionality
 * ☑️ Every sub task involved in the user story should have its associated tasks in Phabricator
 * ☑️ Every related task should pass its Task Completion Definition checklist
 * ☑️ Tests for every involved project should pass
 * ☑️ Build process for every involved project should pass
 * ☑️ Coverage for every involved project should have improved or stayed the same
 * Design & QA
 * ☑️ Must be reviewed and approved by the design/UX team
 * ☑️ Must be reviewed and approved by Quality Assurance
 * Deployment
 * ☑️ It publicly available in the required environment.
 * Documentation
 * ☑️ Must be have related and updated documentation
 * Internal technical changes: internal repository documentation must be updated (README.md, JSDoc, PHPDoc)
 * Infrastructure technical changes: technical changes that reflect on environment, infrastructure, endpoints or any other area of interest for technical contributors should be reflected on Growth Page
 * Versioning
 * ☑️ If changes in submodule packages are involved, every project that uses this submodule should pass tests and build

Feature Task
A feature task is described by a Phabricator ticket and is usually a child task or user story from an epic. Every feature task should follow the the agreed upon Growth Team style guide(documentation of this to be done)

Feature Task completion checklist

 * Functionality
 * ☑️ The issue has been code reviewed
 * ☑️ The issue has been merged
 * ☑️ The issue passes its acceptance criteria
 * Engineering
 * ☑️ There are existing and passing unit/integration tests
 * ☑️ Tests for every involved project should pass
 * ☑️ Build process for every involved project should pass
 * ☑️ Coverage for every involved project should have improved or stayed the same
 * Design & QA
 * ☑️ If the task is UX/Design related: it must be reviewed and approved by the UX/Design team
 * ☑️ Must be reviewed and approved by Quality Assurance.
 * Documentation
 * ☑️ Related and updated documentation done where necessary
 * Internal technical changes: internal repository documentation must be updated (README.md, JSDoc, PHPDoc)
 * Infrastructure technical changes: technical changes that reflect on environment, infrastructure, endpoints or any other area of interest for technical contributors should be reflected on Growth Page
 * Versioning
 * ☑️ If changes in submodule packages are involved, every project that uses this submodule should pass tests and build

Bug
A bug is described by a Phabricator Ticket and are to be tagged under "GrowthTeam" and "GrowthExperiments" projects only. All bugs should be filled using this Phabricator Form