Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
122761: cluster-ui: fix "stats last created" query in table details using sql-over-http r=xinhaoz a=nvanbenschoten This commit fixes the "stats last created" query in the database details and table details page of the cluster-ui. The query was using the wrong name for the aggregation alias, which was confusing the row parsing logic. As a result, the two pages were always displaying "No table statistics found". They now display the correct value. We mirror the change to the query string in `adminServer. tableDetailsHelper` for uniformity. ### Before `/database/movr` <img width="1364" alt="Screenshot 2024-04-20 at 4 28 30 PM" src="https://github.com/cockroachdb/cockroach/assets/5438456/f069cb63-53fa-4021-992c-22a4bb198818"> `/database/movr/table/"public"."promo_codes"` <img width="1173" alt="Screenshot 2024-04-20 at 4 29 09 PM" src="https://github.com/cockroachdb/cockroach/assets/5438456/b2c9d290-9c19-4b7f-a0ab-f9d4134d880c"> ### After `/database/movr` <img width="1361" alt="Screenshot 2024-04-20 at 4 30 10 PM" src="https://github.com/cockroachdb/cockroach/assets/5438456/e6cc23c9-bcf7-4499-89d7-9789285bad17"> `/database/movr/table/"public"."promo_codes"` <img width="1162" alt="Screenshot 2024-04-20 at 4 29 41 PM" src="https://github.com/cockroachdb/cockroach/assets/5438456/1efdc0cf-54b4-469a-ad61-1713f444ab00"> ---- Epic: None Release note (ui change): the database details and table details pages in the cluster-ui now display the correct "stats last created" value. Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information