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

[Notifier] Add exception for deprecated slack dsn#39310

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
fabpot merged 1 commit intosymfony:5.2frommalteschlueter:improvement/add-exception-for-deprecated-slack-dsn
Dec 8, 2020
Merged

[Notifier] Add exception for deprecated slack dsn#39310

fabpot merged 1 commit intosymfony:5.2frommalteschlueter:improvement/add-exception-for-deprecated-slack-dsn
Dec 8, 2020

Conversation

@malteschlueter
Copy link
Contributor

@malteschluetermalteschlueter commentedDec 4, 2020
edited
Loading

QA
Branch?5.2
Bug fix?no
New feature?no
Deprecations?yes
TicketsFix#39204
LicenseMIT
Doc PR-

The DSN for the Slack integration changed again from 5.1 to 5.2. There was the idea to output an exception for that.

@derrabus
Copy link
Member

Thank you for working on this issue!

malteschlueter and evertharmeling reacted with thumbs up emoji

}

if ('/' !==$dsn->getPath()) {
thrownewInvalidArgumentException(sprintf('Invalid "%s" notifier DSN: Using a dsn for slack webhooks has been removed (maybe you haven\'t update the DSN when upgrading from 5.1).',$dsn->getOriginalDsn()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe better to usethrow new IncompleteDsnException('Support for slack webhook dsn has been dropped since 5.2 (maybe you haven\'t updated the DSN when upgrading from 5.1).');?

jderusse and malteschlueter reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

I agree.

Please, change "webhook dsn" to "webhook DSN".

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

But Incomplete... is missleading, it's a wrong DSN... 🧐

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@OskarStark That was also my first thought but i wasn't sure if it is okay if i a add a new exception.

Copy link
Member

@jderussejderusse left a comment

Choose a reason for hiding this comment

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

LGTM. Just the small wording suggested by@evertharmeling

Copy link
Member

@fabpotfabpot left a comment

Choose a reason for hiding this comment

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

Could you also add the format DSN information in the README? We are doing this for almost all other providers and we forgot to do it here.

malteschlueter reacted with thumbs up emoji
}

if ('/' !==$dsn->getPath()) {
thrownewInvalidArgumentException(sprintf('Invalid "%s" notifier DSN: Using a dsn for slack webhooks has been removed (maybe you haven\'t update the DSN when upgrading from 5.1).',$dsn->getOriginalDsn()));
Copy link
Member

Choose a reason for hiding this comment

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

I agree.

Please, change "webhook dsn" to "webhook DSN".

malteschlueter reacted with thumbs up emoji
@fabpot
Copy link
Member

Thank you@malteschlueter.

malteschlueter reacted with thumbs up emoji

@fabpotfabpot merged commit619d543 intosymfony:5.2Dec 8, 2020
@malteschluetermalteschlueter deleted the improvement/add-exception-for-deprecated-slack-dsn branchDecember 8, 2020 08:23
@fabpotfabpot mentioned this pull requestDec 18, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jderussejderussejderusse left review comments

@OskarStarkOskarStarkOskarStark left review comments

@derrabusderrabusderrabus left review comments

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@evertharmelingevertharmelingevertharmeling left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

7 participants

@malteschlueter@derrabus@fabpot@evertharmeling@jderusse@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp