ref(grouping): Move grouping config to top level of grouping info #101281
+144,288
−150,277
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 changes the format of the grouping info API response, so that instead of the full serialized grouping config being included in every variant, only the grouping config id included at the top level of the JSON, and the variants in turn are included under a new
variants
key. In other words, it changes from a response that looks like this:to one which looks like this:
This not only removes redundancy (along with a bunch of information about the config we don't need), it also sets us up to be able to send other grouping-info-wide information in the response.
Note: Before this can be merged, the front end needs to be adjusted to work with both the old and new formats. Once that's deployed, and this is merged and deployed, we can remove old-format handling from the front end.