mod-harbour / slack-logs

A viewer application for the logs of a Slack workspace
https://slack.mod-harbour.org
MIT License
0 stars 0 forks source link

How to fetch/store the workspace logs #4

Open andreubotella opened 4 years ago

andreubotella commented 4 years ago

Since this repo is meant to be used for abitrary Slack workspaces, rather than just the mod-harbour Slack that we're deploying at slack.mod-harbour.org, we must allow some degree of configuration on how to load those logs.

My initial idea here was to have a logs directory that's empty in the repo but that the app expects to contain subfolders with the different Slack backups (so that we can just do git clone https://github.com/cristobalnavarro/Slack_ModHarbour logs and have it work). Then, when the model prg's are first loaded, they make sure that directory contains the logs, and build a hash in memory for the various channels, users and so on across the different backups.

@carles9000 @cristobalnavarro Any thoughts?


Como este repositorio está hecho para usarse con workspaces arbitrarios de Slack, en vez de ser solo para el Slack de mod-harbour que hemos montado en slack.mod-harbour.org, debemos de permitir cierto grado de configuración sobre cómo cargar esos logs.

Mi idea inicial aquí era tener un directorio logs que esté vacío en el repo, pero que la app espera que contenga subcarpetas con los distintos backups del Slack (para que podamos hacer simplemente git clone https://github.com/cristobalnavarro/ Slack_ModHarbour logs y que funcione). Entonces, al cargar los prg's del modelo por primera vez, se aseguran de que el directorio contenga los logs y crean un hash en memoria para los distintos canales, usuarios y demás a lo largo de los distintos backups.

@carles9000 @cristobalnavarro ¿Qué opináis?

andreubotella commented 4 years ago

From yesterday's mod-harbour Skype call, it seems like most people agree with the idea of having a user-generated /logs directory, containing a number of folders with the Slack backups, and a /config.json file (also user-generated) listing the directories in logs in the order in which they should be read by the model.

I'll go ahead and make a pull request for that.


A partir de la charla del Skype de mod-harbour de ayer, parece que la mayoría está de acuerdo con la idea de tener un directorio /logs generado por el usuario, que contenga varias carpetas con los backups de Slack, y un archivo /config.json (también generado por el usuario) que liste los directorios en logs en el orden en que se deben leer desde el modelo.

Ahora abro un pull request para eso.