Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uprelease-2.1: server(ccl)/ui: identify zone configs by zone name, not ID #31417
Conversation
vilterp
requested a review
from
benesch
Oct 16, 2018
vilterp
requested review from
cockroachdb/admin-ui-prs
as
code owners
Oct 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
vilterp
merged commit 4810e59
into
cockroachdb:release-2.1
Oct 16, 2018
vilterp
deleted the
vilterp:backport2.1-31407
branch
Oct 16, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vilterp commentedOct 16, 2018
Backport 1/1 commits from #31407.
Not sure if this meets the bar — not a major bug, but would still be nice to have it fixed.
/cc @cockroachdb/release
Previously, the
DataDistributionendpoint was returning a map of zone configs by zone config ID. However, zone config ID is not a unique identier withincrdb_internal.zones, since subzones attached to partitions share the same ID (that of the top-level zone config), so map entries were being overwritten and the endpoint was returning an incomplete list.Zone names should be unique; this change uses those instead and updates the UI accordingly.
This change also introduces a
servercclpackage for the unit test to live in, since testing this code path requires creating partitions, a CCL feature.Fixes #27718
Release note: None