• Closed polls have no vote information

    From Nightfox@VERT/DIGDIST to Digital Man on Fri Aug 18 19:53:03 2017
    Hi DM,ããIt seems that after closing a poll, the poll no longer has any voteãinformation. total_votes is 0, and the tally values for the options are all 0.ãIs that how it was designed? I'm curious because SlyVote has an option toãdisplay stats on the polls in the current sub-board (number of votes andãhighest-voted options), and for closed polls, those are all 0. Also, whenãviewing a closed poll, it appears as if it didn't get any votes.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Fri Aug 18 21:18:59 2017
    Re: Closed polls have no vote informationã By: Nightfox to Digital Man on Fri Aug 18 2017 07:53 pmãã > Hi DM,ã >ã > It seems that after closing a poll, the poll no longer has any voteã > information. total_votes is 0, and the tally values for the options are allã > 0. Is that how it was designed? I'm curious because SlyVote has an optionã > to display stats on the polls in the current sub-board (number of votes andã > highest-voted options), and for closed polls, those are all 0. Also, whenã > viewing a closed poll, it appears as if it didn't get any votes.ããNo, that's not how it's supposed to work. A closed poll just means that no oneãelse can vote (the polls have closed). I'll play with it and test it out someãmore. Maybe it's just a problem with the JS modeling as I'm pretty sure I triedãit out using the built-in message reading functionality, but I'll give it a goãagain.ãã digital manããSynchronet/BBS Terminology Definition #25:ãFTS = FidoNet Technical StandardãNorco, CA WX: 70.7øF, 71.0% humidity, 2 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Nightfox on Fri Aug 18 21:26:15 2017
    Re: Closed polls have no vote informationã By: Digital Man to Nightfox on Fri Aug 18 2017 09:18 pmãã > Re: Closed polls have no vote informationã > By: Nightfox to Digital Man on Fri Aug 18 2017 07:53 pmã >ã > > Hi DM,ã >ã > > It seems that after closing a poll, the poll no longer has any voteã > > information. total_votes is 0, and the tally values for the options areã > > all 0. Is that how it was designed? I'm curious because SlyVote has anã > > option to display stats on the polls in the current sub-board (number ofã > > votes and highest-voted options), and for closed polls, those are all 0.ã > > Also, when viewing a closed poll, it appears as if it didn't get anyã > > votes.ã >ã > No, that's not how it's supposed to work. A closed poll just means that noã > one else can vote (the polls have closed). I'll play with it and test it outã > some more. Maybe it's just a problem with the JS modeling as I'm pretty sureã > I tried it out using the built-in message reading functionality, but I'llã > give it a go again.ããI just tested in a local test msgbase and closing poll did not remove itsãvotes:ããÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄúúúúã³ Subj: can you see this?ã³ Attr: Poll (Closed)ã³ From: Digital Man #1ã³ Date: Mon Aug 14 2017 02:59 am PDT (4.8 days ago)ãÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄúúúúúúãã 1: yes [1 100%] ûã 2: no [1 100%] ûã 3: maybe [0 0%]ããHave you tried closing a poll using the built-in message reader functionality?ãã digital manããSynchronet/BBS Terminology Definition #8:ãBSO = Binkley Style OutboundãNorco, CA WX: 70.2øF, 73.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Nightfox on Fri Aug 18 21:49:08 2017
    Re: Closed polls have no vote informationã By: Nightfox to Digital Man on Fri Aug 18 2017 07:53 pmãã > Hi DM,ã >ã > It seems that after closing a poll, the poll no longer has any voteã > information. total_votes is 0, and the tally values for the options are allã > 0. Is that how it was designed? I'm curious because SlyVote has an optionã > to display stats on the polls in the current sub-board (number of votes andã > highest-voted options), and for closed polls, those are all 0. Also, whenã > viewing a closed poll, it appears as if it didn't get any votes.ããI think the problem was that there was no easy method for your to properlyãclose a poll via JS. You don't close a poll by modifying the poll (this wouldãnot send a closure message out to the network,f or example) - instead, a pollãclosure is actually a new message which propagates through the network andãmarks the (existing) poll as closed.ããI just committed a change which adds a MsgBase.close_poll() method. Try usingãthat to close a poll and it should work as intended.ãã digital manããSynchronet "Real Fact" #9:ãThe name "DOVE-Net" comes from: The Beast's DOmain / VErtrauen network.ãNorco, CA WX: 69.8øF, 73.0% humidity, 4 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Sat Aug 19 09:38:15 2017
    Re: Closed polls have no vote informationã By: Digital Man to Nightfox on Fri Aug 18 2017 09:49 pmãã DM> I think the problem was that there was no easy method for your to properlyã DM> close a poll via JS. You don't close a poll by modifying the poll (thisã DM> would not send a closure message out to the network,f or example) -ã DM> instead, a poll closure is actually a new message which propagates throughã DM> the network and marks the (existing) poll as closed.ãã DM> I just committed a change which adds a MsgBase.close_poll() method. Tryã DM> using that to close a poll and it should work as intended.ããThat seems to work as expected.ããI have updated SlyVote for multi-answer polls, and it seems to be workingãproperly. I've tested to make sure SlyVote is saving poll responses properlyã(by viewing them in the stock reader) and that SlyVote is displaying polls withãtheir responses properly (after voting with the stock reader). You should beãable to use the latest SlyVote.js and DDLightbarMenu.js that I've committed toãCVS.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From Nightfox@VERT/DIGDIST to Digital Man on Sat Aug 19 12:16:15 2017
    Re: Closed polls have no vote informationã By: Digital Man to Nightfox on Fri Aug 18 2017 09:49 pmãã DM> I just committed a change which adds a MsgBase.close_poll() method. Tryã DM> using that to close a poll and it should work as intended.ããOne thing I was thinking about is that in addition to the user who posted the ãpoll, the sysop might also want to be able to close polls that were posted onãtheir own BBS. Closing other peoples' polls on a networked sub-board wouldãprobably not be good though.. What do you think? Does close_poll() alreadyãhave some logic for that? I imagine the logic for that could also probably beãimplemented in JavaScript.. ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Sat Aug 19 19:02:01 2017
    Re: Closed polls have no vote informationã By: Nightfox to Digital Man on Sat Aug 19 2017 12:16 pmãã > Re: Closed polls have no vote informationã > By: Digital Man to Nightfox on Fri Aug 18 2017 09:49 pmã >ã > DM> I just committed a change which adds a MsgBase.close_poll() method. Tryã > DM> using that to close a poll and it should work as intended.ã >ã > One thing I was thinking about is that in addition to the user who postedã > the poll, the sysop might also want to be able to close polls that wereã > posted on their own BBS. Closing other peoples' polls on a networkedã > sub-board would probably not be good though.. What do you think? Doesã > close_poll() already have some logic for that? I imagine the logic for thatã > could also probably be implemented in JavaScript..ããclose_poll() ends up calling smb_addpollclosure() which insures that the fromãname/net_addr matches the pollster (author/sender of the poll). If you wantedãto spoof that information (just copy those header fields from the poll msg) inãJS, you could do that. The built-in method of closing polls does not make anyãspecial exemption for the sysop/sub-op and I don't personally think it'sãneeded.ãã digital manããSynchronet/BBS Terminology Definition #41:ãSBBS = Synchronet Bulletin Board SystemãNorco, CA WX: 75.9øF, 62.0% humidity, 11 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã