Page MenuHomePhabricator

Testing data needed for T91202
Closed, ResolvedPublic

Description

This is a task made with the "advanced" form where I have set the priority to UBN! on task creation. Inquiring minds want to know if the maniphest.gettasktransactions records will show that priority value.

The hypothesis is that there should be an event that looks something like:

{
      "taskID": "<something>",
      "title": "bd808 raised the priority of this task from \"\" to \"Unbreak Now!\".",
      "transactionID": "<something>",
      "transactionPHID": "<something>",
      "transactionType": "priority",
      "oldValue": null,
      "newValue": 100,
      "meta": [],
      "comments": null,
      "authorPHID": "PHID-USER-ll6tmaogat2b5q7tnqas",
      "dateCreated": "<something>"
    },

Event Timeline

bd808 triaged this task as Unbreak Now! priority.Feb 17 2024, 12:47 AM
bd808 created this task.
bd808 claimed this task.
$ curl https://phabricator.wikimedia.org/api/maniphest.gettasktransactions \
    -d api.token=api-token \
    -d ids[0]=357842

response contains:

{
  "taskID": "357842",
  "title": "bd808 triaged this task as \"Unbreak Now!\" priority.",
  "transactionID": "9552649",
  "transactionPHID": "PHID-XACT-TASK-6l5lpy54l5na5xt",
  "transactionType": "priority",
  "oldValue": "90",
  "newValue": "100",
  "meta": {
    "core.create": true,
    "core.groupID": "mbhiwr75e3jquhwkbr5tbtolyyqvztci"
  },
  "comments": null,
  "authorPHID": "PHID-USER-ll6tmaogat2b5q7tnqas",
  "dateCreated": "1708130874"
},

Not exactly what I theorized, but close. I find it to be an interesting internal detail that the task is born with the default Needs Triage priority which is then set to the edit form's value. I really did expect it to start as a null instead.