Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mentor deadminning and admin loading #10426

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

itsmeow
Copy link
Member

@itsmeow itsmeow commented Jan 6, 2024

About The Pull Request

Previously the mentor system would just regenerate all mentor datums whenever an admin changed their status. This was really wasteful because the database never actually changes when an admin does this, it's just trying to delete the datum.

Instead of deleting and regenerating the datums, I just keep them associated now and remove the verbs + hrefs from deadminned admins.

Also added some early returns to admin procs.

Why It's Good For The Game

Less time wasted reloading mentors, admins no longer have mentor-only verbs that don't work.

Testing Photographs and Procedure

Screenshots&Videos

Before
image

After
image

No wasted load_mentors:
image

Changelog

🆑
fix: Mentors are no longer reloaded when admin datums are created.
tweak: Admins can no longer see mentor-only verbs when deadminned.
/:cl:

@JixS4v
Copy link
Contributor

JixS4v commented Jan 6, 2024

If an admin had mentor status beforehand, would this still keep the mentor-only verbs?

@itsmeow
Copy link
Member Author

itsmeow commented Jan 6, 2024

Nope. Fixing that now.

@PowerfulBacon PowerfulBacon added this pull request to the merge queue Feb 15, 2024
Merged via the queue into BeeStation:master with commit fc314a5 Feb 15, 2024
8 checks passed
DrDuckedGoose pushed a commit to DrDuckedGoose/BeeStation-Hornet that referenced this pull request May 11, 2024
* Fix mentor deadminning and admin loading

* Fix admin-mentors not keeping their verbs after deadminning
DrDuckedGoose pushed a commit to DrDuckedGoose/BeeStation-Hornet that referenced this pull request May 11, 2024
JixS4v added a commit to JixS4v/BeeStation-Hornet that referenced this pull request Jul 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants