Problem/Motivation
The GSA provides an API for administrative tasks and in particular for handling keymatchs.
Integrating this API in Drupal would allow users (e.g. content editors, support staff, communications) to create/read/update/delete keymatchs from the Drupal interface without granting access to the Admin Console.
Proposed resolution
Setting the credentials could be achieved from the regular settings page.
Keymatchs could show up in a separate tab with 3 sub-pages: one for editing keymatchs, one for viewing them and one for adding them.
Authentication is based on tokens which we could store in the user's session.
Attached is a proposed patch.
Remaining tasks
Review & opinions welcome.
User interface changes
Screenshots attached.
Comment | File | Size | Author |
---|---|---|---|
#3 | gsa-admin_keymatchs-3.patch | 50.43 KB | fengtan |
#2 | gsa-admin_keymatchs-search.png | 73.68 KB | fengtan |
gsa-admin_keymatchs-add.png | 89.86 KB | fengtan | |
gsa-admin_keymatchs-edit.png | 104.56 KB | fengtan | |
gsa-admin_keymatchs-view.png | 101.05 KB | fengtan |
Comments
Comment #1
iamEAP CreditAttribution: iamEAP commentedThis is really fantastic!
I was unable to do an end-to-end test on my end (due to some oddities in how we have our GSA configured within our network), but this looks promising. Full review forthcoming.
Comment #2
fengtanOK -- it might also be convenient to be able to search for keymatchs rather than just listing them.
Here is a new patch that allows to do that on the 'view' tab. Screenshot attached.
Comment #3
fengtanAdded support for Related Queries and Onebox modules.
It is possible this could be refactored but the functionality seems to work.
Comment #4
fengtanIt might also be interesting to integrate Query Suggestions.
Comment #5
mausolos CreditAttribution: mausolos commentedHow close is this to being added to dev or released with a module version?
Comment #6
iamEAP CreditAttribution: iamEAP commentedThanks for the interest, @mausolos. I'm excited to include this featureset, but could use help reviewing and testing @fengtan's patch in #4. Our GSA and Drupal installation are not networked in a way that makes testing this easy.