Skip to content

Scoring Plugin #13

@Hackwar

Description

@Hackwar

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

  1. The scores are stored in the extensions table in the row of each extension. They are calculated when a save operation occurs.
  2. The score is calculated by a plugin, which acts on save events for the extension, reviews, etc.
  3. 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.
  4. An additional CLI command should be added to re-calculate all scores at once for all extensions, for example when the scoring plugin changes.
  5. 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 onJEDCalculateScore with an extension object as parameter
  • Create plg_system_jedscoring plugin, which triggers onJEDCalculateScore for all relevant save operations (Basically all moderation events)
  • Create private repo with scoring plugin for advanced scoring functionality
  • Create CLI command plugin to run onJEDCalculateScore on each extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions