Skip to main content

Alliance Auth plugin to track corporation Freelance Jobs from the EVE Online ESI

Project description

AA Freelance Tracker

An Alliance Auth plugin that tracks corporation "Freelance Jobs" from the EVE Online ESI.

Features

  • A searchable, sortable board of every Freelance Job tracked across your linked corporations, with a status filter (Active, Closed, Completed, Expired, ...) and sorting by expiry or ISK remaining.
  • A job detail page with progress, reward, configuration, and a participants list.
  • A "My Jobs" screen showing the Freelance Jobs the logged-in user's own characters are personally participating in, live from ESI.
  • Visibility scoped to what a user is permitted to see: their own corporation, their alliance, and/or their faction, in any combination.
  • Corp-wide syncing runs as a chain of Celery tasks per corporation (see How syncing works below), so a slow or failing job doesn't block the rest of that corp's sync.

Job board with status filter, sorting, and search

Job detail page with progress, reward, configuration, and participants

Installation

  1. Install the app:

    pip install aa-freelance-tracker
    
  2. This app depends on django-eveonline-sde for Freelance Job schema/label data, which requires modeltranslation to be first in INSTALLED_APPS:

    INSTALLED_APPS = [
        "modeltranslation",
    ] + INSTALLED_APPS
    
    INSTALLED_APPS += [
        "eve_sde",
        "freelance_tracker",
    ]
    

    If you already have eve_sde installed for another plugin, just add "freelance_tracker".

  3. Run migrations and collect static files:

    python manage.py migrate
    python manage.py collectstatic
    
  4. Make sure eve_sde's SDE data is loaded (python manage.py esde_load_sde) and kept up to date - see django-eveonline-sde's README for the periodic update task. Job type titles/descriptions fall back to the raw ESI key if this data isn't loaded yet.

  5. Restart your Auth (gunicorn, Celery worker, and Celery beat).

  6. Run the post-install setup command below to schedule the periodic sync.

ESI Scopes

  • esi-corporations.read_freelance_jobs.v1 - required from a director/manager of a corporation before it can be linked for corp-wide tracking (requested via the "Add / Refresh Corp Token" button).
  • esi-characters.read_freelance_jobs.v1 - required from a character before it shows up on that user's "My Jobs" screen (requested via "Add / Refresh Character" on that page).

Permissions

Permission Description
basic_access Can access the app at all.
add_corp_owner Can link (or refresh the ESI token for) a corporation.
view_corp Can see Freelance Jobs for their own corporation.
view_alliance Can see Freelance Jobs for every corporation in their alliance (their own corp is included automatically).
view_faction Can see Freelance Jobs for every corporation in their faction.
view_participants Can see a job's participants list on its detail page, and contribution totals on the leaderboard.

A user can hold any combination of view_corp/view_alliance/view_faction and sees the union of what they grant. basic_access is required in addition to at least one of the view_* permissions to see anything on the job board; without it, my_jobs (which only shows the user's own participation) still requires basic_access too. view_participants is independent of those three - it only gates whether the participants table is shown on a job a user can already see, and whether the "Contributed" column is shown on the leaderboard; without it, the rest of the job detail page and the leaderboard's rankings still render normally.

Usage

  • Link a corporation: a director or manager with add_corp_owner clicks "Add / Refresh Corp Token" and authorizes with the required ESI scope. This immediately queues a sync for that corporation and also re-authorizes an already-linked corporation if its token has expired or lost the scope.
  • Browse jobs: the main job board supports free-text search (name, corporation, career, status), a status dropdown (defaults to Active), and sorting by soonest expiry or highest ISK remaining.
  • My Jobs: any user can link a character (via "Add / Refresh Character") to see the Freelance Jobs that character is personally contributing to, fetched live from ESI on page load.
  • Force a full resync: from Django admin (/admin/freelance_tracker/owner/), select one or more corporations and use the "Force a full resync from ESI (bypasses cache)" action. This re-fetches every job the corporation has ever had tracked, ignoring ESI's ETag cache.

Post-install setup

Linking a corporation (via the "Add / Refresh Corp Token" button) syncs its jobs once immediately, but nothing refreshes them after that unless a periodic task is scheduled. Run this once after installing/upgrading:

python manage.py freelance_tracker_setup

This registers an hourly PeriodicTask (via django-celery-beat) that calls freelance_tracker.tasks.update_all_corp_freelance_jobs for every tracked corporation. It's safe to run again after upgrades - it just updates the existing schedule rather than duplicating it.

How syncing works

Each corporation's sync is a small chain of Celery tasks, not one big task:

  1. Listing (_fetch_freelance_job_listing) pages through the corp's Freelance Job listing from ESI using cursor-based pagination, advancing and persisting the corp's cursor (Owner.jobs_cursor) so the next sync only looks at what's new. Jobs already tracked as Active are always rechecked too, since a job's detail and its participants have their own ESI caching independent of the listing.
  2. Dispatch (_dispatch_freelance_job_syncs) chains one task per job to sync, in sequence.
  3. Per-job sync (_sync_freelance_job) fetches that job's detail, updates it in the database, and syncs its participants if it's Active. This is the task an ESI rate limit is applied to, since it's the one making the per-job ESI calls.
  4. Finalize (_finalize_corp_sync) stamps Owner.last_update once every job in that corp's sync has finished.

update_all_corp_freelance_jobs (the periodic task) queues one such chain per active corporation; different corporations' chains run independently and concurrently of one another. Both update_all_corp_freelance_jobs and update_corp_freelance_jobs accept a force=True option that bypasses ESI's ETag cache and re-fetches every job ever tracked, rather than just what changed - this is what the admin's "Force a full resync" action uses.

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_freelance_tracker-0.0.1.tar.gz (69.4 kB view details)

Uploaded Source

Built Distribution

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

aa_freelance_tracker-0.0.1-py3-none-any.whl (78.5 kB view details)

Uploaded Python 3

File details

Details for the file aa_freelance_tracker-0.0.1.tar.gz.

File metadata

  • Download URL: aa_freelance_tracker-0.0.1.tar.gz
  • Upload date:
  • Size: 69.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aa_freelance_tracker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 00bed37be776f7b66fad05a24debfd83147eb081be4d6fab39c7f937cab037cc
MD5 ba8bc519e1c2ccca764141b84bc6978e
BLAKE2b-256 bd6644f706fec2604726b0d2e2f629af046716eea9b0f7ccebc6c8d35546713f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aa_freelance_tracker-0.0.1.tar.gz:

Publisher: release.yml on Solar-Helix-Independent-Transport/aa-freelance-tracker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aa_freelance_tracker-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aa_freelance_tracker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f425174b250124913fbc2413d0024a27c53d443771c069b16ba982987b1f18
MD5 d069b233e8b843177f4a681180ea6878
BLAKE2b-256 b607a6249ecf898dd3a1486daa6aa8b1005f0dd74d630854b9a335435313d631

See more details on using hashes here.

Provenance

The following attestation bundles were made for aa_freelance_tracker-0.0.1-py3-none-any.whl:

Publisher: release.yml on Solar-Helix-Independent-Transport/aa-freelance-tracker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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