-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
chore(launchpad): Return artifact URL upon creation #97558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from __future__ import annotations | ||
|
||
from sentry.models.organization import Organization | ||
|
||
|
||
def get_preprod_artifact_url(organization_id: int, artifact_id: str) -> str: | ||
""" | ||
Build a region/customer-domain aware absolute URL for the preprod artifact UI. | ||
""" | ||
organization: Organization = Organization.objects.get_from_cache(id=organization_id) | ||
|
||
path = f"/organizations/{organization.slug}/preprod/internal/{artifact_id}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Cross-Silo Query Violation in URL ConstructionThe |
||
return organization.absolute_url(path) |
Uh oh!
There was an error while loading. Please reload this page.