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
Feature/auth rework #44
Conversation
- Add more validation on art/design credit linking
Thanks to Cy for table structure - Create user alias table - Add has_alias bool to users table - Alter User model to suit, create UserAlias model - Add basic url to sites config for construction of links from aliases - Add command for moving existing aliases from users table to user_aliases table
- Index both the above and url column of character image creators - Consolidate alias update commands into one and update character image creator command for new system
- Update character logs - Update alias migration command with character logs - Add helper function to check if an alias belongs to a site used for auth and if so, to a user - Add helper function to just return 'name'@'site' without link - Tidy up art/design credits
…d time - Fix issues with case sensitivity in alias comparisons
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.
Looks good, just a few things:
- Admin panel (editing a user) - in the clear alias section, the alias textbox still uses the old alias as its value so the box is blank
- Admin\Users\UserController.php - related to the above; postUserAlias (to clear the old alias) needs to be updated to use the new alias table too
- BrowseController.php - masterlist character/MYO/sublist search by username still searches on owner_alias, user search by alias still searches on alias column on users
(Also not sure if within scope of this update - items still use artist_alias)
- Add item artist alias migration to command - Add more feedback to alias migration command as it runs - Add validation to character owner URL - Add tag stripping to report URLs - Make submission URL nullable/non-required
…iases - Update user alias clearing for new storage system/to support multiple aliases - Fix display bug on admin index page
All requested changes made-- I updated item artists to the new system as well. Going to take a look at addressing #49 before requesting review again though. |
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.
Looks good I think, just one last thing!
…text for multiple aliases - Add checks to see if user has remaning aliases, and if any are valid primary aliases, in alias clear processing
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.
Good to go I think!
--drop-columns
, which drops the alias columns when it is finished moving information either to user_id or url columns. It's recommended to run it without once and ensure data has been moved properly before running it again with the option.