Skip to content
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

chore(similarity): Turn on ML grouping for new EA projects #75026

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

jangjodi
Copy link
Member

Add project option to turn on ML similarity grouping for newly created projects that belong to an EA org

@jangjodi jangjodi requested a review from a team July 25, 2024 22:06
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 25, 2024
Copy link
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there anywhere else a project can be created? or is this the only one

src/sentry/api/endpoints/team_projects.py Outdated Show resolved Hide resolved
tests/sentry/api/endpoints/test_team_projects.py Outdated Show resolved Hide resolved
Comment on lines +257 to +260
assert project.name == "foo"
assert project.slug == "bar"
assert project.platform == "python"
assert project.teams.first() == self.team
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to assert on these? Do they have anything to do with the projectoption? (Same question for the test below.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just included these to ensure that the change doesn't mess up project creation at all

@jangjodi
Copy link
Member Author

is there anywhere else a project can be created? or is this the only one

As far as I'm aware, this is the only way. There's a OrganizationProjectsEndpoint, but it doesn't have a post function

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.12%. Comparing base (659154c) to head (412694d).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #75026      +/-   ##
==========================================
- Coverage   78.12%   78.12%   -0.01%     
==========================================
  Files        6745     6745              
  Lines      301168   301173       +5     
  Branches    51823    51824       +1     
==========================================
+ Hits       235289   235292       +3     
- Misses      59555    59556       +1     
- Partials     6324     6325       +1     
Files Coverage Δ
src/sentry/api/endpoints/team_projects.py 93.97% <100.00%> (+0.38%) ⬆️

... and 3 files with indirect coverage changes

@jangjodi jangjodi merged commit 6fb96c4 into master Jul 26, 2024
49 checks passed
@jangjodi jangjodi deleted the jodi/similarity-on-new-ea-projects branch July 26, 2024 16:36
@jangjodi jangjodi added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Jul 26, 2024
@getsentry-bot
Copy link
Contributor

PR reverted: 6fee71d

getsentry-bot added a commit that referenced this pull request Jul 26, 2024
…75026)"

This reverts commit 6fb96c4.

Co-authored-by: jangjodi <116035587+jangjodi@users.noreply.github.com>
jangjodi added a commit that referenced this pull request Jul 29, 2024
Add project option to turn on ML similarity grouping for newly created
projects that belong to an EA org
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components Trigger: Revert Add to a merged PR to revert it (skips CI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants