-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Milestone
Description
Extensions have a scoring based on several factors. Since we don't want people to game the system, the specific algorithm how these scores are derived, should be hidden.
Solution
- The scores are stored in the extensions table in the row of each extension. They are calculated when a save operation occurs.
- The score is calculated by a plugin, which acts on save events for the extension, reviews, etc.
- This main repo should contain a simple demo plugin that fulfills this feature. In a private repo, an advanced plugin can include the improved, secret scoring method.
- An additional CLI command should be added to re-calculate all scores at once for all extensions, for example when the scoring plugin changes.
- Scores are only updated for changes which have been approved by moderators.
Tasks
- Create score field in database
- Create plg_jed_basescore plugin with basic scoring function. Reacts on
onJEDCalculateScorewith an extension object as parameter - Create plg_system_jedscoring plugin, which triggers
onJEDCalculateScorefor all relevant save operations (Basically all moderation events) - Create private repo with scoring plugin for advanced scoring functionality
- Create CLI command plugin to run
onJEDCalculateScoreon each extension
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels