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] [Mattermost] Host is required#39545

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
nicolas-grekas merged 1 commit intosymfony:5.1fromOskarStark:fix-mattermost-host
Dec 18, 2020

Conversation

@OskarStark
Copy link
Contributor

@OskarStarkOskarStark commentedDec 18, 2020
edited
Loading

QA
Branch?5.1
Bug fix?yes
New feature?no
Deprecations?no
Tickets---
LicenseMIT
Doc PR---

This bridge is the only one right now which cannot usedefault as host in the DSN, otherwise it would fall back to:

it could also not use:

protectedfunctiongetEndpoint(): ?string
{
return ($this->host ?:$this->getDefaultHost()).($this->port ?':'.$this->port :'');
}

Based on thedocumentation you must use your specific url like:
your-mattermost-url.com/api/v4/...

Usinglocalhost would have weird side-effects.

Can you confirm this@thePanz , as you provided the bridge?

friendly ping@seb37800, you fixed some bugs in this transport

Todos after merge

  • adjust recipes with new DSN
  • update the docs

@carsonbotcarsonbot changed the title[Notifier][Mattermost] Host is required[Notifier] [Mattermost] Host is requiredDec 18, 2020
$options['channel_id'] =$message->getRecipientId() ?:$this->channel;
}

$endpoint =sprintf('https://%s/api/v4/posts',$this->host.($this->port ?':'.$this->port :''));
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I moved it don, but the important part is to use$this->host instead of$this->getEndpoint

Copy link
Contributor

Choose a reason for hiding this comment

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

I used the "endpoint" as Mattermost could be run in a sub-folder stylehttps://example.com/mattermost/, thus resulting in its APIs being exposed ashttps://example.com/mattermost/api/v4/...`

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Can you please show your full anonymous DSN ?

@OskarStarkOskarStark changed the base branch from5.x to5.1December 18, 2020 08:11

where:
-`ACCESS_TOKEN` is your Mattermost access token
-`HOST` is your MATTERMOST url
Copy link
Member

Choose a reason for hiding this comment

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

url -> URL (or domain?)

OskarStark reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Makes sense

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

But, a URL starts withhttp? 🤔

@nicolas-grekasnicolas-grekas added this to the5.1 milestoneDec 18, 2020
@nicolas-grekas
Copy link
Member

Thank you@OskarStark.

@nicolas-grekasnicolas-grekas merged commit8797138 intosymfony:5.1Dec 18, 2020
@OskarStarkOskarStark deleted the fix-mattermost-host branchDecember 18, 2020 10:37
OskarStark added a commit to symfony/symfony-docs that referenced this pull requestDec 18, 2020
This PR was merged into the 5.1 branch.Discussion----------[Notifier] Update DSNRefssymfony/symfony#39545Commits-------facf002 Update DSN
@OskarStarkOskarStark mentioned this pull requestDec 18, 2020
This was referencedDec 18, 2020
OskarStark added a commit to OskarStark/symfony that referenced this pull requestDec 21, 2020
| Q             | A| ------------- | ---| Branch?       | 5.x, but BC BREAK for experimental bridge| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | ---| License       | MIT| Doc PR        | ---Followssymfony#39545
OskarStark added a commit to OskarStark/symfony that referenced this pull requestDec 22, 2020
| Q             | A| ------------- | ---| Branch?       | 5.x, but BC BREAK for experimental bridge| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | ---| License       | MIT| Doc PR        | ---Followssymfony#39545
OskarStark added a commit to OskarStark/symfony that referenced this pull requestDec 22, 2020
| Q             | A| ------------- | ---| Branch?       | 5.x, but BC BREAK for experimental bridge| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | ---| License       | MIT| Doc PR        | ---Followssymfony#39545
OskarStark added a commit to OskarStark/symfony that referenced this pull requestDec 22, 2020
| Q             | A| ------------- | ---| Branch?       | 5.x, but BC BREAK for experimental bridge| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | ---| License       | MIT| Doc PR        | ---Followssymfony#39545
OskarStark added a commit to OskarStark/symfony that referenced this pull requestDec 25, 2020
| Q             | A| ------------- | ---| Branch?       | 5.x, but BC BREAK for experimental bridge| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | ---| License       | MIT| Doc PR        | ---Followssymfony#39545
OskarStark added a commit to OskarStark/symfony that referenced this pull requestDec 28, 2020
| Q             | A| ------------- | ---| Branch?       | 5.x, but BC BREAK for experimental bridge| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | ---| License       | MIT| Doc PR        | ---Followssymfony#39545
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

+1 more reviewer

@thePanzthePanzthePanz left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.1

Development

Successfully merging this pull request may close these issues.

5 participants

@OskarStark@nicolas-grekas@fabpot@thePanz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp