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.
A Taxonomy Term/Vocab Implementation would be pretty tight. Any pointers or gotcha's you could point out for someone who might take a stab at it?
Comment | File | Size | Author |
---|---|---|---|
#11 | 1948000-add-taxonomy-client-11.patch | 16.26 KB | jpstrikesback |
#10 | 1948000-add-taxonomy-client-10.patch | 16.27 KB | jpstrikesback |
#9 | 1948000-add-taxonomy-client-9.patch | 11.91 KB | jpstrikesback |
#8 | 1948000-add-taxonomy-client-8.patch | 11.92 KB | jpstrikesback |
#6 | add-taxonomy-client.patch | 11.99 KB | jpstrikesback |
Comments
Comment #1
mhrabovcin CreditAttribution: mhrabovcin commentedYou can create taxonomy/vocab manually via calling services directly with initalized services_client_connection object. Here are supported methods by services http://drupalcode.org/project/services.git/blob/d4f6e105dd04e238b51821c0...
Comment #2
jpstrikesback CreditAttribution: jpstrikesback commentedAfter playing some with this this seems pretty well laid out (especially with yesterdays changes). With an extra layer of mapping it doesn't seem too far out to create a generic entity mapper either.
Comment #3
jpstrikesback CreditAttribution: jpstrikesback commented#1368046: Add Rules Integration to Services Client seems like a sensible way forward to achieve this and more
Comment #4
jpstrikesback CreditAttribution: jpstrikesback commentedI needed the taxonomy term client so here is my first attempt. Entirely copy pasta from the node implementation with names and dates changed to protect the innocent.
Comment #5
jpstrikesback CreditAttribution: jpstrikesback commentedTwo copy pasta typos fixed
Comment #6
jpstrikesback CreditAttribution: jpstrikesback commentedlast patch was the wrong one
Comment #7
jpstrikesback CreditAttribution: jpstrikesback commentedJust realized those patches are using the uuid_services request format...thankfully the bundled services_uuid is ready for taxonomy so I'll upload a patch shortly...
Comment #8
jpstrikesback CreditAttribution: jpstrikesback commentedHere it is with the get request formated for services_uuid
Comment #9
jpstrikesback CreditAttribution: jpstrikesback commented:) term_data_data is not going to help us. Typo fix.
Comment #10
jpstrikesback CreditAttribution: jpstrikesback commentedNow with:
- Working vocabulary mapping (checks remote for desired mapping name VID) (I couldn't save a term without passing the numeric VID as access checks choked without this, maybe there is a better way as this is costly)
- Hierarchy support (If a term has a parent, add it to the object, look for it on remote/master, if it doesn't exist at remote/master create it recursively)
- Drush Sync command for terms (copied node implementation)
Fix for usage of named hooks in services_client_data_process(), hooks_all is already an array.
Comment #11
jpstrikesback CreditAttribution: jpstrikesback commentedAnother one with whitespace fixes
Comment #12
mhrabovcin CreditAttribution: mhrabovcin commentedThanks for the patch, I am not going to commit it because there is a new version of services client 2.x which support syncing any entity type in general.
Comment #13
mhrabovcin CreditAttribution: mhrabovcin commented