Skip to content

Add new version import format for KSA#518

Merged
HebaruSan merged 3 commits intoKSP-SpaceDock:alphafrom
HebaruSan:feature/ksa-versions
Nov 16, 2025
Merged

Add new version import format for KSA#518
HebaruSan merged 3 commits intoKSP-SpaceDock:alphafrom
HebaruSan:feature/ksa-versions

Conversation

@HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Nov 16, 2025

Motivation

Kitten Space Agency started its public pre-alpha a few days ago, and there are already some mods on its forum. They're mostly hosted at sites like Google Drive and Mediafire, so @V1TA5 wants to add KSA to SpaceDock. To do that, we'll need a way to query for game version updates, and the KSA devs have helpfully provided this URL for that:

{
  "Version": "2025.11.4.2791",
  "Url": "https://ksa.ahwoo.com/"
}

We can paste that URL into the notifications settings, but the JSON format can't be parsed by any of the existing format options.

Changes

  • Now a new json_object format is supported for builds URLs, with the Argument value treated as the property that contains the version. We would set it to Version for KSA.
    image
  • Now if you edit and save a notification in the admin pages, we immediately trigger retrieval of its versions, so we don't have to wait for the Celery job to run.
  • While trying to do dev on this, I discovered that docker-compose is now deprecated and replaced by docker compose. So I did a search-replace for that.
  • Docker was complaining about the inconsistent capitalization of FROM x as y, which is now changed to FROM x AS y.

With these changes, my local test server successfully pulled the current version into its GameVersion db.

image

@HebaruSan HebaruSan added Area: Backend Related to the Python code that runs inside gunicorn Priority: High Type: Feature Status: Ready Area: Migration Related to Alembic database migrations Scope: Trivial Simple changes that should be easy to develop and review labels Nov 16, 2025
@HebaruSan HebaruSan merged commit f5bcf25 into KSP-SpaceDock:alpha Nov 16, 2025
3 checks passed
@HebaruSan HebaruSan deleted the feature/ksa-versions branch November 16, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Backend Related to the Python code that runs inside gunicorn Area: Migration Related to Alembic database migrations Priority: High Scope: Trivial Simple changes that should be easy to develop and review Status: Ready Type: Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant