BeeStation-Hornet icon indicating copy to clipboard operation
BeeStation-Hornet copied to clipboard

Mentor code is tragic

Open Archanial opened this issue 2 years ago • 4 comments

Mentor code is straight up from hippie. Not only it's existence breaks the rules of our repo (no hippie ports) it also barely works and randomly runtimes.

Mentors should be subtype of admin with only R_MENTOR given to them. That way we could reuse the ahelp ticket menu to make mhelps a tickets which a mentor could claim, respond etc. Not only would it make mentors actually logged but also it would allow for future expansion of mentor rights and future features (mentor ghost? mentor pets?). The ahelp feature should also be somewhat modified to allow players to make either ahelp or mhelp depending on their choice or preference. Mentors should be able to "elevate" mhelp tickets to ahelp tickets for admins to handle then and the admins should be able to do the opposite for ahelp tickets.

Also the mentor sql table should be dropped and already existing table for admins should be reused. The challenge here is reworking admins in the way, they would support "lower" rank non-admin staff (mentors!) and, while the ticket ui stays the same for both, it shouldn't display ahelp tickets to non-admin staff members.

If someone actually wants to recode mentors every trace of current mentor code should be purged first and every rework/expansion whatever should not take any code from our existing code.

Archanial avatar Apr 23 '22 10:04 Archanial

Could start following the fulp way of mentors (as a baseline)

  1. Removing that weird "Memo" shit that does nothing, general mentor port - https://github.com/fulpstation/fulpstation/pull/6
  2. Part 2 - https://github.com/fulpstation/fulpstation/pull/24
  3. QoL - https://github.com/fulpstation/fulpstation/pull/51
  4. Logging - https://github.com/fulpstation/fulpstation/pull/185
  5. Admin stuff - https://github.com/fulpstation/fulpstation/pull/410
  6. URLs and pings - https://github.com/fulpstation/fulpstation/pull/455

idc do what you want

Tsar-Salat avatar Apr 27 '22 03:04 Tsar-Salat

Those are nice bandaids but I feel like mentor is too shitty to keep fixing. Full rewrite is just easier.

Archanial avatar May 02 '22 17:05 Archanial

Those are nice bandaids but I feel like mentor is too shitty to keep fixing. Full rewrite is just easier.

If it's "easier" then why hasn't there been any PRs?

Methinks it would be easier to just apply the 'bandaids'.

Tsar-Salat avatar May 16 '22 14:05 Tsar-Salat

Currently working on this

itsmeow avatar Aug 03 '22 06:08 itsmeow

There is still some work to do on refactoring mentor role itself

Archanial avatar Oct 22 '22 21:10 Archanial