Skip to content
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

[Notifier] Add Sipgate bridge #57627

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Conversation

sakul95
Copy link

@sakul95 sakul95 commented Jul 2, 2024

Q A
Branch? 7.2
Bug fix? no
New feature? yes
Deprecations? no
License MIT

Added a new notifier bridge for sipgate.

@OskarStark OskarStark changed the title [SipgateNotifierBridge] Add Bridge for Sipgate [Notifier] Add Sipgate bridge Jul 3, 2024
"php": ">=8.2",
"symfony/http-client": "^6.4|^7.0",
"symfony/notifier": "^6.4|^7.0",
"symfony/polyfill-mbstring": "^1.0"
Copy link
Contributor

@OskarStark OskarStark Jul 3, 2024

Choose a reason for hiding this comment

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

Not sure this should be in require section, but rather replace?

cc @stof

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.

Thank you, I left some comments.

Can you also create a docs and recipes PR?

@sakul95
Copy link
Author

sakul95 commented Jul 3, 2024

Thank you, I left some comments.

Can you also create a docs and recipes PR?

Yes sure, I have not created a recipe yet so will read into it first.

@sakul95
Copy link
Author

sakul95 commented Jul 3, 2024

@OskarStark

Docs: symfony/symfony-docs#20018
Recipe: symfony/recipes#1323

Is this the correct way to do this?

@sakul95
Copy link
Author

sakul95 commented Jul 4, 2024

@OskarStark Maybe you can answer me two more questions:

  1. Is it normal that 3 of the tests fail and if not, what can I do to fix these?

  2. The recipe tests fail because the missing package on packagist. Shall I upload the package there or how is the workflow regarding those optional parts of symfony?

Best regards
Lukas

@fabpot
Copy link
Member

fabpot commented Jul 4, 2024

@OskarStark Maybe you can answer me two more questions:

1. Is it normal that 3 of the tests fail and if not, what can I do to fix these?

You can ignore all errors that are not related to your work.

2. The recipe tests fail because the missing package on packagist. Shall I upload the package there or how is the workflow regarding those optional parts of symfony?

This will be automatically fixed when I will submit the package. Nothing to do on your side.

Best regards Lukas

@xabbuh
Copy link
Member

xabbuh commented Jul 4, 2024

Is it normal that 3 of the tests fail and if not, what can I do to fix these?

The failures in the „Verify Packages“ job are related. Looks like some files are missing. You can take inspiration from other existing bridges.

@fabpot
Copy link
Member

fabpot commented Jul 5, 2024

There are some hidden useful information in the broken tests:

  File src/Symfony/Component/Notifier/Bridge/Sipgate/.gitattributes does not exist
  File src/Symfony/Component/Notifier/Bridge/Sipgate/.gitignore does not exist
  File src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist does not exist

@sakul95
Copy link
Author

sakul95 commented Jul 5, 2024

I've added the missing files but the Verify Packages check still fails, this time because of "Composer.json's replace section needs to contain symfony/sipgate-notifier".

I have read into the composer schema and also looked into other comparable packages and can't find a clue why I should do that.

Of course I could simply add it but that does not seem to be right, maybe you can give me some insight for that?
(Maybe it correlates with comment of @OskarStark #57627 (comment))

@fabpot fabpot force-pushed the sipgate_notifier_transport branch from 55128a9 to 69a4a0f Compare July 6, 2024 07:48
@fabpot
Copy link
Member

fabpot commented Jul 6, 2024

Thank you @sakul95.

@fabpot fabpot merged commit 25b881a into symfony:7.2 Jul 6, 2024
8 of 10 checks passed
@sakul95 sakul95 deleted the sipgate_notifier_transport branch July 6, 2024 08:14
xabbuh added a commit to symfony/symfony-docs that referenced this pull request Jul 6, 2024
This PR was squashed before being merged into the 7.2 branch.

Discussion
----------

[Notifier] Add Sipgate bridge

Add a docs entry according to PR  [#sakul95:sipgate_notifier_transport](symfony/symfony#57627)

Commits
-------

c4e8ace [Notifier] Add Sipgate bridge
@fabpot fabpot mentioned this pull request Oct 27, 2024
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