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

(Feature) RG Blacklist

Open Obi-Wana opened this issue 3 years ago • 1 comments

Adds a blacklist for not allowed release groups (RG blacklist). RG blacklist is only a list so far and will not check upon upload if the RG is blacklisted.

ToDo:

  • Add a staff dashboard entry for the new menus?
  • Remove old files/routes/code blocks

Obi-Wana avatar Sep 07 '22 07:09 Obi-Wana

Staff Views at: /dashboard/blacklists/releasegroups

Client Views at: /pages/blacklist/releasegroups

Obi-Wana avatar Sep 07 '22 08:09 Obi-Wana

  • Added a new blacklist for releasegroups
  • Created the controller and model to handle this data
  • Migrated database table with columns name, reason, created_at & updated_at
  • Updated PageController to show link on sidebar menu (blacklist) that links to /page/releasegroup-blacklist which shows all blacklisted groups in a table format using DB::table('blacllist_releasegroups')->get() as $releasename; foreach($releasename as $name); echo ''.$name.''; endforeach; . This is not ideal but it works until we can figure out how best to display this information from eloquent models instead of raw queries like above... I'm sure there's an easier way than what i've done here.. just couldn't think of anything else atm lol!
  • Added a new blacklist system for release groups.
  • Created the following routes:
    • /blacklist/releasegroups (GET) -> PageController@releasegroupblacklist()
  • Created the following controllers:
    • Staff\BlacklistReleaseGroupController (CRUD operations on blacklisted release groups)

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