Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Be able to push entities from a client site to a server site.
Comment | File | Size | Author |
---|---|---|---|
#19 | Nearly_compliant_websub.png | 304.56 KB | FatherShawn |
#4 | entity_share-push_form-2856715-4.patch | 12.2 KB | Grimreaper |
Comments
Comment #2
GrimreaperComment #3
GrimreaperComment #4
GrimreaperUploading WIP patch.
Comment #5
GrimreaperCommited on the 8.x-1.x-push_form branch
Comment #6
GrimreaperComment #7
GrimreaperFor the push of physical files. I am trying to use the JSON API file module. Opening issue #2897545: Support PATCH operation.
Comment #8
GrimreaperWaiting for related issues to have responses.
Comment #9
michaelmallett CreditAttribution: michaelmallett commentedIn terms of pushing from the server to client websites, is this a related or seperate feature request?
Comment #10
GrimreaperHello,
The idea with the push form is to allow the client website to push on the server website.
If you want to push from the server website to the client webstie, the problem is that the server website is not aware of the client website(s).
The server website only exposes content.
Comment #11
GrimreaperUnassigning as the issue is postponed.
Comment #12
nod_on #10, would integrating with the consumers module help?
Comment #13
Grimreaper@nod_: Thank you very much for the suggestion.
That needs to be tested, I never used the consumers module, only read this article https://www.lullabot.com/articles/decoupled-drupal-hard-problems-image-s....
Comment #14
C13L0 CreditAttribution: C13L0 commentedWe have 1 main website and 21 subdomains which have emergency messaging, events, and news in common (content type and field machine names are identical). The main website needs to have the ability to push emergency messages to all subdomains at once. The main website also needs to be able to push individual events and news to their relevant subdomains. Our sites are hosted on Pantheon upstream.I'm interested in an estimate/quote to create a patch to fix this issue.edit* To be very clear, the patch has to be committed in order for us to use it.edit,edit: We are going to try one more option using a rest endpoint on the main site and features from migrate 8.5.1 core. I will let you know the outcome
Comment #15
GrimreaperUpdating related issue blocking this one.
Comment #16
GrimreaperComment #17
GrimreaperComment #18
FatherShawnBefore we found Entity Share we were considering creating something similar that implemented the W3C WebSub protocol. There are base classes for this protocol in core dependencies. Entity Share is really nice work, but I think this idea still has merit. The advantages are:
If such direction is of interest, we are happy to collaborate and contribute here. We're also happy to try to figure out how to implement as an enhancement module, but this seems like such a core part of the architecture the route for that is not immediately obvious.
Comment #19
FatherShawnDigging in more deeply to push based on WebSub I found a sticking point. We can't assemble a JSON version of the content and push to the JSON api endpoint and also comply with the WebSub protocol. The standard requires:
I suppose we could alias such a unique url to one path as the subscription is setup, and then re-alias it to the appropriate JSON:API path after the subscription is verified. I'm attaching a flow diagram in case this sparks some direction, but also opened #3077976: WebSub Inspired Continuous Delivery as a way to adapt the ideas of the WebSub recommended standard to the existing architecture.
Comment #20
GrimreaperThanks @FatherShawn for the suggestion.
Here is my feedback.
If the WebSub compliance should be done, It should be done in a non mandatory way. Maybe one or two submodules. As you said, it can automatically handle updated content, but some clients don't want automated changes.
Thanks for the diagram and your investigations.
If I understand the problem of unique URL. For any entity_type/bundle, the Hub should deliver to the same path?
Let's follow the discussion in #3077976: WebSub Inspired Continuous Delivery.
Comment #21
GrimreaperI have shared some though about another approach in the issue #3080629: Automatic notification of update changes.
Comment #22
GrimreaperComment #23
GrimreaperHello,
Now that there is code in https://www.drupal.org/project/entity_share_websub. I am considering to mark this issue has "Closed (works as designed)".
This will avoid to wait for all JSON:API limitations to be done.
Comment #24
FatherShawnThat sounds reasonable. We have it working on pull that add-on
Comment #25
GrimreaperThanks for the reply :)