-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Remember user who created a site. #13362
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
Conversation
core/Db/Schema/Mysql.php
Outdated
@@ -75,6 +75,7 @@ public function getTablesCreateSql() | |||
`group` VARCHAR(250) NOT NULL, | |||
`type` VARCHAR(255) NOT NULL, | |||
keep_url_fragment TINYINT NOT NULL DEFAULT 0, | |||
user_created VARCHAR(100) NULL, |
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.
would it be login_created
or user_login_created
or login_creator
or something? In the user table it is the login
column that matches it. Might be more clear? not sure...
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.
Can change it to creator_login
as in "the creator's login"? Was trying to be consistent w/ the ts_created
column w/ user_created
.
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.
creator_login
👍 I was actually just thinking before the same. otherwise sounds like a user was created
Updated. |
core/Site.php
Outdated
* @param int $idsite The site ID. | ||
* @return string|null If null, the site was created before the creation user was tracked. | ||
*/ | ||
public static function getCreationUserFor($idsite) |
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.
Maybe getCreatorLoginFor
? For consistency be also good to add a public function getCreatorLogin
2c484b6
to
35837ab
Compare
I presume tests need to be fixed but otherwise looks good to merge. |
* Remember user who created a site. * Bump version & change column name to creator_login. * Rename Site::getCreationUserFor * Process sites like other methods in getPatternMatchSites(). * Update expected test files. * update test again
* Remember user who created a site. * Bump version & change column name to creator_login. * Rename Site::getCreationUserFor * Process sites like other methods in getPatternMatchSites(). * Update expected test files. * update test again
No description provided.