[Building Sakai] New property for public poll option

Jim Mezzanotte jmezzanotte at anisakai.com
Wed Nov 20 08:35:26 PST 2013


Hi Adam,

I submitted an enhancement request
(https://jira.sakaiproject.org/browse/SAK-25399) for adding a property
to control the public poll setting. Thanks for the dialogue!

Best,
Jim Mezzanotte
Asahi Net International

On Mon, Nov 18, 2013 at 10:23 AM, Adam Marshall
<adam.marshall at it.ox.ac.uk> wrote:
> I think adding a property to control visibility of the option is a great idea.
>
> adam
>
> -----Original Message-----
> From: Jim Mezzanotte [mailto:jmezzanotte at anisakai.com]
> Sent: 18 November 2013 14:55
> To: Adam Marshall
> Cc: sakai-dev at collab. org; sakai-user at collab.sakaiproject.org
> Subject: Re: [Building Sakai] Questions about the public poll option
>
> Hi Adam,
>
> No worries! I really just wanted to get clarification on how/if this feature works.
>
> One idea--would it be possible to control the "public" feature via property setting? Then, institutions wanting to take the Entity Broker approach could enable it, but otherwise it wouldn't display to users.
>
> Thanks again for looking into this, much appreciated.
>
> Best,
> Jim Mezzanotte
>
> On Fri, Nov 15, 2013 at 5:09 AM, Adam Marshall <adam.marshall at it.ox.ac.uk> wrote:
>> You are completely right, I was speaking absolute tommyrot.
>>
>> You cannot vote in a public poll via the regular sakai UI and indeed you must use something like JavaScript to access the data via Entity Broker.
>>
>> I apologise for my mistake, I should have realised as we've had an outstanding bug for a couple of years now to fix the problem that you highlighted.
>>
>> adam
>>
>> -----Original Message-----
>> From: Jim Mezzanotte [mailto:jmezzanotte at anisakai.com]
>> Sent: 13 November 2013 20:15
>> To: Adam Marshall
>> Cc: sakai-dev at collab. org; sakai-user at collab.sakaiproject.org
>> Subject: Re: [Building Sakai] Questions about the public poll option
>>
>> Thanks Adam--I tried this in nightly
>> (http://nightly2.sakaiproject.org:8087/portal).
>>
>> After opening the Poll tool in a different tab, I clicked on a poll (the poll had "public" option selected but the site does not have ".anon" role added) and copied the URL, but it looks like this:
>>
>> http://nightly2.sakaiproject.org:8087/portal/site/5131f3d8-40f5-4c42-b
>> a5d-87be60dbd2fe/page/e4d9685b-0b85-4fcf-9d54-700d18547d22
>>
>> So instead I just did a right-click "save link location" (on Mac) for the poll link itself in the Poll tool. Then I got this URL:
>>
>> http://nightly2.sakaiproject.org:8087/portal/tool/d13288fc-dfb0-4e85-8
>> db6-947a8350586c/voteQuestion?id=1
>>
>> When I paste this URL, I get a Sakai login box, and if I log in (with a user not in the site), I get "the site you requested is not available."
>>
>> Best,
>> Jim
>>
>> On Fri, Nov 8, 2013 at 4:37 PM, Adam Marshall <adam.marshall at it.ox.ac.uk> wrote:
>>> I would open the poll frame in its own tab the click on a poll. The
>>> URL of this is the one you use, it will have a number in it, eg,
>>>
>>> ...../portal/hierarchytool/667e6ffc-8f64-4f2f-bc68-5ebcf2729be2/voteQ
>>> u
>>> estion?id=1
>>>
>>> the id at the end is the number of the poll. (Note You probably wont
>>> have 'hierarchytool' in your URL, that's a local modification.)
>>>
>>> adam
>>>
>>> -----Original Message-----
>>> From: Jim Mezzanotte [mailto:jmezzanotte at anisakai.com]
>>> Sent: 08 November 2013 19:32
>>> To: Adam Marshall
>>> Cc: sakai-dev at collab. org; sakai-user at collab.sakaiproject.org
>>> Subject: Re: [Building Sakai] Questions about the public poll option
>>>
>>> Thanks again Adam--how are you grabbing the poll URL? Every method I've tried results in a login requirement to access the poll, even if I select the public option.
>>>
>>> In regards to the error, I just added the ".anon" role to a site with only the "site.visit" and "poll.vote" permissions enabled. This has worked before, and I'm not sure why I'm getting the error. Attached a screenshot, thanks in advance if you can offer any advice.
>>>
>>> Best,
>>> Jim Mezzanotte
>>> Asahi Net International
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Nov 6, 2013 at 3:20 PM, Adam Marshall <adam.marshall at it.ox.ac.uk> wrote:
>>>> It is possible to get the URL of a single poll and this could be presented to the general public, basically you get the poll without the Sakai outer frame. It's ugly and not optimal but could be used.
>>>>
>>>> It would be fairly simple to provide JavaScript that invokes Entity Broker calls to display a neat little poll suitable for a public website / page.
>>>>
>>>> Not sure about your error though. If you give more details I can see if it happens with our implementation.
>>>>
>>>> adam
>>>> -----Original Message-----
>>>> From: Jim Mezzanotte [mailto:jmezzanotte at anisakai.com]
>>>> Sent: 06 November 2013 19:41
>>>> To: Adam Marshall
>>>> Cc: sakai-dev at collab. org; sakai-user at collab.sakaiproject.org
>>>> Subject: Re: [Building Sakai] Questions about the public poll option
>>>>
>>>> Hi Adam,
>>>>
>>>> Thanks for the info! The relationship of the "public" option to the .anon role now makes sense--I hadn't considered adding the .anon role but not enabling the "poll vote" permission for it. Unfortunately I'm now getting errors in nightly when I add the .anon role (with or without "vote" permission) and then try to access a poll without logging in, and I'm not sure what I might be doing wrong.
>>>>
>>>> Just to make sure I have this right--setting aside the ".anon"
>>>> approach, am I correct that the public option won't provide poll access to logged-in users, out of the box? In other words, you would need some kind of additional integration, such as you have with Oxford Mobile, for the public option to be relevant?
>>>>
>>>> Best,
>>>> Jim Mezzanotte
>>>> Asahi Net International
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Nov 5, 2013 at 7:26 AM, Adam Marshall <adam.marshall at it.ox.ac.uk> wrote:
>>>>> That patch was something we got Steve to do. I think the issue description is wrong and am happy to change it if people would like that. Please let me know - I'm not sure of the protocol of editing a description. I will add the text of this email as a comment though.
>>>>>
>>>>> Am I right in thinking this is part of 2.8, 2.9 and 10?
>>>>>
>>>>> The patch will add an option to make a specific poll available to the public. It is orthogonal to the site having .anon access.
>>>>>
>>>>> If a poll is set as public then non-logged in users can vote in the poll, however, it doesn't mean they can visit the site (unless the site does have .anon access). Clearly, this implies that non-logged in users cannot visit the Polls tool either (again due to lack of permissions).
>>>>>
>>>>> 'So what is the use of the patch?' I hear you ask.
>>>>>
>>>>> It is designed for use via Entity Broker: our use-case was to replicate 'clicker' voting functionality. We have hooked the Polls tool up to Mobile Oxford so that we can let a room full of seminar attendees vote on issues during a presentation via their mobile phone.
>>>>>
>>>>> However, there is more.
>>>>>
>>>>> If you grant .anon access to the site then the general public can visit the site and the Polls tool.
>>>>>
>>>>> If one then uses the permissions helper to give .anon the "vote" permission then non-logged in users can vote on ALL polls.
>>>>>
>>>>> If you don't use the permissions helper but use the 'public' checkbox instead then on-logged in users can just vote on the specified polls (and not on the rest).
>>>>>
>>>>> I can confirm that the above works perfectly on our copy of 2.8.
>>>>>
>>>>> adam
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: sakai-dev-bounces at collab.sakaiproject.org
>>>>> [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Jim
>>>>> Mezzanotte
>>>>> Sent: 04 November 2013 18:41
>>>>> To: sakai-dev at collab. org; sakai-user at collab.sakaiproject.org
>>>>> Subject: [Building Sakai] Questions about the public poll option
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm trying to get some clarity on the "public" poll option in the Polls tool. Unless I'm missing something (and apologies in advance if I am), it doesn't seem to be working.
>>>>>
>>>>> I could only find the following description for this feature
>>>>> (https://jira.sakaiproject.org/browse/SAK-18855):
>>>>>
>>>>> "If the Poll tool is on a .anon accessible site then add a checkbox option 'allow public to vote' between the 'Limits' and 'Results are visible' sections. This will be complementary to adding the .anon role with poll.vote permission to a site, but will allow an individual poll to be public, rather than having to have them all public."
>>>>>
>>>>> I'll confess the language here has me confused--if this option is complementary to adding the ".anon" role, then I would assume a "public" option would limit an individual poll. In other words, with the ".anon" role added, all polls are public. So if you didn't check the "public" box, that pool would not be accessible, even with the .anon role added.
>>>>>
>>>>> But from my testing, both in our own 2.9 instances and in community nightly, the "public" box seems to have no effect at all. If you don't have the .anon role added, selecting this option doesn't provide public access to a poll; and if you do add the .anon role, not selecting this option won't limit public access.
>>>>>
>>>>> I also don't see any evidence of public visibility--if you add a public poll to a site and then find that site via search on the gateway, the poll is not displayed.
>>>>>
>>>>> There's an existing query
>>>>> (https://jira.sakaiproject.org/browse/POLL-145) about this option, specifically in regards to it not being documented in Help.
>>>>>
>>>>> But I'm wondering if this feature works at all--and if not, whether it should be disabled. Even if it does work as designed, my two cents is, it's confusing to end users. They won't know about the ".anon" role and they will reasonably expect that checking the "public" option will be sufficient for making a poll publicly accessible.
>>>>>
>>>>> Best,
>>>>> Jim Mezzanotte
>>>>> Asahi Net International
>>>>> _______________________________________________
>>>>> sakai-dev mailing list
>>>>> sakai-dev at collab.sakaiproject.org
>>>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>>>
>>>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"


More information about the sakai-dev mailing list