adhocteam / nytimes-library

A collaborative documentation site, powered by Google Docs.
https://nyt-library-demo.herokuapp.com/
Apache License 2.0
1 stars 1 forks source link

Post to Slack when new content is added #14

Closed gunsch closed 4 months ago

gunsch commented 2 years ago

User story: people don't know when new content is added, which limits that new content's usefulness.

Hypothesis: notifying Slack when new docs are added will help create awareness of new, useful content.

When new files are detected in the Content Library Shared Drive, post to the #content-writing Slack channel about it.

zenkimoto commented 2 years ago

Just wondering how would the application know if there's new content? Somehow we need to store the before and after. Or maybe check creation date since the last check? We would need to store that date somewhere. Just thinking ideas.

gunsch commented 2 years ago

Hmm! Two ideas that come to mind:

(1) A daily job that just posts everything added in the last day (though, we'd probably have to start by figuring out how to configure a cron / daily job in this app, or split it across the people app)

(2) wherever the sync / ingest is in this codebase. somewhere in here it syncs with Google Drive, then adds records of new files into the Datastore instance. when that happens, can we also add a hook like posting to Slack?

timwright12 commented 2 years ago

Are we able to utilize some thing like If This Then That for this purpose? It seems like there are some recipes on there for connecting Drive and Slack.

gunsch commented 2 years ago

We used to do things like that in Zapier, but generally these services get into payment and licensing issues --- not to mention some added complexity of the implementation sprawling outside the existing infrastructure. I'd rather not go that route

wolvgrad98 commented 4 months ago

The content library has fallen out of use and #content-writing Slack channel is archived.