UNIT3D-Community-Edition icon indicating copy to clipboard operation
UNIT3D-Community-Edition copied to clipboard

(Update) Make bonus point allocation more customizable

Open Roardom opened this issue 3 years ago • 2 comments

WIP

Todo:

  • Figure out bon allocation query
  • Update user earnings page to display new earnings
  • Change multiplier column to accept decimals

image

Roardom avatar Sep 20 '22 03:09 Roardom

Looking great so far. We'll have to add a database seeder to the todo list for some default earning rates.

HDVinnie avatar Sep 20 '22 04:09 HDVinnie

  • Added BonEarning and BonEarningCondition models.
  • Created bon_earnings table with position, variable, multiplier and operation columns.
  • Created bon_earning_conditions table with foreign key to the id of a row in the bon earnings table as well as operand1, operator and operand2 columns for conditions on when bonus points are earned from torrents uploaded by users (e.g., if age is greater than or equal to 30 days).
  • Added a new blade file for creating bon earnings.
  • Created the form to create bon earning with conditions and operations.
  • Added information about how bonus system works in sidebar section of this page (create).
  • Added a new blade file for editing bon earnings.
  • Updated the breadcrumbs to reflect this change and added some text explaining how bonuses work in general.
  • Added a new route for Bon Earning
  • Created the controller and view files to handle CRUD operations on bon earning table in database

what-the-diff[bot] avatar Nov 04 '22 13:11 what-the-diff[bot]