Page MenuHomePhabricator

Remove VotableInterface from PonderQuestion
ClosedPublic

Authored by chad on Aug 9 2015, 1:57 AM.
Tags
None
Referenced Files
F13175456: D13833.diff
Wed, May 8, 5:17 AM
Unknown Object (File)
Tue, May 7, 7:24 AM
Unknown Object (File)
Fri, May 3, 6:12 AM
Unknown Object (File)
Sat, Apr 27, 9:57 AM
Unknown Object (File)
Thu, Apr 25, 1:03 AM
Unknown Object (File)
Mon, Apr 15, 4:29 AM
Unknown Object (File)
Apr 5 2024, 10:49 AM
Unknown Object (File)
Mar 29 2024, 8:09 PM
Subscribers

Details

Summary

Ref T6920, This removes the PonderVotableInterface from PonderQuestion and assocaited code. Also... never used?

Test Plan

Visit Ponder, See List, New Question, Add Answer.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Remove VotableInterface from PonderQuestion.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.

Should I also write a script to clean out edge/edgedata?

epriestley edited edge metadata.

You can just write a .sql file which does this, I think:

/* Removes Ponder vote data. */

DELETE FROM {$NAMESPACE}_ponder.edge
  WHERE type IN (17, 18, 19, 20);

DELETE FROM {$NAMESPACE}_user.edge
  WHERE type IN (17, 18, 19, 20);

That should get rid of everything without requiring a messier/more complicated migration (that also gets rid of the answer votes).

However, it might be good to wait a month or so to do this, just in case someone really wants their vote data. Keeping the edges around for a bit won't hurt anything.

This revision is now accepted and ready to land.Aug 9 2015, 3:26 AM

I think I'm just going to convert the +1 answer votes as 'helpfuls' and drop everything else, but good idea on keeping the data for now.

This revision was automatically updated to reflect the committed changes.