Add analytics meta for downloading dependent projects (#6318)

* Send dependent mod info to backend

* Parse meta from query

* condense dependent_on and modpack

* Analytics dependents response
This commit is contained in:
aecsocket
2026-06-09 15:47:52 +00:00
committed by GitHub
parent 3258d7dbdf
commit bc5a761312
15 changed files with 363 additions and 22 deletions
@@ -888,6 +888,7 @@ async fn get_modpack_identifiers(
reason: DownloadReason::Modpack,
game_version: profile.game_version.clone(),
loader: profile.loader.as_str().to_string(),
dependent_on: Some(version_id.to_string()),
};
let mrpack_bytes = fetch_mirrors(
+2
View File
@@ -1336,6 +1336,7 @@ impl Profile {
profile_path: &str,
version_id: &str,
reason: util::fetch::DownloadReason,
dependent_on_version_id: Option<String>,
pool: &SqlitePool,
fetch_semaphore: &FetchSemaphore,
io_semaphore: &IoSemaphore,
@@ -1352,6 +1353,7 @@ impl Profile {
reason,
game_version: profile.game_version.clone(),
loader: profile.loader.as_str().to_string(),
dependent_on: dependent_on_version_id,
};
let version =