Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database with logs for transparency reports #20

Open
roata opened this issue May 26, 2019 · 0 comments
Open

Database with logs for transparency reports #20

roata opened this issue May 26, 2019 · 0 comments
Labels
database DB-related matters, involving awareness of SQL enhancement New feature or request help wanted Extra attention is needed

Comments

@roata
Copy link
Member

roata commented May 26, 2019

To keep track of the number of users and requests we get each day, there has to be a database where this information is logged. This will be used for regular transparency reports, to monitor our growth and estimate the potential of RoataWăy.

The database will use SQLAlchemy with an SQLite backend (for now), and contain the following information:

Events table

  • event_id
  • timestamp
  • action, one of {add, feedback, prognosis} as a numeric code
  • chat_id (not sure about this one yet)

Metadata table

  • event_id (foreign key)
  • metadata (depending on the action, feedback -> feedback text, prognosis -> route number)

We refrain from storing metadata about users (names and nicknames), because the chat_id is sufficient to uniquely identify a user.

@roata roata added database DB-related matters, involving awareness of SQL enhancement New feature or request help wanted Extra attention is needed labels May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database DB-related matters, involving awareness of SQL enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant