Page MenuHomePhabricator

Modernize Slowvote Search
ClosedPublic

Authored by chad on Jul 21 2015, 9:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 5:02 AM
Unknown Object (File)
Wed, Dec 4, 1:46 AM
Unknown Object (File)
Tue, Dec 3, 2:03 PM
Unknown Object (File)
Tue, Dec 3, 2:03 PM
Unknown Object (File)
Tue, Dec 3, 2:03 PM
Unknown Object (File)
Tue, Dec 3, 2:02 PM
Unknown Object (File)
Tue, Dec 3, 1:42 PM
Unknown Object (File)
Sun, Dec 1, 1:48 AM
Subscribers

Details

Reviewers
epriestley
btrahan
Commits
Restricted Diffusion Commit
rP3bfb43629602: Modernize Slowvote Search
Summary

Updates slowvote search forms and results. Note I can't seem to get the Joins clause to fire anymore, is there a modern equiv?

Test Plan

Search on polls by state, votes, author, projects.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Modernize Slowvote Search.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added reviewers: epriestley, btrahan.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
16

I think this is wrong / unnecessary? It will make every query only show stuff you've voted in.

50–54

Or ThreeStateField with "don't care, voted, not voted", although this is a larger change.

This revision is now accepted and ready to land.Jul 22 2015, 8:25 PM
chad planned changes to this revision.Jul 22 2015, 8:34 PM

I'll take a deeper look.

Also, I never got the JOIN clauses to trigger, did I miss something simple?

Oh, try implementing buildJoinClauseParts instead of buildJoinsClause?

I tried, but I'll try again. Maybe the other bug was overshadowing my results.

derp, it was Join vs Joins in the method name that sunk me.

chad edited edge metadata.
  • Fix Joins
This revision is now accepted and ready to land.Jul 22 2015, 11:13 PM
This revision was automatically updated to reflect the committed changes.