Abstract Wikipedia team/Definition of Done
In agile development, a Definition of Done (DoD) is a unified understanding of what should be accomplished before a user story, a task or a product release is considered finished.
A Definition of Done 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 Abstract Wikipedia team. We define three main levels of completion: Phase, milestone or epic, and task.
Phabricator templates
[edit]Click on these links to:
- Add a Critical User Journey/Epic
- Add a Design task to Phabricator
- Add a Front-end task
- Add a Front-end bug report
- Add a Back-end task
- Add a Back-end bug report
Template links have been created with this Phabulous tool.
How to use this document
[edit]A Definition of Done specification is relevant in two different phases of the development workflow:
- During phase/epic/task definition: Any item should include a description with the relevant information (list of user stories, detailed user story, detailed bug definition, etc.) and attach an agreed upon checklist with all the criteria that is relevant for this item.
- During phase/epic/task review and closure: The checklist that was agreed upon phase/epic/task definition should be used to validate the completion of the item.
To write the DoD for a given item, you can follow these steps:
- Identify the appropriate item level: Are we describing a phase, an epic or milestone of this phase, or a granular task as part of this epic or a bug?
- Identify the correct channel for writing down the DoD: Should this be written in our project page? Should this be a Phabricator epic or ticket? Will everyone know where to find it?
- Use the phase/epic/task definition template to write a clear and specific DoD in the right channel.
- Use the phase/epic/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 phase/epic/task should be copied below the DoD description.
Phase
[edit]A development Phase is a collection of user stories (see the Abstract Wikipedia Phase definitions).
Phase definition template
[edit]Phase <ID>: <title>
User stories:
Acceptance criteria:
Completion checklist:
|
Phase completion checklist
[edit]- Functionality
- ☑️ Every user story should be covered by a milestone/epic
- ☑️ Every child milestone/epic must be marked as complete
- ☑️ Every phase acceptance criterion must be met
- ☑️ Tests for every project should pass
- ☑️ Build process for every project should pass
- ☑️ Coverage for every project should have improved or stayed the same
- ☑️ All
FIXME
annotations should be resolved - ☑️ All
TODO
annotations should have an associated Phabricator task ID
- Design
- ☑️ Every user story reflected on a user-facing functionality must follow the design system
- ☑️ Every user story must be reviewed and approved by the design/UX team
- Documentation
- ☑️ Every user story 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 MediaWiki extension pages.
- Product or model changes: should have related documentation updated in meta
- User-facing features: should have an initial user guide draft that will be moved to wikifunctions.org
- ☑️ Phase completion newsletter must be sent
- ☑️ Every user story must be have related and updated documentation
- Versioning
- ☑️ All projects must have unified submodule versions
- ❓ Release version?
Critical User Journey/Epic
[edit]A Critical User Journey (CUJ) is described by one Job To Be Done (JTBD) and can involve one or more projects. The JTBD is written from the perspective of the end user/actor/stakeholder, and as such it requires a clear understanding of who this end user is. A JTBD's goal is to clearly understand what the user is trying to achieve, without making strong assumptions about the solution.
The acceptance criteria enriches this narrative by adding functional details to the JTBD, also from the perspective of what the user would expect to accomplish.
CUJ/Epic Phabricator template
[edit]CUJ/Epic definition template
[edit]
CUJ/Epic <ID>: <title> Job to be done One paragraph describing the situation of the user and what they expect to accomplish, following the format: "When <situation>, I want to <job> so I can <outcome or motivation>". Acceptance criteria A user of some type...
Completion checklist
|
CUJ/Epic completion checklist
[edit]- Functionality
- ☑️ Every project involved in the user story should have its associated tasks in Phabricator
- ☑️ Every related task should pass its DoD 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
- ☑️ Design review on updated software
- ☑️ Test concept via an Alpha, Beta or Prototype with partner communities and those potentially impacted by feature, in their preferred language
- 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 MediaWiki extension pages.
- Product or model changes: should have related documentation updated in meta
- ☑️ Must be have related and updated documentation
- Versioning
- ☑️ If changes in submodule packages are involved, every project that uses this submodule should pass tests and build
- Accessibility
- ☑️ Implemented features for the CUJ are double checked for compliance with Accessibility guide for developers
- Unresolved issues are written up in Phabricator tasks and completed
- ☑️ Implemented features for the CUJ are double checked for compliance with Accessibility guide for developers
Design
[edit]Design task Phabricator template
[edit]Design task definition template
[edit]
Design: <title of the critical user journey> Discovery and definition
Research and plan
Design and develop
(Engineering implementation happens here) Test and iterate
Implement and refine
|
Design task completion checklist
[edit]Discovery and definition
- ☑️ Reviewed by PM
- ☑️ Reviewed by Head of Special Projects
Research and plan
- ☑️ Reviewed by PM
- ☑️ Reviewed by Head of Special Projects
- ☑️ Reviewed by the Engineering team (or Workstream Leads)
Design and develop
- ☑️ Compared against the design style guide accessibility principles
- ☑️ Reviewed by Design System team
- ☑️ Reviewed by Head of Special Projects
- ☑️ Reviewed by the Engineering team
- Designs available on Figma (and links attached to Phabricator tasks)
(Engineering implementation happens here)
Test and iterate
- ☑️ Reviewed by PM
- ☑️ Reviewed by Head of Special Projects
Implement and refine
- ☑️ Reviewed by the Engineering team (or Workstream Leads)
Task/Bug
[edit]A task is described by a Phabricator ticket and involves one project only, which should be appropriately tagged in the ticket. Every Phabricator task should follow the AW Phabricator style guide.
Task/Bug Phabricator templates
[edit]- Add a Front-end task to Phabricator
- Add a Front-end bug report to Phabricator
- Add a Back-end task to Phabricator
- Add a Back-end bug to Phabricator
Front-end Task/Bug Completion Checklist
[edit]- Functionality:
- ☑️ The solution meets the expected behavior/acceptance criteria described above
- ☑️ All the child tasks are closed
- ☑️ The issue has been peer reviewed
- ☑️ The issue has been merged
- Engineering:
- ☑️ There are existing and passing unit/integration tests effectively testing its success and its failure
- ☑️ All new classes/methods are covered by unit tests
- ☑️ [BUG] Explicit regression test mentioning the bug
- Design:
- ☑️ Design review of live version in accordance to design standards
- Documentation:
- ☑️ All new functions/methods are annotated
- Accessibility:
- ☑️ New functionality is compared against the Accessibility guide for developers
- ☑️ Accessibility concerns are either address or, if the work is sufficiently large, a new Phabricator ticket is created and linked to this ticket
- ☑️ All user facing strings are internationalized
Back-end Task/Bug completion checklist
[edit]- Functionality:
- ☑️ The solution meets the expected behavior/acceptance criteria described above
- ☑️ All the child tasks are closed
- ☑️ The issue has been peer reviewed
- ☑️ The issue has been merged
- Engineering:
- ☑️ There are existing and passing unit/integration tests effectively testing its success and its failure
- ☑️ All new classes/methods are covered by unit tests
- ☑️ [BUG] Explicit regression test mentioning the bug
- Documentation
- ☑️ All new functions/methods are annotated
- ☑️ Related documentation in MediaWiki extension pages or Abstract Wikipedia pages in meta should be updated with the related changes
- E.g. New API being created should be reflected in WikiLambda API help page
- E.g. New error types being added should be reflected in the Representation of errors help page
- E.g. New keys being added to built-in types should be reflected in the Function model help page
- Versioning
- ☑️ If changes in submodule packages are involved, every project that uses this submodule should pass tests and build
- Accessibility:
- ☑️ New functionality is compared against the Accessibility guide for developers
- ☑️ Accessibility concerns are either address or, if the work is sufficiently large, a new Phabricator ticket is created and linked to this ticket
- ☑️ All user facing strings are internationalized