This commit was merged in pull request #711.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user