Page MenuHomePhabricator

Remove VotableInterface from PonderQuestion
ClosedPublic

Authored by chad on Aug 9 2015, 1:57 AM.
Tags
None
Referenced Files
F14302467: D13833.id33408.diff
Tue, Dec 17, 7:03 PM
Unknown Object (File)
Sat, Dec 7, 4:37 AM
Unknown Object (File)
Wed, Dec 4, 5:18 PM
Unknown Object (File)
Wed, Nov 27, 3:44 AM
Unknown Object (File)
Wed, Nov 20, 2:09 PM
Unknown Object (File)
Wed, Nov 20, 12:47 PM
Unknown Object (File)
Tue, Nov 19, 3:43 AM
Unknown Object (File)
Nov 15 2024, 2:00 AM
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.