-
-
Notifications
You must be signed in to change notification settings - Fork 72
Assorted improvements #1888
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
base: develop
Are you sure you want to change the base?
Assorted improvements #1888
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… ability_on? test as the seeded user has the unrestricted ability
… to do that manually
5a22e92 to
0b1c610
Compare
0b1c610 to
1788af1
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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 got through the code and seeds but haven't looked at tests yet. I'll come back for those, but meanwhile, here are some assorted small comments.
| @@ -1,9 +1,13 @@ | |||
| <h1>Keyboard tools</h1> | |||
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.
Haven't confirmed visually because I don't yet know how to navigate to this page...
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.
Apparently, the route got explicitly removed (while the view and the controller action are still there) in 9815057#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5L215. @ArtOfCode- (just making sure we are all up to speed regarding the removal)?
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.
LGTM (someone else should also review). Testing notes/status are in my earlier comment. I read through the changes in the test cases and they look like they're testing the right things to me (did not run). I think my remaining earlier comments are either N/A or deferrable -- nothing blocking there. (Do note that I can't currently test donations.)
… avoid fragmentation
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.
Confirmed this fixes https://meta.codidact.com/posts/294917. (Someone other than me should still review the code, particularly JS.)

This PR includes assorted improvements in preparation for more significant changes:
do_soft_deletemethod on theUsermodel is renamed tosoft_deleteto match the naming convention (do_*methods must have a counterpart withoutdo_);profileanduserdeletions;CommunityUsernow has a correspondingsoft_deletemethod;</li>tag);NetworkURLandNetworkName& as many views as feasible have been switched to them from the hardcodedhttps://codidact.com/andCodidactstrings (related: Reference to the Codidactyl in non-Codidact instances #1396, Use network name in email subjects without baking in "Codidact" #1664);User.systemstatic method is added to simplify system user lookup;To be able to test the changes, it is necessary to:
bundle installto add the new gem (tests will break without it);rails db:seedto populate the new site setting;A request for reviewers: we need to thoroughly check that the mailers actually pick up the setting, especially the donation ones. I checked some, but not all yet.