Page MenuHomePhabricator

Make maintenancebot work
Open, MediumPublicBUG

Description

(Extra thanks to ladsgroup)

Revisions and Commits

rPHABMAINT Phabricator Maintenance Bot

Related Objects

StatusSubtypeAssignedTask
OpenBUGrevi

Event Timeline

revi triaged this task as Medium priority.
revi created this task.
Traceback (most recent call last):
  File "column_mover.py", line 40, in <module>
    gen = "client.getTasksWithProject(client.lookupPhid('#' + case['Project']))
  File "/home/[REDACTED]/phabmaint/lib.py", line 45, in lookupPhid
    raise Exception('No object found for $s' % label)
Exception: No object found for #To_do

Well was meant for testing but... not working as I hoped, probably need to check tomorrow

revi moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Dec 16 2020, 01:34

https://bugs.revi.xyz/api/phid.lookup

{
  "0": "#To_do"
}

Response

{
  "#To_do": {
    "phid": "PHID-PROJ-jv7owa3e2zk3t6liyaop",
    "uri": "https://bugs.revi.xyz/tag/to_do/",
    "typeName": "Project",
    "type": "PROJ",
    "name": "To Do",
    "fullName": "To Do",
    "status": "open"
  }
}

So it's not really not existing project, more of the script not getting the correct phid or not parsing it correctly. The response is same as Wikimedia phab.

@ Wikimedia phab:

{
  "#user-revi": {
    "phid": "PHID-PROJ-o6lbyphk6waaokgv4diq",
    "uri": "https://phabricator.wikimedia.org/tag/user-revi/",
    "typeName": "Project",
    "type": "PROJ",
    "name": "User-revi",
    "fullName": "User-revi",
    "status": "open"
  }
}

Now not emitting errors but… also doing nothing.

Changed something. Let's try again.

revi changed the subtype of this task from "Task" to "Bug".Dec 17 2020, 01:49
revi added a subtask: Unknown Object (Maniphest Task).Dec 18 2020, 15:37