Page MenuHomePhabricator

No custom.field edit history is displayed after arcanist maniphest.edit
Closed, ResolvedPublic

Description

Adding maniphest.customfields:

{
  "redmine:edited-on": {
    "name": "Edited on",
    "type": "text",
    "description": "Date of editing this ticket. In Phabricator represented by date of Transaction",
    "edit": true
  },
  "redmine:edited-by": {
    "name": "Editor",
    "type": "text",
    "description": "The ticket was edited by",
    "edit": true
  },
  "redmine:milestone-id": {
    "name": "Milestone ID",
    "type": "text",
    "description": "Milestone ID in redmine",
    "edit": true
  }
}

And executing maniphest.edit with:

[
    {
      "value": "UI Changes Page",
      "type": "title"
    },
    {
      "value": "resolved",
      "type": "status"
    },
    {
      "value": "\"Confirm Password\" null",
      "type": "description"
    },
    {
      "value": "50",
      "type": "priority"
    },
    {
      "value": "2016/02/24 07:53:02 +0100",
      "type": "custom.redmine:edited-on"
    },
    {
      "value": "MHe",
      "type": "custom.redmine:edited-by"
    },
    {
      "value": "Frontend Version 1",
      "type": "comment"
    },
    {
      "value": "2016/02/26 18:38:10 +0100",
      "type": "custom.redmine:edited-on"
    },
    {
      "value": "He",
      "type": "custom.redmine:edited-by"
    },
    {
      "value": "2016/04/21 19:11:28 +0200",
      "type": "custom.redmine:edited-on"
    },
    {
      "value": "He",
      "type": "custom.redmine:edited-by"
    },
    {
      "value": "2016/05/03 16:16:40 +0200",
      "type": "custom.redmine:edited-on"
    },
    {
      "value": "He",
      "type": "custom.redmine:edited-by"
    },
    {
      "value": "redmine3",
      "type": "status"
    },
    {
      "value": "resolved",
      "type": "status"
    }
  ]

No edits are displayed for 'edited-by' and 'edited-on' when I browse to 'http://phabhost/maniphest/query/all/' (phabhost=https://test-osw3d3xz57bn.phacility.com). What should I do if I want to display the edit history of my custom fields?

Thx in advance

Event Timeline

epriestley claimed this task.
epriestley added a subscriber: epriestley.

When you apply a group of changes with a *.edit endpoint, they are all applied at once, as though you had submitted an "Edit" form or a comment with actions. In particular, this means:

  • The first time you create an object, all transactions you apply show only as "User created this <object>."
  • Duplicate transactions (for example, setting "status" to multiple values) are discarded.

If you want to import a series of edits, make multiple calls to *.edit, applying one edit with each call.

Thx, could you give me please an example transaction, where another author than 'user' will be listed in history as editor?

By design, it is not possible to impersonate other users over Conduit. There is no transaction you can construct which will list any user other than the authenticated user as the author.

May is it possible using a maniphest.customfield like 'edited-by'?

No. Phabricator is explicitly designed to make it impossible to impersonate other users.

I dont want to impersonate. I want to preserve a history from a redmine stack using a customfield like edited-by. Unfortunately this field wont be displayed in tasks/all. What should I do?

Why the customfields are not displayed in the history in the maniphest view, but only once in details?