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

US134384 - Add new subscription controllers #1927

Merged
merged 7 commits into from
Dec 10, 2021

Conversation

svanherk
Copy link
Contributor

@svanherk svanherk commented Dec 9, 2021

Cleaned up version of #1901. Creates a new controllers folder with new subscriber controllers inside, along with tests and a README. The README was surprisingly difficult to write and I don't love it - feedback welcome

@svanherk svanherk requested a review from a team as a code owner December 9, 2021 16:25
controllers/subscriber/subscriberControllers.md Outdated Show resolved Hide resolved
controllers/subscriber/subscriberControllers.md Outdated Show resolved Hide resolved
controllers/subscriber/subscriberControllers.md Outdated Show resolved Hide resolved
controllers/subscriber/test/subscriberControllers.test.js Outdated Show resolved Hide resolved
controllers/subscriber/test/subscriberControllers.test.js Outdated Show resolved Hide resolved
super.updated(changedProperties);
if (this._subscriptionController) this._subscriptionController.hostUpdated(changedProperties);
}
```
Copy link
Member

Choose a reason for hiding this comment

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

I found the sample code a little hard to follow in terms of tying what the example was trying to do to the core concepts. 🐶 🐱 It's very cute though and I did learn fun facts about tongue prints!

Maybe a metaphor that also uses a subscription pattern could work? Like a "newspaper" <-> "reader" or a "cable company" <-> "viewer" type metaphor? Do people still even subscribe to newspapers?!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I adapted this from the Provider/Requester README, but using a more intuitive subscription example makes sense. I'll try it with cable channels and viewers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, updated - let me know if that works better. It's still a bit of a weird example when looking at the resulting html, but I wanted to show how event subscribers must go inside the registry component, and id subscribers can go outside.

Copy link
Member

Choose a reason for hiding this comment

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

I like this a lot! 👍

Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

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

This is looking great to me!

@svanherk svanherk merged commit c0980bb into main Dec 10, 2021
@svanherk svanherk deleted the US134384_Add_Subscription_Controllers branch December 10, 2021 21:31
@ghost
Copy link

ghost commented Dec 10, 2021

🎉 This PR is included in version 1.212.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants