Skip to content

Build log url from the project organization id - #6

Merged
kasperg merged 1 commit into
mainfrom
fix/log-url-organization-id
Sep 30, 2026
Merged

kasperg merged 1 commit into
mainfrom
fix/log-url-organization-id

Conversation

@kasperg

@kasperg kasperg commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Builds the deployment status log url from project.organization instead of an organization slug parsed out of project.subscription.subscription_management_uri.

That field is an empty string for all 20 Reload projects the Upsun API returns, and the live script run on an sample project sees the same. So no deployment status got a log_url, and every run logged "Unable to determine Upsun owner organization from subscription_management_uri". project.organization is set on every project and is in Upsun's activity script reference example.

The console accepts the organization id where the slug went: the API's own #ui project link uses the id, and the log url with the id opens the same log as with the slug url. Upsun's API spec marks organization as required but nullable; when it is null, the status is sent without log_url, as before.

Verified locally: npm run check. New tests cover the log url and its absence without an organization; nothing tested log_url before.

The log url was derived from an organization slug parsed out of
project.subscription.subscription_management_uri. Upsun returns that
field as an empty string for every project checked, so deployment
statuses never got a log_url and each run logged "Unable to determine
Upsun owner organization from subscription_management_uri".

Use project.organization instead. The console accepts the organization
id in place of the slug, as its own project links already do.

Assisted-by: Claude <noreply@anthropic.com>
@kasperg
kasperg force-pushed the fix/log-url-organization-id branch from a50cc97 to 78e332f Compare September 30, 2026 07:35
@kasperg
kasperg marked this pull request as ready for review September 30, 2026 07:44
@kasperg
kasperg merged commit 885fe8a into main Sep 30, 2026
2 checks passed
@reload-upsun

Copy link
Copy Markdown

🎉 This PR is included in version 0.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants