1.7 KiB
1.7 KiB
PR#84: JournalProposer at a Mutation-CRAP of at Most 15
Version: patch
WARNING: This document describes only the change applied in this PR. It may already be outdated once the next PR is merged. Historic PR documentation is not maintained along with new PRs; treat it as a snapshot.
Problem
The next feature, an AI summary as the description of a Werkjournal entry, changes journal/JournalProposal.kt.
A branch fails on each method above a Mutation-CRAP of 15 in a file it changes, and four methods of JournalProposer are above:
inRoom 90, targetOf 84, propose 41 and description 16.
Non-Goals
- No change of the proposal; the same day gives the same file as before.
Specification
None; the behaviour stays the same.
Solution
proposehands each session and each item toaddSession,addItemandaddGitea, and the short stories tojoinShortStories.targetOfasksholdswhether a project takes the work, andunmappedNamehow to name work that none takes; both andinRoomare functions of the companion, tested apart.descriptiontakes its pull requests frompullRequests.- New tests in JournalProposerTest: the four ways a project holds work, a room by ID or name, the name of unmapped work, Taiga, Matrix and builds in one day, and the pull requests of the evidence.
pitestPartial mutationCrapCheckagainst main: the highest Mutation-CRAP ofJournalProposeris 14,storyOf.
Open Questions
None.
Follow-up PRs
- An AI summary as the description of a Werkjournal entry, with a switch in the tab Journal (
#dash.journal.proposal).