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: correct typo in notification template#14108

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
mtojek merged 1 commit intomainfrom17-fix-user-created
Aug 2, 2024
Merged

Conversation

mtojek
Copy link
Member

Related:#14010

There is a typo in the notification template, unescaped character.

@mtojekmtojek self-assigned thisAug 2, 2024
@mtojekmtojek changed the titlefix: typo in notification templatefix: correct typo in notification templateAug 2, 2024
@mtojekmtojek marked this pull request as ready for reviewAugust 2, 2024 07:57
@@ -0,0 +1,5 @@
UPDATE notification_templates
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really see value in restoring the typo in the down migration.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

just consistency?

@@ -0,0 +1,5 @@
UPDATE notification_templates
SET
body_template = E'Hi {{.UserName}},\n\nNew user account **{{.Labels.created_account_name}}** has been created.'
Copy link
Contributor

Choose a reason for hiding this comment

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

This was incorrectly set in theinitial migration, let's sneak it in here if you don't mind

Suggested change
body_template= E'Hi {{.UserName}},\n\nNew user account **{{.Labels.created_account_name}}** has been created.'
body_template= E'Hi {{.UserName}},\n\nNew user account **{{.Labels.created_account_name}}** has been created.',
group='User Events'

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I would rather keep this idempotent. It does not seem to be an urgent fix that requires modifying existing files, and if there are some scripts checking the content of migration files, and I wouldn't like to make them suffer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you missed the content of the change? The event is a user event, but its group is incorrectly set toWorkspace Events currently.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Oh crap, let me redo it.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@mtojekmtojek merged commit76ce460 intomainAug 2, 2024
32 checks passed
@mtojekmtojek deleted the 17-fix-user-created branchAugust 2, 2024 09:03
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 2, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

Assignees

@mtojekmtojek

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mtojek@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp