Skip to content

ref(grouping): Disallow setting grouping config using API #93393

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

Merged
merged 3 commits into from
Jun 12, 2025

Conversation

lobsterkatie
Copy link
Member

In the past, grouping config was an option that could be set in project settings. The project details endpoint therefore accepted groupingConfig, secondaryGroupingConfig, and secondaryGroupingExpiry as things you could change via the API. Now that that's no longer the case, we don't need this ability, and having it just allows users to shoot themselves in the foot by setting an invalid value.

This therefore removes the ability to set those values via API. Just in case some customer has a script which does this, for now the endpoint returns option-specific validation errors. Eventually we can probably remove those, though.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 11, 2025
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93393      +/-   ##
==========================================
+ Coverage   84.34%   88.00%   +3.65%     
==========================================
  Files       10288    10288              
  Lines      593175   593153      -22     
  Branches    23031    23031              
==========================================
+ Hits       500301   521986   +21685     
+ Misses      92442    70735   -21707     
  Partials      432      432              

@lobsterkatie lobsterkatie force-pushed the kmclb-disallow-setting-grouping-config-via-API branch from 33f7cd3 to 3b9f0bb Compare June 12, 2025 01:11
@lobsterkatie lobsterkatie marked this pull request as ready for review June 12, 2025 16:59
@lobsterkatie lobsterkatie requested a review from a team as a code owner June 12, 2025 16:59
@lobsterkatie lobsterkatie requested a review from a team June 12, 2025 21:17
@lobsterkatie lobsterkatie merged commit 328ca8d into master Jun 12, 2025
61 checks passed
@lobsterkatie lobsterkatie deleted the kmclb-disallow-setting-grouping-config-via-API branch June 12, 2025 21:53
billyvg pushed a commit that referenced this pull request Jun 18, 2025
In the past, grouping config was an option that could be set in project settings. The project details endpoint therefore accepted `groupingConfig`, `secondaryGroupingConfig`, and `secondaryGroupingExpiry` as things you could change via the API. Now that that's no longer the case, we don't need this ability, and having it just allows users to shoot themselves in the foot by setting an invalid value.

This therefore removes the ability to set those values via API. Just in case some customer has a script which does this, for now the endpoint returns option-specific validation errors. Eventually we can probably remove those, though.
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
In the past, grouping config was an option that could be set in project settings. The project details endpoint therefore accepted `groupingConfig`, `secondaryGroupingConfig`, and `secondaryGroupingExpiry` as things you could change via the API. Now that that's no longer the case, we don't need this ability, and having it just allows users to shoot themselves in the foot by setting an invalid value.

This therefore removes the ability to set those values via API. Just in case some customer has a script which does this, for now the endpoint returns option-specific validation errors. Eventually we can probably remove those, though.
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