Giter VIP home page Giter VIP logo

dialogue's Introduction

Hi there ๐Ÿ‘‹

dialogue's People

Contributors

flxcn avatar

Watchers

 avatar

dialogue's Issues

Why is a delegate's online status determined by "last_active_on"?

Initially, two approaches were considered to signal whether a delegate is online (i.e. active) or offline.

First was a boolean table column called is_logged_in, which would be toggled to true after sign-in and switched back to false after the sign-out button is clicked. However, with some testing, it was clear that even if a delegate closed the browser window without clicking the sign-out button, the delegate would still be registered as "online."

Therefore the second approach was pursued. A table column called "last_active_on" is updated through a function when the delegate is signed into the dashboard, and this updated value is checked against the current time to determine "online" status.

Change icon.png

At some time in the future, once most of the code for this project has been written, consider swapping out icon.png for a new icon that doesn't require attribution, OR properly include attribution on each page, OR draw a new one. For now it is fine, because it is in development and recorded on the ACKNOWLEDGEMENTS.md file.

To maintain a "last_active_on" column in "delegates", or create a new "sessions" table?

This may ultimately be a moot point, but I did want to write this down for future reference. At the moment, active delegate sessions on the dashboard are being tracked through a single column in the 'delegates' table, which is update frequently with new timestamps.

As the project scales and the username grows, it may be worth taking a look at creating a separate table named 'sessions', or 'delegate_activities', or some combination of those terms, for the purpose of logging user activity. It would however grow in volume at a much faster rate than the other tables, which may require future maintenance.

Here's an interesting Stack Overflow article that is relevant to the topic:
https://stackoverflow.com/questions/174248/strategy-for-tracking-user-recent-activity

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.