Skip to content

[Notifier] Add Contact Everyone Bridge #46395

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

Merged
merged 1 commit into from
Jun 25, 2022

Conversation

franckranaivo
Copy link
Contributor

@franckranaivo franckranaivo commented May 18, 2022

Q A
Branch? 6.2
Bug fix? no
New feature? yes
Deprecations? no
License MIT
Doc PR TODO

Add Contact Everyone Bridge by Orange Business.

This bridge uses the light version of the api which allows SMS to be sent individually.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.1 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@OskarStark OskarStark modified the milestones: 6.1, 6.2 May 18, 2022
@franckranaivo franckranaivo force-pushed the contact-everyone-notifier branch 2 times, most recently from 868cf5a to 723ad78 Compare May 19, 2022 13:12
Copy link
Contributor

@OskarStark OskarStark 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 please open a PR on symfony-docs repo? Thanks

@OskarStark
Copy link
Contributor

@fabpot is it possible to to add this exception to fabbot.io?
CleanShot 2022-05-19 at 22 33 36@2x

@OskarStark
Copy link
Contributor

friendly ping @fabpot

{
$dsn = sprintf('contact-everyone://%s', $this->getEndpoint());

if (null !== $this->diffusionName) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (null !== $this->diffusionName) {
if ($this->diffusionName) {

$dsn .= sprintf('?diffusionname=%s', $this->diffusionName);
}

if (null !== $this->category) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (null !== $this->category) {
if ($this->category) {

- `DIFFUSION_NAME` (optional) allows you to define the label of the diffusion that will be displayed in the event logs.
- `CATEGORY` (optional) allows you to define the label of the category that will be displayed in the event logs.

This bridge uses the light version of Contact Everyone api.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This bridge uses the light version of Contact Everyone api.
This bridge uses the light version of Contact Everyone API.

```

where:
- `TOKEN` is your Contact Everyone api token
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- `TOKEN` is your Contact Everyone api token
- `TOKEN` is your Contact Everyone API token

@fabpot
Copy link
Member

fabpot commented Jun 25, 2022

Thank you @franckranaivo.

@fabpot fabpot force-pushed the contact-everyone-notifier branch from 7f26839 to 539d2a1 Compare June 25, 2022 07:11
@fabpot fabpot merged commit 2a2d5b3 into symfony:6.2 Jun 25, 2022
@fabpot
Copy link
Member

fabpot commented Jun 25, 2022

@franckranaivo Can you submit a PR for a recipe? Something like this: https://github.com/symfony/recipes/pull/1102/files
And a PR for the docs?
Thank you.

@franckranaivo
Copy link
Contributor Author

Sure. Thank you @fabpot for symfony/symfony-docs#16915 for the PR Docs.

@fabpot fabpot mentioned this pull request Oct 24, 2022
@franckranaivo franckranaivo deleted the contact-everyone-notifier branch March 22, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants