semaphor-dk / voxpop Goto Github PK
View Code? Open in Web Editor NEWDjango based application for submitting and upvoting questions.
License: GNU General Public License v3.0
Django based application for submitting and upvoting questions.
License: GNU General Public License v3.0
Questions jump around when users attempt to vote on them.
The database connections used for SSE are not closed, witch leads to not available database connections, as they are all used.
The EventSource
at /voxpops/<voxpopid>/questions/stream
calls questions_stream_view
witch returns a StreamingHttpResponse
in
Lines 237 to 245 in f26ca8b
Inside __stream_questions
some async code yields the events:
Lines 220 to 224 in f26ca8b
This async block needs to be stopped and the database connection closed, when the HTTP connection is dropped.
We want to provide a SSE endpoint which sends update with new questions and votes.
Maybe even in another tab?
The vote count is reset until the page is reloaded.
Questions in a greyed out "answered" state do not disappear when marked as unanswered.
We should add a message id and then send what the client didn't get.
Everything is two hours behind :-)
We need a "watered down" version of the Django interface that allows authenticated users to view Voxpops relevant to their organisation as well as moderate the chats of the Voxpops.
I think the site will be accesible like this:
voxpop.semaphor.dk/admin <- General overview
voxpop.semaphor.dk/admin/<voxpop.uuid> <- Specific voxpop overview.
And potentially we can use the @login_required decorater around the specific views to ensure only authorized personall can access the site.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.