Skip to content

Conversation

@cursor
Copy link
Contributor

@cursor cursor bot commented Nov 25, 2025

Fixes AttributeError: 'str' object has no attribute 'id' when filtering organization releases by release:latest and an environment.

The get_latest_release function was incorrectly passed a list of environment names (strings) instead of Environment objects, leading to the error when attempting to access e.id. This PR corrects the parameter to pass the environment_objects.

A regression test has been added to ensure this specific scenario is covered.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.


Open in Cursor Open in Web

@cursor
Copy link
Contributor Author

cursor bot commented Nov 25, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants