@peterhashair opened this Pull Request on November 19th 2021 Contributor


fixes: #13321

Add Two table column

  • invite_status sent or null
  • invite_at datetime

Using currently token from user_auth_token table. Resend invite will send a link to the user, clicking the link will mark the user active and land on the password setting page.

Email template:



  • UI Test
  • Integration Test


@tsteur commented on November 21st 2021 Member

@peterhashair I saw your questions in the email but they are removed in the comment here. I'll comment quick anyway

To addColumn to exiting database table. do I use `4.7.0-b1?

Likely yes, it depends when we merge it and whether by then maybe already a b1 has been released. Likely it will be -b1 though.

Introduce user status, currently depending on the invite_token field, just checking, do we want to introduce this field as an individual field not relied on invite_token. So it accepts pending, suspended, disabled, etc.

Not 100% sure. It really depends whether it's needed or not. It might not be needed as I think we delete a user if we withdraw the invite etc. We probably won't have a suspended. I'd say it's probably not needed, but it's hard to say without being too much into it.

Resend invites, after people send invites do we need a status said sent, and the next send can only be done after 15mins? Otherwise, it maybe adds a mail server to span?

Yes that be good 👍

@peterhashair commented on November 22nd 2021 Contributor

@tsteur sorry to bother you, I am trying to implement integration tests, but it seems like the database missing the new field I happened to, do I need to add a install() function inside of UserManager other than 4.7.0-b1.php

@tsteur commented on November 22nd 2021 Member

@peterhashair you will also need to adjust the schema in https://github.com/matomo-org/matomo/blob/4.6.0-rc2/core/Db/Schema/Mysql.php#L47 which is used for new installs

@peterhashair commented on November 22nd 2021 Contributor

@tsteur it seems like the tests still don't apply that database extends fixture on my local does not update the database. It's there a way I can manually run updates, I mean manually run 4.7.0-b1.php

@tsteur commented on November 22nd 2021 Member

@peterhashair you will also need to set the version number in the version class to 4.7.0-b1

@peterhashair commented on November 28th 2021 Contributor

Not sure if how we test the email templates on screenshot

Powered by GitHub Issue Mirror