Skip to content

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

Merged
merged 8 commits into from
Sep 10, 2018
Merged

Remember user who created a site. #13362

merged 8 commits into from
Sep 10, 2018

Conversation

diosmosis
Copy link
Member

No description provided.

@diosmosis diosmosis added the Needs Review PRs that need a code review label Aug 29, 2018
@diosmosis diosmosis added this to the 3.7.0 milestone Aug 29, 2018
@@ -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,
Copy link
Member

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...

Copy link
Member Author

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.

Copy link
Member

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

@diosmosis
Copy link
Member Author

Updated.

@mattab mattab modified the milestones: 3.7.0, 3.6.1 Sep 1, 2018
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)
Copy link
Member

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

@tsteur
Copy link
Member

tsteur commented Sep 8, 2018

I presume tests need to be fixed but otherwise looks good to merge.

@diosmosis diosmosis merged commit fb0d156 into 3.x-dev Sep 10, 2018
@diosmosis diosmosis deleted the user-site-creation branch September 10, 2018 06:21
diosmosis added a commit that referenced this pull request Sep 20, 2018
* 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
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Development

Successfully merging this pull request may close these issues.

3 participants