Skip to main content

Another Fleet Activity Tracking tool for Alliance Auth

Project description

Alliance Auth AFAT - Another Fleet Activity Tracker

version license python django Code style: black

An Improved FAT/PAP System for Alliance Auth.

AFAT is a privately maintained whitelabel of ImicusFAT. Updates will only be pushed when ImicusFAT get updates to keep on par with it.

Feature Highlights/Differences

  • FATLink Creation and Population from ESI
  • Fleet Type Classification (can be added in the Admin Menu)
  • Graphical Statistics Views
  • Many Core Functionality Improvements and Fixes

AFAT will work alongside the built-in native FAT System, bFAT and ImicusFAT. However data does not share, but you can migrate their data to AFAT, for more information see below.

Contents

Installation

Important

This app is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official AA installation guide for details)

For users migrating from one of the other FAT systems, please read the specific instructions FIRST.

Step 1 - Install app

Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the latest version:

pip install allianceauth-afat

Step 2 - Update your AA settings

Configure your AA settings (local.py) as follows:

  • Add 'afat', to INSTALLED_APPS

Step 3 - Finalize the installation

Run migrations & copy static files

python manage.py collectstatic
python manage.py migrate

Restart your supervisor services for AA.

Updating

To update your existing installation of ImicusFAT, first enable your virtual environment (venv) of your Alliance Auth installation.

pip install -U allianceauth-afat

python manage.py collectstatic
python manage.py migrate

Finally restart your supervisor services for AA

Data Migration

Right after the initial installation and running migrations, you can import the data from Alliance Auth's native FAT system, from bFAT or from ImicusFAT if you have used one of these until now.

!!IMPORTANT!!

Only do this once and ONLY BEFORE you are using AFAT. A later migration is not possible.

From Alliance Auth native FAT

Before installation, temporarily comment out allianceauth.fleetactivitytracking in your AA settings (local.py) by doing:

  • Modify 'allianceauth.fleetactivitytracking', to #'allianceauth.fleetactivitytracking', under INSTALLED_APPS

And then continue installation as normal. You may undo this after successful installation.

Import from native FAT

To import your old FAT data from Alliance Auth's own FAT, you have to disable foreign key checks temporarily.

INSERT INTO afat_afat (id, `system`, `shiptype`, character_id, afatlink_id) 
SELECT id, `system`, `shiptype`, character_id, fatlink_id 
FROM fleetactivitytracking_fat;

INSERT INTO afat_afatlink (id, afattime, fleet, `hash`, creator_id) 
SELECT id, fatdatetime, fleet, `hash`, creator_id 
FROM fleetactivitytracking_fatlink;

From bFAT

Before installation, temporarily comment out bfat in your AA settings (local.py) by doing:

  • Modify 'bfat', to #'bfat', under INSTALLED_APPS

And then continue installation as normal. You may undo this after successful installation.

Import from bFAT

To import your old FAT data from bFAT, you have to disable foreign key checks temporarily.

INSERT INTO afat_clickafatduration (id, duration, fleet_id)
SELECT id, duration, fleet_id
FROM bfat_clickfatduration;

INSERT INTO afat_afatdellog (id, deltype, `string`, remover_id)
SELECT id, deltype, `string`, remover_id
FROM bfat_dellog;

INSERT INTO afat_afat (id, `system`, `shiptype`, character_id, ifatlink_id)
SELECT id, `system`, `shiptype`, character_id, fatlink_id
FROM bfat_fat;

INSERT INTO afat_afatlink (id, ifattime, fleet, `hash`, creator_id)
SELECT id, fattime, fleet, hash, creator_id 
FROM bfat_fatlink;

INSERT INTO afat_manualafat (id, character_id, creator_id, ifatlink_id)
SELECT id, character_id, creator_id, fatlink_id
FROM bfat_manualfat;

From ImicusFAT

Before installation, temporarily comment out imicusfat in your AA settings (local.py) by doing:

  • Modify 'imicusfat', to #'imicusfat', under INSTALLED_APPS

And then continue installation as normal. You may undo this after successful installation.

Import from ImicusFAT

To import your old FAT data from ImicusFAT, you have to disable foreign key checks temporarily.

INSERT INTO afat_afat (id, `system`, `shiptype`, character_id, afatlink_id, deleted_at)
SELECT id, `system`, `shiptype`, character_id, ifatlink_id, deleted_at
FROM imicusfat_ifat;

INSERT INTO afat_afatdellog (id, deltype, `string`, remover_id)
SELECT id, deltype, `string`, remover_id
FROM imicusfat_dellog;

INSERT INTO afat_afatlink (id, afattime, fleet, `hash`, creator_id, creator_id, deleted_at, link_type_id)
SELECT id, afattime, fleet, `hash`, creator_id, creator_id, deleted_at, link_type_id
FROM imicusfat_ifatlink;

INSERT INTO afat_afatlinktype (id, `name`, deleted_at)
SELECT id, `name`, deleted_at
FROM imicusfat_ifatlinktype;

INSERT INTO afat_clickafatduration (id, duration, fleet_id)
SELECT id, duration, fleet_id
FROM imicusfat_clickifatduration;

INSERT INTO afat_manualafat (id, character_id, creator_id, afatlink_id)
SELECT id, character_id, creator_id, ifatlink_id
FROM imicusfat_manualifat;

Credits

• AFAT • Privately maintained by @ppfeufer is a whitelabel of ImicusFAT maintained by @exiom with @Aproia and @ppfeufer • Based on allianceauth-bfat by @colcrunch •

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

allianceauth-afat-0.4.0.tar.gz (175.8 kB view details)

Uploaded Source

Built Distribution

allianceauth_afat-0.4.0-py3-none-any.whl (187.1 kB view details)

Uploaded Python 3

File details

Details for the file allianceauth-afat-0.4.0.tar.gz.

File metadata

  • Download URL: allianceauth-afat-0.4.0.tar.gz
  • Upload date:
  • Size: 175.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for allianceauth-afat-0.4.0.tar.gz
Algorithm Hash digest
SHA256 286d57a9b5cc8815615972474227e5c8d9840021d52d35ba880427adbc750709
MD5 3b3e03717b457e02074ab7f99a98d471
BLAKE2b-256 0de789768f0bac70eab5de0c6a93d1caa6c15cfad60b3e7e4bc03f5903bfd2d6

See more details on using hashes here.

File details

Details for the file allianceauth_afat-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: allianceauth_afat-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 187.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for allianceauth_afat-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e4727953b23e2cd49d01c26aa923caad4b883cab85b6d89c5856dc99b5f67c7
MD5 2640ac4c69f0b40fd5545ef5419f4c37
BLAKE2b-256 1ec479e0f4ec7d56b89c242988541c387a4edc83bc267db356555c3a450c53e4

See more details on using hashes here.

Supported by

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