-
Notifications
You must be signed in to change notification settings - Fork 2
Implemented clan changes happening through a vote #797
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
Open
CapoMK25
wants to merge
5
commits into
dev
Choose a base branch
from
651-feature-request-clan-role-creation-modification-and-granting-someone-a-role-should-happen-through-a-vote
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0c946a4
Implemented happening through a vote
CapoMK25 c39ca46
Re-added JSDocs I forgot earlier
CapoMK25 3540016
Added same missing JSDocs back to voting
CapoMK25 2585b9b
Changed the governance interface to a class
CapoMK25 b018eaf
vibecoded and semi-vibecoded desperate fixes to get the tests down to…
CapoMK25 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the controller should be
clanRole.controller.ts, not this controller cause this controller handles some basic changes for clan, not privilege.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is contradictory, since if I move this entire endpoint away to
clanRole.controller.tsinstead of this file, I'd be breaking the rules we have set previously where the code changes should stay as minimal as possible and shouldn't introduce anything new unnecessarily. ThePUTendpoint on this controller was already on this file originally in almost the exact same format, so I can't justify doing a potentially unnecessary refactor and moving the endpoint to another file when it was originally on this file. Again, that'd break everything that's been discussed previously about keeping the existing endpoints and code as unchanged as they can be.To quote Niko on the original issue as well:
"Endpoint themselves don't need to change, just that the message no longer automatically creates or modifies or grants roles, but instead starts a vote on whether those happen."
So if the endpoints should stay the exact same as they are right now, moving this endpoint to another file would silently break that promise as the endpoint was originally the almost exact same on this file
clan.controller.tsand notclanRole.controller.ts.