(encoding of confusion: unreferenced state group deletion either doesn't make sense, or can explode size of state_groups_state
)
#18219
+91
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is intended as a demonstrative example for #18217 and is not a PR to merge.
The docstring
does not make sense; or rather, it's contradictory — if a state group is no longer referenced, then it follows that no state groups reference it and thus there should be no de-delta-ing to be done.
BUT if we edit it slightly, maybe the docstring starts to make sense?
frankly: I don't actually know if this is the intended meaning. But it sounds plausible.
If we go by that assumption, then we can write a test to demonstrate a situation in which state group deletion causes more rows to be added to
state_groups_state
than deleted.