Skip to content

Commit

Permalink
fix: Set project change requests url (#4920)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan authored Dec 16, 2024
1 parent aab7d31 commit e94e5c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/features/workflows/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def url(self):
url += f"/project/{self.environment.project_id}"
url += f"/environment/{self.environment.api_key}"
else:
url += f"/projects/{self.project_id}"
url += f"/project/{self.project_id}"
url += f"/change-requests/{self.id}"
return url

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,5 @@ def test_url_via_project(project_change_request: ChangeRequest) -> None:
# Then
project_id = project_change_request.project_id
expected_url = get_current_site_url()
expected_url += (
f"/projects/{project_id}/change-requests/{project_change_request.id}"
)
expected_url += f"/project/{project_id}/change-requests/{project_change_request.id}"
assert url == expected_url

0 comments on commit e94e5c6

Please sign in to comment.