Skip to content
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

Improve token auth migration #16822

Merged
merged 9 commits into from Nov 27, 2020
Merged

Improve token auth migration #16822

merged 9 commits into from Nov 27, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 27, 2020

Description:

as discussed. will basically look like this:

image

Review

  • Functional review done
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@tsteur tsteur added the Needs Review PRs that need a code review label Nov 27, 2020
@tsteur tsteur added this to the 4.0.2 milestone Nov 27, 2020
@@ -269,6 +246,9 @@ public function doUpdate(Updater $updater)

$updater->executeMigrations(__FILE__, $this->getMigrations($updater));

// just in case it was not executed manually by a user...
MigrateTokenAuths::migrate();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? Since the migration is added above, if the user clicks 'Update', it will definitely run right? If so, this would be redundant. Or is there some way for the user to opt out of that specific migration running?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, it's not needed .will remove it now

@diosmosis
Copy link
Member

Noticed the core:matomo4-migrate-token-auths command doesn't provide any output, maybe a 'Done.' message would be useful to have?

Copy link
Member

@diosmosis diosmosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left one other comment, otherwise looks good

@tsteur
Copy link
Member Author

tsteur commented Nov 27, 2020

Updated it 👍

@tsteur tsteur merged commit 8ba7a16 into 4.x-dev Nov 27, 2020
@tsteur tsteur deleted the alttokenup branch November 27, 2020 18:42
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants