After discussions with Boris Mann, Merlin, heyrocker, snelson and Robloach at drupalcon DC it was agreed to introduce a views display type for services. This type will allow services to be exposed via the views builder and allow users to define security etc. This is raised as a placeholder and stimulate discussions about this issue.

CommentFileSizeAuthor
#2 services-views.initial.patch8.88 KBmarcingy

Comments

marcingy’s picture

added tag

marcingy’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Needs work
StatusFileSize
new8.88 KB

This patch is an initial roll of a views display plugin for services. At the moment it doesn't really do much at all but I wanted to share my work so far. Basically it exposes a new display type of service to views. The services_view module in hook service then picks up these entries from the database table and build service definitions for the views. Views arguments are used to defined service arguments. These services can be viewed on the browser services page - note that the cache is not currently being cleared when a view is being created so you have to manually flush the cache to see them. There is a lot of work that needs to go on in terms of defining types etc. Feedback welcome eventhough it is early days.

greg.harvey’s picture

Wonderful. Nothing to add today, but subscribing and hope to contribute going forwards. Anyone at DC Paris looking at this? I will be there. =)

marcingy’s picture

Greg

Looks like I'll be at drupalcon Paris so if you fancy getting together to work on this issue at the sprints or anything else services based ;) I believe Hugo and Amitaibu are also going to be there.

Marc

greg.harvey’s picture

Hi Marc - would love to. I really need to work on my PHP OO skills so pairing with someone on a nice Views 2.x project would be great. =)

Edit: Your d.o contact form is switched off by the looks of things, but mine isn't, so ping me an email about DC via that (it goes to my Gmail account) and I'll reply.

introfini’s picture

Subscribing....

gdd’s picture

Status: Needs work » Postponed

Marking this as postponed. We got the other Views patch in and I don't see this progressing to the point where it is committable in time for a stable release of 2.x. Reopen with a new patch if you want to prove me wrong!

gdd’s picture

Status: Postponed » Closed (won't fix)

So I think this is a good idea, but Views is going away in all future versions of Services so this has become don't fix. Someone wants to take it to contrib, I think that's a great idea.

greg.harvey’s picture

I haven't needed Services in projects for a little while, hence lack of activity on my part, but I love the module and think this will be really useful. I suspect the next Services project I do I may well end up releasing a contrib module for this, based on the code here, if that's ok with marcingy?

gdd’s picture

Project: Services » Services Views
Version: 6.x-2.x-dev »

Moving this to the new contrib Services Views project for consideration there

Nick Robillard’s picture

I'm very interested in this. Creating a display style for services is a conclusion i came to a while ago - good to see we're on the same page.