Skip to main content

An app for monitoring game activity of members with Member Audit and Alliance Auth.

Project description

AA Inactivity

An app for monitoring game activity of members with Member Audit and Alliance Auth.

release python django CI/CD Pipeline codecov license pre-commit Code style: black chat

Content

Features

  • Automatically notify users who become inactive.
  • Automatically notify managers when users become inactive.
  • Approval process for leave of absence requests
  • Can inform managers about various events via Discord webhook
  • List of inactive users
  • Define through policies after how many days a user of absence a user is considered inactive
  • Fetching the last login dates from Member Audit to determine how long a user has been inactive

Users are notified on Alliance Auth. If you want those notifications to be forwarded as DM on Discord, please check out this app: Discord Notify.

Screenshots

A user creating a new leave of absence request:

request

A manager reviewing a leave of absence request:

pending

A manager looking through the list of currently inactive and notified users:

notified

Installation

Step 0 - Requirements

This app needs Member Audit to function. Please make sure it is installed before continuing.

Step 1 - Install the Package

Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:

pip install aa-inactivity

Step 2 - Config

Add inactivity to your INSTALLED_APPS, and add the following task definition:

CELERYBEAT_SCHEDULE['inactivity_check_inactivity'] = {
    'task': 'inactivity.tasks.check_inactivity',
    'schedule': crontab(minute=0, hour=0),
}

Step 3 - Finalize App Installation

Run migrations:

python manage.py migrate
python manage.py collectstatic

Restart your supervisor services for Auth

Permissions

This app uses permissions to control access to features.

Name Purpose Code
general - Can access this app Enabling the app for a user. This permission should be enabled for everyone who is allowed to use the app basic_access
general - Can manage leave of absence requests Allows a user to approve/deny loa requests. manage_leave

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aa_inactivity-3.0.1.tar.gz (145.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aa_inactivity-3.0.1-py3-none-any.whl (98.7 kB view details)

Uploaded Python 3

File details

Details for the file aa_inactivity-3.0.1.tar.gz.

File metadata

  • Download URL: aa_inactivity-3.0.1.tar.gz
  • Upload date:
  • Size: 145.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for aa_inactivity-3.0.1.tar.gz
Algorithm Hash digest
SHA256 7b01a97329efd93b53dfe6d0476ed4cace6ebfb0917346e6edc2837f6463aeee
MD5 284e89ad694a56b3c5dbe06adaf7047f
BLAKE2b-256 ef93d6bee43b5f7d683a1b1260640ca062138191607de51f3059bffd1d6dc2e5

See more details on using hashes here.

File details

Details for the file aa_inactivity-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: aa_inactivity-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 98.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for aa_inactivity-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7206a72c922a8c7cc85ea5d51c8c93a64f427f8ea14d497415342330441e89e
MD5 041105d4ede34b0fb3037ad80f5574b5
BLAKE2b-256 3ad8ccd792fe5a3fac08bf7aa300b3f1dbbec56494f8097e3eb5f05ca0d2962e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page