8c44bb1acda9ad5f13f7839d3994d6e4f07a2fa1 braney Sat Apr 18 11:27:44 2026 -0700 Add cartVersion 10 to re-apply the encodeCcreCombined -> cCREs supertrack migration for carts saved while cartVersion was already 9 but before the trackDb switch to the new supertrack. refs #37383 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> diff --git src/hg/cgilib/cartEdit10.c src/hg/cgilib/cartEdit10.c new file mode 100644 index 00000000000..e63878d55ec --- /dev/null +++ src/hg/cgilib/cartEdit10.c @@ -0,0 +1,17 @@ +/* The tenth edition of cartEdits. Re-applies the encodeCcreCombined -> + * cCREs supertrack migration from cartEdit9. This is needed because carts + * saved between the cartVersion 9 rollout and the trackDb switch to the new + * cCREs supertrack still reference encodeCcreCombined directly and were + * already at version 9, so cartEdit9 would not run for them. */ +#include "common.h" +#include "cart.h" + +static char *edit10TracksCcre[] = { + "encodeCcreCombined", +}; + +void cartEdit10(struct cart *cart) +{ +int length = ArraySize(edit10TracksCcre); +cartTurnOnSuper(cart, edit10TracksCcre, length, "cCREs"); +}