Using Kitsune
Features across projects
Tie changes in several repositories into one feature, see them on one page, and build them in the right order.
With microservices, each repository is its own Kitsune project. One feature, say refunds, often needs a change in two or three of them. The payments service gets a refund API, the orders service calls it, and the web app adds the button. A feature ties those changes together. You see them on one page and build them in order.
Add a change to a feature#
A change belongs to a feature when its brief (proposal.md, or spec.md in a Kitsune unit) has this front matter
line:
---
feature: refunds
---
To add the line:
- Open the change and choose Add to feature… in its inspector.
- Pick a feature that already exists in your projects, or type a new name in lowercase letters, digits and hyphens.
- Kitsune writes only that line. The file reaches your team with your next commit or Send changes, and everyone who clones the repositories sees the same feature.
Remove from feature takes the line out.
A feature is the set of changes with that line in the projects in view. Those are the active organization's projects, or your personal ones. Archived changes count as done.
Dependencies in another project#
## Depends on can name a change of another project as <project>/<change>:
## Depends on
- payments-service/refund-api
<project> is the repository name (the last part of the origin, without .git) or the Kitsune project name in
lowercase with hyphens. On the feature page, Add dependency… on a change writes this line for you. If a choice
would create a cycle, it is disabled and the reason is shown.
The Features page#
Features in the sidebar lists the features of the projects in view. Each one shows the projects it touches, its tasks done and its open questions. A feature's page shows:
- one row per change, grouped by project, with its state, tasks, open questions, the changes it depends on and its pull or merge request with the CI state;
- the tasks of all rows together, as a bar and as text;
- a build order: numbered steps, each holding the changes whose dependencies are in earlier steps, in any project. The first step with work left is marked Next;
- the open questions of every change, which you can answer right there;
- problems next to the change: an unknown change, a project name that matches no project or more than one, a cycle.
The states are Archived, Built, Done, Waiting for <project>/<change>, Ready to build, In progress, Not started and
No tasks. Each has its own text and mark, so colour isn't the only signal. If a dependency names a project that isn't
on your computer, that project gets a row with Link, and Kitsune reads nothing for it.
Build in order#
On the Next step, Build queue in <project>… opens that project's Build queue with
the feature's ready changes already chosen. You start the queue yourself. Kitsune never starts a build in another
project on its own.
Build queue reads dependencies in other projects. A dependency is met when that change is archived, has every task done, or was built on this computer (merged or not). Until then the change reads Not ready: needs payments-service/refund-api with Open feature. If that project isn't on your computer, Kitsune can't check it, so the change stays ready with the note payments-service/refund-api not checked.
When a build of a change in a feature opens a pull or merge request, the description starts with Part of feature refunds. It lists the feature's other changes, with links to the requests Kitsune knows about. Kitsune doesn't edit requests that are already open in other projects.
The Progress tab shows the feature on each row and can filter by it.
What stays on your computer#
Kitsune reads features from the project folders on your computer and from its own build records. Feature names and change text aren't sent to Kitsune's servers or added to the project index. The page works offline and shows request states from the last check.
The Features page, Add to feature… and Add dependency… need Solo Pro or the Team plan.
Files that already hold a feature: line stay readable on every plan.
