Page MenuHomePhabricator

Remove VotableInterface from PonderQuestion
ClosedPublic

Authored by chad on Aug 9 2015, 1:57 AM.
Tags
None
Referenced Files
F14051566: D13833.diff
Fri, Nov 15, 2:00 AM
F14038450: D13833.diff
Sun, Nov 10, 11:42 PM
F14024824: D13833.diff
Thu, Nov 7, 12:36 PM
F14017965: D13833.diff
Tue, Nov 5, 1:54 AM
F13997902: D13833.diff
Thu, Oct 24, 6:43 AM
F13991726: D13833.id33410.diff
Tue, Oct 22, 12:25 PM
F13967747: D13833.id.diff
Oct 16 2024, 3:39 PM
F13966919: D13833.id33408.diff
Oct 16 2024, 10:28 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
Branch
ponder-question-vote
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7545
Build 8130: [Placeholder Plan] Wait for 30 Seconds
Build 8129: arc lint + arc unit

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.