diff --git a/CHANGELOG.md b/CHANGELOG.md index 664d0a93..fb2356df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- `do-epic` and `todo-item edit` save an issue's scores in a Jira epic again. Jira refuses an edit that holds only issue properties, so 0.15.0 posted the comment with the scores but lost the scores themselves, and scored the issue again on the next run; each score now goes through the issue property's own endpoint. - `task-bench` plants bugs in Rust files too, from the mutants cargo-mutants catches, and tells Haiku the panic message `cargo test` prints. - `task-bench --tasks shipped-features` benches rebuilding features the project shipped: it takes each one's change out of the code, tells Haiku the tagline of its plan item, and checks the build with the tests that change holds. `--shipped ` sets how many it takes, and a feature whose branch landed by fast-forward is passed over. - `task-bench` plants a Python mutant in a file whose lines end in CRLF, which it could not re-apply before, and a Go mutant there keeps applying. diff --git a/todo.md b/todo.md index c8b7be0d..7804377a 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,6 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 533 | 0.15.1 | | defect | **Set an issue's scores in Jira through its issue-property endpoint, so do-epic and `todo-item edit` save them where Jira refuses an edit that holds only properties.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 3, 1.1 by 2 | 1.7 | | 531 | 0.16.0 | | | **Bench the shipped features of a branch that landed by fast-forward: take as the feature the commits from the one after the item finished before it, up to the commit that took its item out of the plan.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 3 | 1.1 | | 524 | 0.16.0 | | owner | **Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names.** | 3 | 2 | 1 | 4 | 6 | 1.1 by 3 | 0.5 | | 532 | 0.16.0 | | | **Leave out of a `task-bench` fix a change Haiku makes to a Rust test that stands in the file of the code it tests.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 1 | 0.4 | @@ -109,20 +108,6 @@ ## Details -### 533. Set an issue's scores in Jira through its issue-property endpoint, so do-epic and `todo-item edit` save them where Jira refuses an edit that holds only properties. - -Jira Cloud's edit request, `PUT /rest/api/3/issue/{key}`, refuses a body that holds `properties` without `fields` or `update`: it answers 400 "one of 'fields' or 'update' required". do-epic's scoring sends exactly that body, after it has posted the comment that tells the team the scores. So on a team's epic every scored issue got the comment but no scores, and each later run would score and comment on it again. `todo-item edit` sends the same body where it changes only an issue's scores, which is all it may change on an issue a person filed. The test fakes accepted that body, so no test caught the refusal. - -Fix: one function in `bin/atlassian/jira.py` sends an issue edit. Where the edit sets only issue properties, it sets each through `PUT /rest/api/3/issue/{key}/properties/{propertyKey}`, whose body is the property's value. Both callers use it, and the fakes in both callers' tests refuse an edit that holds neither `fields` nor `update`, as Jira does. - -Touches: -- `bin/atlassian/jira.py`: `edited` -- `bin/atlassian/test_jira.py`: `Edited` -- `bin/do_epic/backend/jira.py`: `JiraEpic.set_scores` (small) -- `bin/do_epic/backend/test_jira.py`: `FakeJira` (small) -- `bin/plan_store/jira_epic.py`: `JiraPlan.edit` (small) -- `bin/plan_store/test_jira_epic.py`: `Editing` (small) - ### 531. Bench the shipped features of a branch that landed by fast-forward: take as the feature the commits from the one after the item finished before it, up to the commit that took its item out of the plan. Today `task-bench --tasks shipped-features` passes such a feature over. A fast-forwarded branch's commits keep a commit time each, so `branch_chunks` cuts each commit into a chunk of its own, and the chunk that took the item out of the plan holds only the feature's last commit. This project landed 114 of its 260 shipped features that way, and none of those can be benched. A squash-merged feature whose one commit was authored and committed at the same time would be passed over too; whether a forge writes such commits is not checked.