Dev-branch for the upcoming release. Changes include:
- Switch to an OOP-style API.
- Unit-testable code (dependency injection)
- More flexible checks for "has this user already voted?".
- Incrementally calculate results. This would allow us to truncate the vote table - or to don't store individual votes at all (scalability at the cost of being unable to change votes).
- API to save vote configurations including: which results to calculate, how often users are allowed to vote, whether to store individual votes or just results, …
* #1018474: Updating to 7.x fails with a Specified key was too long fatal error in update #7201
* #1871182: Wrong UID used for sanity checking when adding votes
* #1251404: 500 error when trying to Generate Votes with other modules, such as Five star and Rate?
* #1911698: Remove useless files directive from .info files
* #1885340: Patch for problems found in coder review #2
Hotfix release - fixes:
- Fix for #1807828: Notice: Undefined variable: ids - fix misspelled variable name
- Fix for #1808146: Database upgrade fails when comments module is disabled - check if tables exist before running the query
Fixes for the bugs:
#1359416: Schema issue for D7
#115322: Delete votes for deleted nodes
#1603834: Add config link in info file
#1399800: Need to Import 9k Votes - Votingapi_cache not being rebuilt
#1110134: Views handler is broken (Views 7.x-3.x-dev)
Let's get this project going again!
Actual fix for #997092: Anonymous vote rollover not working, fixing the second bug introduced by a bad commit.
Fix for #1110134: Views handler is broken (Views 7.x-3.x-dev)
Oh, look! A release of VotingAPI!
Changes in this version include:
#803812: Make the vote storage pluggable, fix the test, generate more, foo and bar
#997092: Anonymous vote rollover not working
#1227002: patch to remove variables on uninstall
#1069942: Cron bug with VotingAPI
#1408714: "Comment: Vote results" missing
A handful of minor bug fixes including a missed D6 hook migration, update hook issues, and problems clearing old votes. Hooray for official Drupal 7 releases!
First beta for D7. Includes a number of fixes that will be backported to the D6 version shortly.
#527970 - Fixing issues with the 'Other' option when creating relationship filters. Thanks to te-brian for spotting it and whipping up a patch.
#541236 - Add support for user ratings to the default set of relationships. Patch by Likeless.
#480036: cannot get vote values through nodereference relationship by j_ten_man - allow votingapi relationships to be chained off of other relationships (like node references)
#496454: warning: unknown column vote_source in table votingapi_cache when used as criteria in votingapi_select_results PHPDoc incorrectly listed 'uid' and 'vote_source' as valid filtering criteria on cached aggregate results.
Added an 'Other' option for Relationships filters, to allow nonstandard tags, filters, and so on to be used in VotingAPI relationships with minimal hassle.
Bleeding edge dev snapshot of the DRUPAL-7 version of VotingAPI.
For testing purposes, the D7 port of Plus1 is being used. See #506936: Plus 1 for D7
A minor point release to address a typo in version 6.0's update function: users with prefixed tables experienced an error when removing two older indexes. 2.1's only change is the elimination of that typo; users who have not yet upgraded should move to this version. Users who have upgraded can move to 2.1, but will see no changes.
Official release of VotingAPI 2.0, with a number of bug fixes, documentation tweaks, and updates to internal hooks that allow other modules to provide metadata.
#335668: Add system for registering voting tags (axes)
#332317: PHP Notice: desc in votingapi.test's getInfo() should be description
#322720: doxygen fix and enhancement - votingapi_select_votes()
#327903: Add "Individual voter" relationship
#396820: Anonymous vote rollover set to "Never" doesn't work
#497472: Relationship with Comments in Views
#341419: Less decimals
Important note for developers: If you were using hook_votingapi_content_types(), it's been renamed to hook_votingapi_relationships(). In addition, if you're using custom calculation functions or custom tags and need to build views relationships on those values, your module will need to use hook_votingapi_metadata_alter() to document its aggregation functions and tags. See the new votingapi.api.php file for details.
Includes fixes for a number of minor bugs, improvements to the hook modules can use to expose new Views relationships, and tweaks to the existing Views integration that makes it easier to build argument-driven views of votes.
Updated for compatibility with Views RC2, added the ability to filter Views relationships to votes cast by the current user, and added three default views to demonstrate the Views integration.
Also added basic Simpletests, fixing a bug that manifested when modules cast votes with minimal information (nothing but a content id and a value, for example).
Finally, added the ability to auto-generate dummy votes for testing purposes. This feature is only visible if Devel Generate module is installed and activated.
This release is compatible with Views RC2, and fixes a number of minor bugs with modules that only specified content_id and vote_value when casting votes. Basic SimpleTest support is now part of VotingAPI as well.
Once again, Views integration has been reworked. VotingAPI now uses 'relationships' to define its joins, eliminating a lot of redundant code and (more important) making it possible to display voting data on any base table (users, comments nodes, etc...)
A quick fix to the aggregate result SELECT/DELETE code -- Filtering by function wasn't working.