Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The {election_ballot} table should be exposed to Views.
Comment | File | Size | Author |
---|---|---|---|
#4 | election-election_ballot_views-2623920-4-D7.patch | 3.87 KB | Liam Morland |
#2 | election-election_ballot_views-2623920-2-D7.patch | 4.12 KB | Liam Morland |
Comments
Comment #2
Liam MorlandComment #3
pjcdawkins CreditAttribution: pjcdawkins commentedAgreed on the feature and thanks for the patch... I have a few comments.
I think the title and help values should be wrapped in
t()
I don't see a specific reason to disable click sorting on this or most of the other fields. Makes sense for the MD5 hash, but for the other fields click sorting seems like a reasonable thing to do.
This (abstain) should probably be views_handler_field_boolean.
Comment #4
Liam MorlandThanks.
Comment #5
pjcdawkins CreditAttribution: pjcdawkins commentedCommitted. I tweaked the wording of some things, hope you don't mind.
Comment #7
OpsTao CreditAttribution: OpsTao commentedI am trying to get the advantage of the latest Dev version to get the patch changes, but unable to get the module to update properly, it appears. After using the usual method I used for all other module updates, and finding there were several DB updates to be applied and were applied, the site's module list is still reporting version 7.x-1.0-beta27+9-dev and I don't find new options in Watchdog Views. (I assume I should be seeing them there?) Suggestions?
--Thanks--
Comment #8
Liam MorlandI've never used Watchdog Views, so I don't know what it ought to display. The change in this issue just makes election_ballot data available in Views, so one can make a View showing who voted.
Comment #9
pjcdawkins CreditAttribution: pjcdawkins commented@OpsTao beta27+9-dev is the latest version, that's fine. It's not taking data from Watchdog, it's getting it directly from the ballot table. Create a new View (in Admin -> Structure -> Views) which shows "Election ballots".
Comment #10
OpsTao CreditAttribution: OpsTao commentedOK, I am partly there now, but stuck on this: from what I see, the View can only show the User ID and Post ID by the value known by the site's code. In order for the list to be useful to the client, I am hoping to substitute the Username for User ID, and listed Post Name for Post ID in a table view. Possible, and if so, hints on how to get there?
--UPDATE--
Never mind, I think I see it now: Add the needed relationships to the View, then those fields become available to add in the Fields section of the View.