Code Monkey home page Code Monkey logo

polls's Introduction

Polls - an app, similar to doodle or dudle, for Nextcloud written in PHP and JS/Vue.

psalm tests puild lint Dependabot status Software License REUSE status

Free meeting schedule tool

  • ⏭️ Easy poll creation
  • 🛠️ Highly customizable
    • ✉️ Make your poll confidential by hiding the results until you want them to be discovered
    • 🕶️ Obfuscate participants' names from other participants
    • ⏲️ Set an automatic expiry date
    • ➕ Allow participants to add more options
    • ✅ Limit votes per option or user
    • ... 💱 and a lot more
  • 📬 Invite everyone you want
  • 🚀 Export your poll to different spreadsheet formats or HTML
  • 🧧 Let Polls automatically remind your invited users
  • 💬 Comments
  • ☑️ Confirm options after poll closing
  • 📢 Subscribe to notifications per poll
  • 📅 Get hints about possible conflicting entries in your calendar around the date option
  • 🧰 Usable via REST-API
  • Supports the following nextcloud apps
    • Circles
    • Contacts
    • Activity

Installation / Update

This app is supposed to work on Nextcloud version 21+.

Install latest release

You can download and install the latest release from the Nextcloud app store.

Available occ commands

Command Description
polls:db:clean-migrations Remove obsolete migrations, which are no more needed
polls:db:purge Drop Polls' tables and remove migration and settings records
polls:db:rebuild Rebuild Polls' database including indices
polls:index:create Create all necessary indices and foreign key constraints
polls:index:remove Remove all indices
polls:poll:transfer-ownership <source-user> <target-user> Transfer poll ownership from to
polls:share:add [--user USER] [--group GROUP] [--email EMAIL] [--] <id> Add user/group/email with to shares
polls:share:remove [--user USER] [--group GROUP] [--email EMAIL] [--] <id> Remove user/group/email with from shares

Support

Screenshots

Manage your polls and create new ones

Manage Polls

Many configuration options

Vote

Share your poll with other people

Edit poll

Vote on mobile

Share poll

Install from git

If you want to run the latest development version from git source, you need to clone the repo to your apps folder:

git clone https://github.com/nextcloud/polls.git
  • Install dev environment with make setup-dev or
  • install runtime environment with make setup-build
  • Compile javascript with npm run build
  • Run a complete build with make appstore (Find the output in the build directory)
  • call occ app:enable polls to enable Polls

Installation variants

First time install

Nextcloud executes

  • unexecuteted migration classes (not listed in the *_migrations table) and the
  • install repair step.

After a version update (changed version attribute in appinfo/info.xml)

Nextcloud executes

  • pre-migration repair steps,
  • unexecuteted migration classes (not listed in the *_migrations table) and the
  • post-migration repair steps

Enabling already installed but disabled app without version change

Nextcloud executes

  • pre-migration repair steps,
  • unexecuteted migration classes (not listed in the *_migrations table) and the
  • post-migration repair steps and the
  • install repair step

❗ As a compromise at the moment we allow the index creation to be ran twice when enabling the app via app store or occ, to ensure all indexes are created properly for every install/update/enabling path.

Removing Polls from instance

Call occ polls:db:purge to remove Polls completely.

  • removes all Polls related tables
  • removes all Polls related migration records
  • removes all Polls related app config records (this also disables Polls)

This does not remove Polls' files (call occ app:remove polls to remove it complete afterwards) but it resets Polls into an 'uninstalled' state. Enabling the app is then equivalent to a first time install and calls the migration and the install repair step (see above).

Contribution Guidelines

Please read the Code of Conduct. This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.

For more information please review the guidelines for contributing to this repository.

polls's People

Contributors

andyscherzinger avatar artonge avatar bogie avatar comradekingu avatar dartcafe avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar djcrashdummy avatar hamza221 avatar jancborchardt avatar joergmschulz avatar jonathantreffler avatar jotoeri avatar mcorteel avatar morrisjobke avatar nextcloud-bot avatar nickvergessen avatar phrozenbyte avatar pytal avatar rakekniven avatar scrutinizer-auto-fixer avatar skjnldsv avatar splitt3r avatar stonerl avatar szaimen avatar tortuetorche avatar v1r0x avatar valdnet avatar welaq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

polls's Issues

Doesn't work after upgrade to NextCloud 9.0.53

I migrated my OwnCloud 9.0.4 to NextCloud 9.0.53 today and after enabling the polls plugin again, it doesn't work. When switching to the Polls app i get the following:

{"Exception":"Symfony\\Component\\Routing\\Exception\\InvalidParameterException","Message":"Parameter \"hash\" for route \"polls.page.goto_poll\" must match \"[^\/]++\" (\"\" given) to generate a corresponding URL.","Code":0,"Trace":"#0 \/var\/www\/clients\/client123\/web234\/web.cloud\/3rdparty\/symfony\/routing\/Generator\/UrlGenerator.php(136): Symfony\\Component\\Routing\\Generator\\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'polls.page.goto...', 1, Array, Array)\n#1 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/route\/router.php(316): Symfony\\Component\\Routing\\Generator\\UrlGenerator->generate('polls.page.goto...', Array, 1)\n#2 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/urlgenerator.php(66): OC\\Route\\Router->generate('polls.page.goto...', Array)\n#3 \/var\/www\/clients\/client123\/web234\/web.cloud\/apps\/polls\/templates\/main.tmpl.php(40): OC\\URLGenerator->linkToRoute('polls.page.goto...', Array)\n#4 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/template\/base.php(161): include('\/var\/www\/client...')\n#5 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/template\/base.php(139): OC\\Template\\Base->load('\/var\/www\/client...')\n#6 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/template.php(222): OC\\Template\\Base->fetchPage()\n#7 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/public\/appframework\/http\/templateresponse.php(156): OC_Template->fetchPage()\n#8 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/appframework\/http\/dispatcher.php(112): OCP\\AppFramework\\Http\\TemplateResponse->render()\n#9 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/appframework\/app.php(110): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Polls\\Controller\\PageController), 'index')\n#10 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(45): OC\\AppFramework\\App::main('PageController', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#11 [internal function]: OC\\AppFramework\\routing\\RouteActionHandler->__invoke(Array)\n#12 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/private\/route\/router.php(276): call_user_func(Object(OC\\AppFramework\\routing\\RouteActionHandler), Array)\n#13 \/var\/www\/clients\/client123\/web234\/web.cloud\/lib\/base.php(967): OC\\Route\\Router->match('\/apps\/polls\/')\n#14 \/var\/www\/clients\/client123\/web234\/web.cloud\/index.php(39): OC::handleRequest()\n#15 {main}","File":"\/var\/www\/clients\/client123\/web234\/web.cloud\/3rdparty\/symfony\/routing\/Generator\/UrlGenerator.php","Line":177}

Ver 0.7.1 does not save votes for free text / date votes are saved correctl

While date votes work perfectly, free text votes can be edited / voted on, but will not be saved:

image

a quick look at the database shows:
SELECT * FROM oc_polls_particip_text WHERE text is NULL LIMIT 0, 25 ;

id poll_id text user_id type
41 4 NULL js 1
42 4 NULL js 0
43 4 NULL js 1
44 4 NULL somebody 1
45 4 NULL somebody 0
46 4 NULL somebody 1

Using OC 9.0.2, PHP5 on a debian server
Browsers tested: chrome, firefox on OSX

My owncloud.log doesn't show anything significant - where else could I look?
Do you wish to see an example link?

"user_" / "group_" prefix

When you define user access for a poll, "user_" / "group_" prefix appears in list.
cattura

To Dos

  • Create/Edit page
  • Main page

Only show users from Group

When creating a new poll the app currently shows all users and not only the users which are part of the creators group. E.g:

Group1: User 1, User 2
Group2: User 2, User 3

When User 1 creates a poll, only Group 1 is listed but all Users. I don't think that it should be like this. With the current behavior all Users of the server are exposed to the creator. The app should respect the option Restrict users to only share with users in their groups.

Colors

The colors of the poll header and footer are confusing. First of all, this:
spectacle p30302
The dates are white on white background.
And second, I used a darker color for the header and footer in my PR to make them stand out from the rest. Now they have the same color as the current row, which is confusing.
I think we should get back to a darker color for the header and footer.

And the vote cells are to bright, they should be darker for accessibility. Right now, the icons don't have a good contrast. We could use black icons instead, but I think white icons on a darker background would look better (as it was in my PR).
spectacle s30302

@v1r0x what do you think?

Updates/corrections for appstore release

Hi,

there are currently two issues where at least one of them make the app not install-able via the oC internal appstore:

  1. The appinfo/info.xml should contain the <ocsid>174671</ocsid> metadata
  2. The archive at the appstore (https://apps.owncloud.com/content/show.php/Polls?content=174671) containing a folder named polls-0.6.0. This makes the app not install-able as a:

Archive does not contain a directory named polls

is shown when trying to enable the app. The appstore/ownCloud is expecting a folder just called "polls". Some instructions how to release such a version via github where posted here: owncloud/core#18116 (comment)

clicking on the app-button ends on a blank page

Steps to reproduce

  1. Have the old polls-app installed
  2. Upgrade to the new polls-app
  3. activate the app
  4. click on the app button

Expected behaviour

The app works fine

Actual behaviour

A blank page appears

Server configuration

Operating system: Ubuntu 14.04.4

Web server: apache with nginx proxy

Database: mysql 5.5.47-0ubuntu0.14.04.1

PHP version: 7.0.3

ownCloud version: 8.2.2

### Logs
#### ownCloud log (data/owncloud.log)

TypeError: Argument 2 passed to OCP\AppFramework\Db\Mapper::findEntities() must be of the type array, null given, called in /var/www/vhosts/domain.tld/owncloud/apps/polls/db/eventmapper.php on line 47 at /var/www/vhosts/domain.tld/owncloud/lib/public/appframework/db/mapper.php#318


Additionally I tried the downloaded source code (V. 0.6.9.1). With it the folder-rights-problem does not occur but the blank page problem still exists. Obviously are the folder rights in the 0.6.9 release not set correct.

Polls of old app not compatible with rework

Hi,

it seems the polls created with the old app are not compatible with the rework. After upgrading the following is shown:

{"reqId":"RWzEMgu2nwJphuSX+\/sx","remoteAddr":"xxx","app":"index","message":"Exception: {\"Exception\":\"Symfony\\\\Component\\\\Routing\\\\Exception\\\\InvalidParameterException\",\"Message\":\"Parameter \\\"hash\\\" for route \\\"polls.page.edit_poll\\\" must match \\\"[^\\\/]++\\\" (\\\"\\\" given) to generate a corresponding URL.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/symfony\\\/routing\\\/Symfony\\\/Component\\\/Routing\\\/Generator\\\/UrlGenerator.php(140): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'polls.page.edit...', false, Array, Array)\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(325): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator->generate('polls.page.edit...', Array, false)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/cachingrouter.php(56): OC\\\\Route\\\\Router->generate('polls.page.edit...', Array, false)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/urlgenerator.php(65): OC\\\\Route\\\\CachingRouter->generate('polls.page.edit...', Array)\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/polls\\\/templates\\\/main.tmpl.php(101): OC\\\\URLGenerator->linkToRoute('polls.page.edit...', Array, true)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template\\\/base.php(160): include('\\\/var\\\/www\\\/ownclo...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template\\\/base.php(138): OC\\\\Template\\\\Base->load('\\\/var\\\/www\\\/ownclo...')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template.php(211): OC\\\\Template\\\\Base->fetchPage()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/appframework\\\/http\\\/templateresponse.php(156): OC_Template->fetchPage()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(112): OCP\\\\AppFramework\\\\Http\\\\TemplateResponse->render()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(108): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Polls\\\\Controller\\\\PageController), 'index')\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('PageController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#12 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(291): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(851): OC\\\\Route\\\\Router->match('\\\/apps\\\/polls\\\/')\\n#15 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#16 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/symfony\\\/routing\\\/Symfony\\\/Component\\\/Routing\\\/Generator\\\/UrlGenerator.php\",\"Line\":167}","level":3,"time":"2016-02-21T20:29:53+01:00"}

I think its probably too much work to make a converter so it could make sense to warn users that they should delete polls of the old apps before installing the new rework.

Link in polls wrong

Hi,

here is the screenshot:

image

The Parameter 'overwrite.cli.url' in owncloud/config/config.php is set to 'https://server.XXXXX.biz/owncloud'

Seems that "/owncloud" is too much in the URL.

If you need more information please let me know.

Regards
Richard

Just some groups and persons available to choose

Hi,

thanks for your great app! Just installed Polls in our schools ownCloud instance. But then I've realized that only a few groups are shown if I click on choose (it seems that these are the groups I'm member of) and as well only some random users. We're using a LDAP backend for user authentication.
For our usecase it would be great if one could choose a group (a class or course) and create a poll for them. Normally everyone can see every group (and share for example files with them).

White page after "Next" on creating new poll

Using Polls 0.7.0 on oC 8.2.3 hitting "Next" on the "Create new poll" page leads to a white page.

Steps to reproduce:

  1. Create new poll
  2. Enter simple title and description
  3. Leave the defaults "Registered users only", "Event schedule" and no "Expires"
  4. Choose one single day and one single hour
  5. Turn the single cell to green
  6. Hit "Next"

After doing this steps the /index.php/apps/polls/create page redirects to an empty/white /index.php/apps/polls/. Hitting Enter in the URL bar (not reloading the page with F5) refreshes the page and shows the newly created poll.

There is absolutely nothing logged in the data/owncloud.log, php error log or nginx error log so this is not an internal server error.

The only interesting part could be:

xxx - - [19/Mar/2016:00:25:07 +0100] "POST /index.php/apps/polls/insert HTTP/1.1" 307 0 "-" "Mozilla/5.0"
xxx - - [19/Mar/2016:00:25:07 +0100] "POST /index.php/apps/polls/ HTTP/1.1" 405 0 "-" "Mozilla/5.0"

where it seems that the POST for inserting the poll is redirected to a POST on /index.php/apps/polls/ which is failing with a 405/Method Not Allowed.

The same is also happening when e.g. deleting a poll.

Style selection

Hi everyone,

I recently suggested a different style (#69) which was according to myself and all other peoples that I showed it to, a clearer one than the current default. Apparently, v1r0x didn't like it and he closed the PR very quickly.
First of all, I would like to ask v1r0x to don't close PRs to fast. The originator should always have the option to defend the idea and maybe it can be changed in a way that it is more acceptable.
However, styles are always subjective. Of course, it is possible that somebody likes more the simple, approach which little details and other like more a bit elaborated design. My suggestion would therefore be, that I try to add different styles to app!
I'm not totally sure how to do it, but probably I would introduce a settings menu where you can choose between different styles. By default, it would stay the same that it is at the moment. An admin can choose alternative ones, depended from the css style files available on the server. I haven’t done any work on this yet, but I think it would not be too complicate. A modification like this would increase the maintenance effort if the html templates will be changed in future, but in my opinion it is not worse than the language files. Also they have to be updated all the time for each modification.
Before I start working on this, I would like to hear what the others are thinking about this idea. I want to avoid that the PR is closed again very quickly and my work would be worthless.

Cheers,
Bodo

internal server error when opening a free text poll as extern or other user than the author

Hello,
I want to create a public poll with free text option where people have to answer different questions.
I get an internal server error when I try to access the poll created with "free text" option when I am not logged in as author of the poll. Polls with the "date" option work fine instead.

The error message is:

Interner Serverfehler
Der Server hat einen internen Fehler und konnte Ihre Anfrage nicht vervollständigen.
Bitte wende Dich an den Serveradministrator, sollte dieser Fehler mehrfach auftreten, und füge Deiner Anfrage die unten stehenden technischen Details bei.
Weitere Details können im Serverprotokoll gefunden werden.
Technische Details
Entfernte Adresse: [my-temporary-IPv6-address]
Anforderungskennung: VzdQVcCoKK4AABuRlmwAAAFP

These are the owncloud logs in admin panel:

Error index
Exception: {"Exception":"BadFunctionCallException","Message":"dt is not a valid attribute","Code":0,"Trace":"#0 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/public/appframework/db/entity.php(147): OCP\AppFramework\Db\Entity->getter('dt')\n#1 /mnt/webr/c2/33/54595533/htdocs/owncloud/apps/polls/templates/goto.tmpl.php(191): OCP\AppFramework\Db\Entity->__call('getDt', Array)\n#2 /mnt/webr/c2/33/54595533/htdocs/owncloud/apps/polls/templates/goto.tmpl.php(191): OCA\Polls\Db\ParticipationText->getDt()\n#3 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/template/base.php(160): include('/mnt/webr/c2/33...')\n#4 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/template/base.php(138): OC\Template\Base->load('/mnt/webr/c2/33...')\n#5 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/template.php(211): OC\Template\Base->fetchPage()\n#6 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/public/appframework/http/templateresponse.php(156): OC_Template->fetchPage()\n#7 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/appframework/http/dispatcher.php(112): OCP\AppFramework\Http\TemplateResponse->render()\n#8 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/appframework/app.php(108): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Polls\Controller\PageController), 'gotoPoll')\n#9 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/appframework/routing/routeactionhandler.php(45): OC\AppFramework\App::main('PageController', 'gotoPoll', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#10 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)\n#11 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/route/router.php(291): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)\n#12 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/base.php(851): OC\Route\Router->match('/apps/polls/got...')\n#13 /mnt/webr/c2/33/54595533/htdocs/owncloud/index.php(39): OC::handleRequest()\n#14 {main}","File":"/mnt/webr/c2/33/54595533/htdocs/owncloud/lib/public/appframework/db/entity.php","Line":128} 2016-05-14T16:20:38+00:00

Error no app in context
Exception: {"Exception":"Symfony\Component\Routing\Exception\RouteNotFoundException","Message":"Unable to generate a URL for the named route "polls_goto" as such route does not exist.","Code":0,"Trace":"#0 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/route/router.php(325): Symfony\Component\Routing\Generator\UrlGenerator->generate('polls_goto', Array, false)\n#1 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/urlgenerator.php(65): OC\Route\Router->generate('polls_goto', Array)\n#2 /mnt/webr/c2/33/54595533/htdocs/owncloud/apps/polls/templates/goto.tmpl.php(75): OC\URLGenerator->linkToRoute('polls_goto', Array)\n#3 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/template/base.php(160): include('/mnt/webr/c2/33...')\n#4 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/template/base.php(138): OC\Template\Base->load('/mnt/webr/c2/33...')\n#5 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/template.php(211): OC\Template\Base->fetchPage()\n#6 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/public/appframework/http/templateresponse.php(156): OC_Template->fetchPage()\n#7 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/appframework/http/dispatcher.php(112): OCP\AppFramework\Http\TemplateResponse->render()\n#8 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/appframework/app.php(108): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Polls\Controller\PageController), 'gotoPoll')\n#9 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/appframework/routing/routeactionhandler.php(45): OC\AppFramework\App::main('PageController', 'gotoPoll', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#10 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)\n#11 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/private/route/router.php(291): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)\n#12 /mnt/webr/c2/33/54595533/htdocs/owncloud/lib/base.php(851): OC\Route\Router->match('/apps/polls/got...')\n#13 /mnt/webr/c2/33/54595533/htdocs/owncloud/index.php(39): OC::handleRequest()\n#14 {main}","File":"/mnt/webr/c2/33/54595533/htdocs/owncloud/3rdparty/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php","Line":134}

Does anybody have a clue what's wrong there?

Poll initialization

When you enter a poll the first time and never voted:
cattura
I think it should instead be:
cattura
because if you vote a single item (-1 ?!?):
cattura

set max version to newer OC

Just activated the polls on my nextcloud beta 10, works like on OC 9 and NC 9.52 / text polls not possible, but date polls seem to work alright.
So, version might be bumped....

comment anonymously

Hey,

I created a public poll and distributed the link to some people who do not have access to an owncloud account. However when they tried to add a comment, they were redirected to the owncloud login page.
Is it possible to add a comment anonymously?

Thank you very much,
Sammy

Link for public polls incorrect

Today I've tried the first time to create a public poll with the polls app and discovered a bug. The link which is created to share it with others is incorrect. In my case (tested on two servers) the created link looked like this

https://example.com/owncloud//owncloud/index.php/apps/polls/poll/79587hdkhd3zrh83

it should look like this:

https://example.com/owncloud/index.php/apps/polls/poll/79587hdkhd3zrh83

I can access the poll if I’m changing the link manually.

Problem with timezone

Hi!

There seems to be a problem with the timezone.

I am able to reproduce the problem with the following steps:

1.) Create a poll and set date/times to let's say 20:00 o'clock:

edf8062c-04d7-11e6-8a73-d00de9e29389

2.) Visit the poll and check date/times:

32208cb6-04d8-11e6-8b32-9ef00b3aaf7d

The apache timezone is set to Europe/Vienna.

If you need more information let me know.

Regards
Richard

App no longer works after upgrade from old polls app (Polls 0.6.5)

I have created some polls in the previous version of the app (from the old maintainer).
After upgrading to your version, I get an Internal Server Error 500 when accessing the polls app.

owncloud.log says:

{"reqId":"7rNh5YWyXl8TGKPbV\/p0","remoteAddr":"127.0.0.1","app":"index","message":"Exception: {\"Exception\":\"Symfony\\\\Component\\\\Routing\\\\Exception\\\\InvalidParameterException\",\"Message\":\"Parameter \\\"hash\\\" for route \\\"polls.page.edit_poll\\\" must match \\\"[^\\\/]++\\\" (\\\"\\\" given) to generate a corresponding URL.\",\"Code\":0,\"Trace\":\"#0 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/3rdparty\\\/symfony\\\/routing\\\/Generator\\\/UrlGenerator.php(136): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'polls.page.edit...', 1, Array, Array)\\n#1 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/route\\\/router.php(316): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator->generate('polls.page.edit...', Array, 1)\\n#2 \\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/route\\\/cachingrouter.php(56): OC\\\\Route\\\\Router->generate('polls.page.edit...', Array, false)\\n#3 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/urlgenerator.php(66): OC\\\\Route\\\\CachingRouter->generate('polls.page.edit...', Array)\\n#4 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/apps\\\/polls\\\/templates\\\/main.tmpl.php(101): OC\\\\URLGenerator->linkToRoute('polls.page.edit...', Array)\\n#5 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/template\\\/base.php(161): include('\\\/usr\\\/lib\\\/ownclo...')\\n#6 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/template\\\/base.php(139): OC\\\\Template\\\\Base->load('\\\/usr\\\/lib\\\/ownclo...')\\n#7
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/template.php(222): OC\\\\Template\\\\Base->fetchPage()\\n#8 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/public\\\/appframework\\\/http\\\/templateresponse.php(156): OC_Template->fetchPage()\\n#9 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(112): OCP\\\\AppFramework\\\\Http\\\\TemplateResponse->render()\\n#10 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Polls\\\\Controller\\\\PageController), 'index')\\n#11 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('PageController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n
#12 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#13 
\\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#14 \\\/usr\\\/lib\\\/owncloud\\\/www\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/apps\\\/polls\\\/')\\n#15 \\\/usr\\\/lib\\\/owncloud\\\/www\\\/index.php(39): OC::handleRequest()\\n#16 
{main}\",\"File\":\"\\\/usr\\\/lib\\\/owncloud\\\/www\\\/3rdparty\\\/symfony\\\/routing\\\/Generator\\\/UrlGenerator.php\",\"Line\":177}","level":3,"time":"2016-04-26T13:36:40+00:00","method":"GET","url":"\/index.php\/apps\/polls\/","user":"admin"}
``

[Feature Request] Short cuts

Pressing keys to fast select green/yellow/red on the field you hover would be nice at first.
If you could vote completely with the keyboard it would be awesome.

Feature request: anonymous poll

I would like an additional option in poll creation: anonymous.
If enabled each one who participates to the poll cannot see the votes of each other but only the totals.

Multiple errors and problems

Hi,

thank you for developing this app. It's very great and i love it.

Actually it seems that there are multiple problems, here are some error messages:

{PHP} Undefined variable: poll_id at /var/www/owncloud/apps/polls/templates/goto.tmpl.php#75 --> On poll creation

PHP Fatal error: Call to a member function t() on a non-object in /var/www/owncloud/apps/polls/controller/pagecontroller.php on line 119 --> On poll creation

{PHP} Trying to get property of non-object at /var/www/owncloud/apps/polls/controller/pagecontroller.php#288 --> On poll creation

{PHP} Undefined variable: l at /var/www/owncloud/apps/polls/controller/pagecontroller.php#119 --> On public vote, followed by a HTTP 500

Let me know if you need more information.

Regards

Richard

No view is as it should.

my creating of a poll (as it should look like)
2016-06-09 19_42_18-umfragen - owncloud

what I see if I open the Poll - (hat to merge three printscreens)
umfragen - owncloud

What the poll tells me if I edit it.
2016-06-09 19_43_33-umfragen - owncloud

ownCloud 9.0.2 (stable)

If you need some more information, please ask.

App acts weird whe langugage is set to de_DE

When the UI-Langugage is set to Deutsch(Förmlich:Sie) de_DE, the app acts weird. For example it is not possible to select groups or users when creating or editing a poll.

Also sending comments ins polls is broken.

UI: List of chosen users should have buttons to delete from list

As already mentioned here: #80 i would be great to have something like a red cross to delete a user from the list of chosen users for a poll. Otherwise it might be unclear how to delete a user from a list (you have to click on the username up to now which is isn't intuitive).

toggle-all is quite confunding

I used the app for many test, you know.
I think the "toggle-all" button is quite confunding.
I think you cannot use the toggle-concept (usually binary, on-off, true-false, etc.) for a three states application.
The user must know that the sequence of the toggle button value is GRY.
Then, if you vote Green/Yellow/Red all the options the toggle button does not change its own status so you can achieve the following situation:
cattura
and you expect that pressing the toggle button all options should become Y ... no, they stay G and the toggle becomes G.
I don't know. It's quite strange and confunding.

Fast clicking produced wrong graphical feedback

If you fast double/trible click on a field, the color just switches to the next one instead of the one after (or 2 after). The numbers sometimes did very weird things and did not represent the correct data shown with the field colors. For example there was a green 5 for a poll with only 3 voters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.