Page MenuHomePhabricator

Clean up Phab DB after erroneously adding "Unknown Object (Commit)" to tasks by importing Phab upstream project
Closed, DeclinedPublic

Description

This problem was reported upstream last November: https://secure.phabricator.com/T6516

The import of Phabricator upstream into Differential created comments and status changes to tasks in Wikimedia Phabricator because upstream task numbers match local task numbers.
Only affects 4-digit-or-less tasks.

We have already manually reverted all status changes (performed by "Diffusion" or "epriestley", I did not spot any other accounts existing both here and in upstream by going through https://phabricator.wikimedia.org/feed/query/projects/ ), but the

Commits
Unknown Object (Commit)

part is ugly and confusing and should be reverted if possible.

See for instance T603, T4570...

Event Timeline

Aklapper raised the priority of this task from to High.
Aklapper updated the task description. (Show Details)
Aklapper added a project: Phabricator.
Aklapper added subscribers: Aklapper, demon, chasemp.
Qgil set Security to None.

We have already manually reverted all status changes

Well, I had to correct a few, e.g. T3342. There might be others?

In T91488#1087649, @TTO wrote:

We have already manually reverted all status changes

Well, I had to correct a few, e.g. T3342.

See the timestamps - you were faster and corrected it (thank you for your help!) before I wrote my comment above. :)

I did T2323 at 10:17 UTC, which was after you did your changes?

@TTO: Uhm. Thank you a lot for double-checking. My fault, https://phabricator.wikimedia.org/feed/query/projects/ by default only includes projects I'm member of.
I'm going through that list again now.

Statuses should(TM) be all fixed now. Again, thanks for showing me that I should really double-check... sorry. :-/

You should reopen closed bugs (like T3581)

We did, sorry if any slipped through the cracks. Thanks for reopening.

You should reopen closed bugs (like T3581)

Sigh. Again, thanks for catching this. I only checked for changes associated to epriestley, but looks like
https://phabricator.wikimedia.org/feed/query/9XVX7CRbpoer/?after=6122294652510258483 allows me to search for "Diffusion changed the status" strings and for "Diffusion closed" strings.

Doing so now...

Alright, that's also fixed now. (Had to reopen 2 more tasks, 2 were already reopened thanks to Umherirrender and Quim.)
Crossing fingers that we're really done with task status reverting now.

Nope, T4592 is still closed. I don't know the Phabricator database structure, but wouldn't it be easier to build a query of all tasks that now have a different status than yesterday and work through that list?

@scfc

select maniphest_task.id, maniphest_transaction.oldValue, maniphest_transaction.newValue from maniphest_task, maniphest_transaction where maniphest_task.phid = maniphest_transaction.objectPHID and maniphest_transaction.transactionType='status' and maniphest_transaction.dateModified > UNIX_TIMESTAMP(NOW() - INTERVAL 24 HOUR);

P354

@scfc: Ahem, I hadn't search the feed for "epriestley closed this" but only for "epriestley changed the status". Thank you. Done now.

/me sighs even louder than earlier today.

Aklapper lowered the priority of this task from High to Lowest.Apr 21 2015, 7:43 PM

Any kind of status changes were corrected already.
The "Unknown Object" part is still there in some/most/all of the tasks but nobody has worked on this part. Not high priority anymore, IMHO.

The related report upstream has been resolved. Please read https://secure.phabricator.com/T6516#111349

Yeah that fixes it from happening again.

Aklapper claimed this task.

"Not a high priority" doesn't mean declined imho.

Bugreporter changed the task status from Stalled to Open.May 21 2015, 5:07 AM
Bugreporter subscribed.

"nobody has worked on this part" does not mean "can currently not be acted on". This is not waiting for further input.

Probably we can remove all Diffusion Commit or all changes by Diffusion.

@Bugreporter: Why did you remove the assignee of this task (demon)?

I don't think we want to fiddle with the DB eight years after.
I checked the DB for any tickets accidentally closed in that timeframe and the closing action assigned to Evan via SELECT t.id FROM phabricator_maniphest.maniphest_task t WHERE t.closerPHID = "PHID-USER-ic77k5i4bubodmfnpbui" AND t.closedEpoch > 1425399873 AND t.closedEpoch < 1425572673 AND t.id < 7500; and there are no results, thus nothing to fix anymore, task status wise.