From d9cc9859cdfd782e648fca36fbc44c027fca0886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enver=20G=C3=B6kmen?= Date: Sat, 22 Aug 2026 17:16:50 +0300 Subject: [PATCH] fix: request distribution profile detail with explicit addAppVersions=true getLatestAppVersionId and the post-upload version resolution read profile.appVersions from the distribution profile-detail response. The backend embeds app versions by default today, but the profile-detail endpoints are moving to opt-in embedding (BE-9216 shipped this for publish and enterprise store). Requesting addAppVersions=true explicitly keeps these flows working if the distribution default flips later; the parameter already exists on the backend, so this is a no-op today. Co-Authored-By: Claude Fable 5 --- src/services/testing-distribution.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/testing-distribution.ts b/src/services/testing-distribution.ts index 01d167a..c411bd1 100644 --- a/src/services/testing-distribution.ts +++ b/src/services/testing-distribution.ts @@ -17,7 +17,11 @@ export async function getDistributionProfiles(options: OptionsType = {}) { } export async function getDistributionProfileById(options: OptionsType<{ distProfileId: string }>) { - const distributionProfile = await appcircleApi.get(`distribution/v2/profiles/${options.distProfileId}`, { + // addAppVersions=true is requested explicitly: getLatestAppVersionId and the post-upload + // version resolution read profile.appVersions from this response. The backend currently + // embeds them by default, but the profile-detail endpoints are moving to opt-in embedding + // (BE-9216) — being explicit keeps this working when that default flips. + const distributionProfile = await appcircleApi.get(`distribution/v2/profiles/${options.distProfileId}?addAppVersions=true`, { headers: getHeaders(), }); return distributionProfile.data;