connorads / lockbot

🔒 Coordinate use of your team's shared resources, in Slack 🤝
https://lockbot.app
MIT License
57 stars 7 forks source link

Add lock reminder #191

Open mm-derek opened 4 months ago

mm-derek commented 4 months ago

This is a work in progress. Please feel free to use, or contribute to this PR to make it suitable for general use.

Feature: Send reminder message for locked resources

This is a Lambda function that reminds users periodically if they have any active Lockbot locks.

It works by getting the list of active locks from the Lockbot database, and parsing the data to determine if a user has had an active lock for more than a configured amount of time; for each such user, it sends them a private reminder message on Slack.

This function is triggered by a timer so that it runs at a regular interval.

NOTE: This function does not store any record of whether a user has already been reminded, so it must be scheduled to run at an interval that is frequent enough to notify a user within a reasonable amount of time of the configured threshold, while also not sending reminders too frequently.


Closes #49

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud