grimoirelab-elk icon indicating copy to clipboard operation
grimoirelab-elk copied to clipboard

Replace hardcoded list of Maniphest open statūs by querying actual config of Phorge

Open aklapper opened this issue 7 years ago • 6 comments

From /elk/phabricator.py:

if eitem['status'] not in [TASK_OPEN_STATUS, 'Spite', 'Stalled']:

Hardcoding values here looks brittle (and error-prone if some customizations have taken place).

Conduit's maniphest.querystatuses API call offers the values of maniphest.statuses in the global Phabricator config, listed under openStatuses. You may want to consider this. :)

aklapper avatar Mar 21 '17 11:03 aklapper

We will keep the statuses hardcoded in a list to avoid creating new calls to the API.

Thank you for your proposal.

jjmerchante avatar Oct 11 '23 14:10 jjmerchante

@jjmerchante Could you elaborate why one (1) single additional API call to pull the statuses (and cache them in Grimoirelab) is problematic?

The current situation means (for our installation with customized statuses) that data will be incomplete and thus useless.

aklapper avatar Oct 11 '23 16:10 aklapper

@aklapper how long do you will use phabricator still? we have plans to drops the support of this backend since phabricator support and development stopped. I know you in wikimedia have a plan to replace it but not sure about the timeline.

sduenas avatar Oct 13 '23 15:10 sduenas

@sduenas: https://we.phorge.it/ (a fork of stopped Phabricator) is quite alive; Wikimedia has no plan to replace its use of Phorge. The backend should likely be renamed from "Phabricator" to "Phorge" in my opinion.

aklapper avatar Oct 13 '23 22:10 aklapper

I didn't know about that. We definitely should rename it. I'll open a ticket in grimoirelab repository.

sduenas avatar Oct 16 '23 07:10 sduenas

Ticket opened: https://github.com/chaoss/grimoirelab/issues/614

sduenas avatar Oct 16 '23 07:10 sduenas