Skip to content

Conversation

@mtarld
Copy link
Contributor

@mtarld mtarld commented Jan 16, 2021

Documentation related to symfony/symfony#39342.

@carsonbot
Copy link
Collaborator

Hey!

This is.. this is amazing. Thank you!

I think @TheGarious has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@OskarStark OskarStark added the Waiting Code Merge Docs for features pending to be merged label Jan 20, 2021
@carsonbot carsonbot added this to the next milestone Jan 20, 2021
OskarStark added a commit to symfony/symfony that referenced this pull request Jan 20, 2021
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Add mercure bridge

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #36481
| License       | MIT
| Doc PR        | symfony/symfony-docs#14840

Add a Notifier bridge for Mercure.
In this PR, Mercure is considered as a chatter (I'm still wondering if it's the most appropriate type).

The first approach for the DSN is `mercure://jwtToken@host:port/hubPath?topic=/foo/1&secure=false` with:
- `topic` optional (defaults to `null`)
- `secure` optional (defaults to `true`)

I'm not sure about the current way to deal with http/https. Maybe we can just replace the `mercure` scheme by `http|https`?

The notification representation is following [Activity Streams](https://www.w3.org/TR/activitystreams-core/#jsonld)

#SymfonyHackday

Commits
-------

19c6544 [Notifier] Add mercure bridge
@OskarStark OskarStark removed the Waiting Code Merge Docs for features pending to be merged label Jan 20, 2021
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull request Jan 20, 2021
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Add mercure bridge

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #36481
| License       | MIT
| Doc PR        | symfony/symfony-docs#14840

Add a Notifier bridge for Mercure.
In this PR, Mercure is considered as a chatter (I'm still wondering if it's the most appropriate type).

The first approach for the DSN is `mercure://jwtToken@host:port/hubPath?topic=/foo/1&secure=false` with:
- `topic` optional (defaults to `null`)
- `secure` optional (defaults to `true`)

I'm not sure about the current way to deal with http/https. Maybe we can just replace the `mercure` scheme by `http|https`?

The notification representation is following [Activity Streams](https://www.w3.org/TR/activitystreams-core/#jsonld)

#SymfonyHackday

Commits
-------

19c6544f42 [Notifier] Add mercure bridge
@OskarStark
Copy link
Contributor

Thank you Mathias.

@OskarStark OskarStark merged commit 7c6c76e into symfony:5.x Jan 20, 2021
@mtarld mtarld deleted the feature/mercure-notifier branch January 20, 2021 10:53
@xabbuh xabbuh modified the milestones: next, 5.3 Jan 21, 2021
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.

4 participants