Issue #3308639 by caschbre: Error: Cannot use positional argument after named argument in radioactivity_ajax_render_alter()
Issue #3305546 by caschbre: PHP 8 Compatibility: Required parameter $element follows optional parameter $delta
Drupal 7.79+ compatibility
Issue #3212254 by caschbre, loze, Sutharsan: Radioactivity breaks with Drupal 7.79 "Avoid field storage write when field content did not change" setting
This release introduces a new field type, the Radioactivity reference. The Radioactivity reference field type is designed for better performance and better editor UX while providing the same functionality.
The Radioactivity field, introduced and used in the 8.x-3.0 release, is now deprecated and will be removed in the 5.0.0 release.
Major UX and performance issue solved by this release:
Issue #3264937: Due to a bug Radioactivity fields that have both emits and decay at the time of processing, only the emits are processed but the decay does not take place. Only fields without emits will decay. With this bug fixed, you will see a (slightly) faster decay of energy than you are used to. Especially on popular entities.
Issue #2981222: The default entity storage (database) is now better suitable for high load.
Issue #3263343: Improved upgrade path from 8.x-3.x branch. The table for radioactivity entities will now be created.
Due to a bug Radioactivity fields that have both emits and decay at the time of processing, only the emits are processed but the decay does not take place. Only fields without emits will decay.
With this bug fixed, you will see a (slightly) faster decay of energy than you are used to. Especially on popular entities.
Commits
Issue #3264937 by Sutharsan: Decay not correct when incident occurs
This release introduces a new Radioactivity field type, the Radioactivity Reference field. This field type is designed to overcome a serious editor nuisance which is typically experienced on busy sites. When radioactivity updates the energy (typically on cron) during the time the editor is updating the content, they can not be able to save their content due to this error: " The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved."
No changes in runtime code since the previous release 8.x-3.0-beta1.
Compatible with latest Drupal 8 and 9 versions.
Commits since 8.x-3.0-beta1
Issue #3215969 by TR: Move test trait into tests/src/Traits
Issue #3215968 by TR: Simpletest's legacy assertion methods are deprecated
Issue #3215967 by TR: UnitTestCase::assertArrayEquals has been deprecated
The 4.0.x branch introduces a Radioactivity Reference field which has a dedicated Radioactivity entity to store the energy data. This should fix a number of editorial and performance issues that occur with the 8.x-3.x branch. This new Radioactivity Reference field is expected to replace the Radioactivity field from the 8.x-3.x branch. The Radioactivity field is still available in the 4.0.x branch and remains supported for some time.
Issue #2944944 by Sutharsan: Make interface texts of widget, formatter translatable
Add schema for display-only formatter.
Issue #2939829 by Sutharsan: Add display-only formatter option
Issue #2943794 by Sutharsan: Add unit tests
Issue #2943681 by Sutharsan: Use dependency injection where possible
Set default Energy profile to 'Decay'
Set default cutoff value to 1.
Issue #2940167 by Sutharsan: Add FunctionalJavascriptTest to test full circle
Issue #2940166 by Sutharsan: Replace existing WebTest with functional test
5066a80 Issue #2931957 by Sutharsan: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)
aacae51 Issue #2931778 by jonnyeom: Trailing slash no longer needed
5342720 Issue #2934721 by Sutharsan: Refactor RadioactivityProcessor
c986ec5 Allow decimals to be entered for Energy to be emitted.
a342381 Issue #2934710 by Sutharsan: Granularity not visible when Energy profile 'Decay' is selected
d171a0d Simplify emitCount code in RadioactivityEmitter::settingsForm.
8d15f5e Issue #2887722 by Sutharsan: Theme hook not found
- Fixed issue #2032229 by ti2m, hernani: Missing hook_field_insert
- Fixed RadioactivityMemcachedIncidentStorage::addEmitter() is improperly defined
- Redis storage (requires PHPRedis to be installed)
- Use jQuery Sparklines instead of custom graph to demonstrate decay in admin side.
- Simple history functionality (field formatter) using jQuery Sparklines.
A ton of improvements UI and code wise including:
- Rewritten emit.php
- Per field emitter accuracy for extremely high traffic sites
- A feature module with nice default profiles
Issue #1610732 by Shnapoo: Division by zero in radioactivity_field_formatter_view()
Issue #1589262 by cpliakas: Fixed undefined variable time_now in radioactivity cron
Fixed warning on node preview page
Issue #1406620 by iler: Wrong function names for hook_install and hook_uninstall
Only affected the functionality of hook_uninstall; hook_install is empty.
Here's the official 5.x-1.2! This is rc2 + small fixes to radioactivity_up_down_voting.module and radioactivity_votingapi.module. The notable fixes in this release: (compared to 5.x-1.1)