Version 4.5.0 #165
julien-boudry
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
A major release, including two new voting methods, additions to the internal API, and additions to the public API. It also comes with its fair share of refinements and fixes in various areas, notably the Console.
Added
Voting Methods
Public API
Result->pairwise
contain an immutable and explicit pairwise array, from the object creation.Election->countVotes()
,Election->countValidVoteWithConstraints()
,Election->countValidVoteWithConstraints
andElection->sumValidVotesWeightWithConstraints
now optionally support votes filtering by tags.CondorcetElectionFormat::parameters
property, an array containing raw and untouched parameters from input, including non-standard parameters.Internal Modules API
VotesDeductedApprovals
Vote->getContextualRankingWithCandidatesKeys(Election $election)
to prevent code deduplication inside the votes method code.Changed
Public API
CondorcetPHP\Condorcet\Tools\Converters\CondorcetElectionFormat
class toCondorcetPHP\Condorcet\Tools\Converters\CEF\CondorcetElectionFormat
ParseVotesMaxNumberReachedException
for max parsing fail.Election::maxParseIteration
andElection::setMaxVoteNumber
are now public properties and they can be accessed or modified directly. Corresponding setter and getter methods still exists but may be deprecated with v5.0.Console
Internal changes
Engine
Election->removeAllVotes()
used in conjunction withElection->allowsVoteWeight
in a particular sequence. And prevent similar cases in the future. Investigate about removeVote feature and Pairwise integrity #153Dev
RunInSeparateProcess
strategy, useBackupStaticProperties
instead or refactor to don't use any of them if possible.This discussion was created from the release Version 4.5.0.
Beta Was this translation helpful? Give feedback.
All reactions