-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLDR-17652 Import Old Votes NullPointerException and other bugs
-Always filter by validPaths to fix NullPointerException that was caused by obsolete/invalid paths -Filter votes sooner to avoid repeatedly looping through votes that should be filtered -For consistency and efficiency, move filtering code from viewOldVotes and submitOldVotes to filterPathsForManualImport, called by getOldVotesRows, called by both viewOldVotes and submitOldVotes -The method filterPathsForManualImport is based on old filterDowngradePaths -In the import db table, use the value processed by current DAIP, not the old DAIP when the vote was made (although neither is guaranteed to produce the correct results in general) -Filter out votes that match the current winning value after applying current DAIP -Filter out votes that match already-imported value (per import table) after applying current DAIP; new method importTableContains -Remove superfluous filter on coverage level; no level is greater than comprehensive -Remove unused REQ_SESS -Use sm instead of CookieSession.sm if already assigned -Comments
- Loading branch information
Showing
1 changed file
with
102 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters