Page MenuHomePhabricator

Show when a task has been closed as a duplicate
Closed, ResolvedPublicFeature

Description

From #wikimedia-releng:

16:41 < wikibugs> Beta-Cluster-Infrastructure: Recent deploys to beta failed: - https://phabricator.wikimedia.org/T128492#2088720 (Luke081515)
16:42 < wikibugs> Beta-Cluster-Infrastructure: Recent deploys to beta failed: - https://phabricator.wikimedia.org/T128492#2076674 (Luke081515) I don't know,
                why this task was created two times.

Wikibugs didn't showed, that this task was closed as a duplicate.

Details

TitleReferenceAuthorSource BranchDest Branch
Enhance Phorge event renderingtoolforge-repos/wikibugs2!17bd808work/bd808/irc-formattingmain
Customize query in GitLab

Event Timeline

bd808 renamed this task from Wikibugs doesn't shows duplicate status to Show when a task has been closed as a duplicate.Feb 17 2024, 8:21 PM
bd808 changed the subtype of this task from "Task" to "Feature Request".
bd808 subscribed.

maniphest.gettasktransactions should include a transaction like this when a task is closed as a dup:

{
      "taskID": "128492",
      "title": "Luke081515 closed this task as a duplicate of T128493: Recent deploys to beta failed.",
      "transactionID": "2088720",
      "transactionPHID": "PHID-XACT-TASK-nglm3lfncggmwx5",
      "transactionType": "mergedinto",
      "oldValue": null,
      "newValue": "PHID-TASK-63xivyyuwhqtcswk6x2u",
      "meta": [],
      "comments": null,
      "authorPHID": "PHID-USER-qlodcndtwpolbdhncjis",
      "dateCreated": "1457109714"
    },
bd808 triaged this task as Medium priority.Mar 10 2024, 2:59 AM
bd808 moved this task from Backlog to Need discussion on the Wikibugs board.
$ .tox/py39/bin/python3
Python 3.9.18 (main, Aug 24 2023, 18:16:58)
[Clang 15.0.0 (clang-1500.0.40.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from wikibugs2.phorge import PhorgeFeedReader
>>> bugs = PhorgeFeedReader()
>>> bugs.get_transaction_info("T128492", ["PHID-XACT-TASK-nglm3lfncggmwx5"])
{'mergedinto': {'old': None, 'new': 'PHID-TASK-63xivyyuwhqtcswk6x2u', 'anchor': '2088720'}}

@Luke081515 What were you thinking you would like to see in the irc message? Ideas I've had so far:

  • Transform it into the equivalent of a "status" event so that something like Open→Duplicate shows in the output
  • Show a new dup:Tnnnnn marker in the spirit of the priority (p:...) and assignee (a:...) change markers
  • Do both?
bd808 changed the task status from Open to In Progress.Mar 12 2024, 2:45 AM
bd808 claimed this task.
bd808 moved this task from Need discussion to Doing on the Wikibugs board.
  • Do both?

Seems like the way to go

Example from the wild:

[20:41]  <  wb-test> Abstract Wikipedia team, Internet-Archive, Wikifunctions, WikiLambda: ZObject label is displayed in wrong language - https://phabricator.wikimedia.org/T359660#9625040 (Jdforrester-WMF) →Duplicate dup:T343483