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

[!TIP] 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.2.tar.gz (146.0 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.2-py3-none-any.whl (98.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aa_inactivity-3.0.2.tar.gz
Algorithm Hash digest
SHA256 78e64251d144c0c8cfb5d4cd24025672b34fa49751333073bf6526f3743c9b9d
MD5 f27749df2660aa8176a7d65008a514d1
BLAKE2b-256 4d5e6d88c3994d59eb53b7265a50680e98a9f07deb21b82e4e09e965aefbbcf5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aa_inactivity-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc3663c2b69b9ce628e754bd240a1c740d195f5d402e9331e1e9b72a57796517
MD5 2e18a456f034ead48eff5120bb710e53
BLAKE2b-256 0643a8e3d3623c6cb8db38630dbb7cb745d26decadfaf440eb0e52e84cd9581d

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