Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: rewrite login type migrations#16978

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SasSwart merged 2 commits intomainfromjjs/fix-migrations
Mar 18, 2025
Merged

fix: rewrite login type migrations#16978

SasSwart merged 2 commits intomainfromjjs/fix-migrations
Mar 18, 2025

Conversation

SasSwart
Copy link
Contributor

When trying to addsystem users, we discovered an issue in two migrations that added values to the login_type enum.
After someconsideration, we decided to retroactively correct them.

@SasSwartSasSwart requested review fromEmyrk and removed request forEmyrkMarch 18, 2025 11:50
@SasSwartSasSwart changed the titlefix: retroactively fix how we add to the login_type enumfix: fix additions the addition of new login types retroactivelyMar 18, 2025
@SasSwartSasSwart changed the titlefix: fix additions the addition of new login types retroactivelyfix: correct additions the addition of new login types retroactivelyMar 18, 2025
@SasSwartSasSwart changed the titlefix: correct additions the addition of new login types retroactivelyfix: login type migrationsMar 18, 2025
@SasSwartSasSwart changed the titlefix: login type migrationsfix: rewrite login type migrationsMar 18, 2025
Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

Thanks for sorting this out 👍

-- The original disregarded the warning in create_migration.sh.
-- As a result, it was not possible to insert a user with the "none" login type
-- in a migration.
-- The new implementation makes the same changes as the original, but
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: this comment should rather just going into the PR description, and the original argument should be copied over as well. Linking to a GH commit might not always work, or be difficult to find once the comment is resolved.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I'm going to keep a trimmed version of the comment in the migration if its all the same, but I will update the PR description with some more detail.

dannykopping reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good; for consistency should it not go in both files then?

@SasSwartSasSwart marked this pull request as ready for reviewMarch 18, 2025 12:17
@SasSwartSasSwart merged commita3f6308 intomainMar 18, 2025
30 checks passed
@SasSwartSasSwart deleted the jjs/fix-migrations branchMarch 18, 2025 12:47
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 18, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

Assignees

@SasSwartSasSwart

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@SasSwart@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp