-
Notifications
You must be signed in to change notification settings - Fork 31
Feature/fix candidate test syntax #247
Feature/fix candidate test syntax #247
Conversation
I think that election years and cycles need to stay separate. Having a list of election years is especially helpful to see if there was a special election. I like that we list that information on the candidate page. |
It seems odd that dimcandproperties.election_yr and dimcandoffice.cand_election_yr don't line up. Any insight on that @dcpcc1967 or @jwchumley |
@LindsayYoung: One option would be to preserve separate cycles and election years columns (I definitely agree that we should do this), but calculate both columns from the same source--e.g. |
I'm not seeing it. Can you give examples? From: Lindsay Young [email protected] It seems odd that dimcandproperties.election_yr and |
Example: Norman H Reece (H4CA07048) has election years {1998} from For a list of candidates with different year sets from
|
Norman H Reece (H4CA07048) seems to be wrong in cfdm.dimcandproperties. I've asked the DW developers to look at this case. If comparing to the Viewer, you generally will not see candidate activity prior to 1995-1996. 2000, as two-year period, is included because Mr. Reece's PCC was active during 1999-2000 even though he was no longer a candidate. |
Feature/fix candidate test syntax
@PaulClark2 thanks for clarifying! A few follow-ups:
|
|
@arowla @LindsayYoung: this patch also changes the way we render election years in the candidates results page. Before, we were filtering on candidate cycles but rendering the range of candidate election years, which can be different--especially after the change we made to candidate cycles earlier today. This patch uses cycles for both filtering and rendering, so that we get consistent results and passing tests. But there's still a potential inconsistency lurking here: we're now rendering cycles data on the search page but election years data on the detail page. These values can be different, since cycles is based on
dimcandproperties.election_yr
, and election years is based ondimcandoffice.cand_election_yr
. Do you all think it would be all right to build cycles and election years from the same column, or should they reflect (potentially) different things?