From 89ae166d27fcb608bf018bba0849b83aa863e518 Mon Sep 17 00:00:00 2001
From: Anton Kulyk <kuliks.anton@gmail.com>
Date: Fri, 4 Feb 2022 20:59:16 +0200
Subject: [PATCH] Remove `metadata_checksum` from the frontend (#20261)

---
 frontend/src/metabase-lib/lib/Question.ts                      | 2 --
 frontend/src/metabase/entities/questions.js                    | 1 -
 .../scenarios/dashboard/parameters-embedded.cy.spec.js         | 1 -
 .../visualizations/components/LineAreaBarChart.unit.spec.js    | 3 ---
 4 files changed, 7 deletions(-)

diff --git a/frontend/src/metabase-lib/lib/Question.ts b/frontend/src/metabase-lib/lib/Question.ts
index de8f5aec764..c6df78dc0b0 100644
--- a/frontend/src/metabase-lib/lib/Question.ts
+++ b/frontend/src/metabase-lib/lib/Question.ts
@@ -1000,11 +1000,9 @@ export default class Question {
 
   setResultsMetadata(resultsMetadata) {
     const metadataColumns = resultsMetadata && resultsMetadata.columns;
-    const metadataChecksum = resultsMetadata && resultsMetadata.checksum;
     return this.setCard({
       ...this.card(),
       result_metadata: metadataColumns,
-      metadata_checksum: metadataChecksum,
     });
   }
 
diff --git a/frontend/src/metabase/entities/questions.js b/frontend/src/metabase/entities/questions.js
index 424800fc6ad..41d8ea0694c 100644
--- a/frontend/src/metabase/entities/questions.js
+++ b/frontend/src/metabase/entities/questions.js
@@ -100,7 +100,6 @@ const Questions = createEntity({
     "collection_id",
     "collection_position",
     "result_metadata",
-    "metadata_checksum",
   ],
 
   getAnalyticsMetadata([object], { action }, getState) {
diff --git a/frontend/test/metabase/scenarios/dashboard/parameters-embedded.cy.spec.js b/frontend/test/metabase/scenarios/dashboard/parameters-embedded.cy.spec.js
index a0420ab645a..5f728b2cd62 100644
--- a/frontend/test/metabase/scenarios/dashboard/parameters-embedded.cy.spec.js
+++ b/frontend/test/metabase/scenarios/dashboard/parameters-embedded.cy.spec.js
@@ -269,7 +269,6 @@ const createQuestion = () =>
     visualization_settings: {},
     collection_id: null,
     result_metadata: null,
-    metadata_checksum: null,
   });
 
 const createDashboard = () =>
diff --git a/frontend/test/metabase/visualizations/components/LineAreaBarChart.unit.spec.js b/frontend/test/metabase/visualizations/components/LineAreaBarChart.unit.spec.js
index 193ab18850a..e4d292449f7 100644
--- a/frontend/test/metabase/visualizations/components/LineAreaBarChart.unit.spec.js
+++ b/frontend/test/metabase/visualizations/components/LineAreaBarChart.unit.spec.js
@@ -114,7 +114,6 @@ const millisecondCard = {
       },
     ],
     results_metadata: {
-      checksum: "H2XV8wuuBkFrxukvDt+Ehw==",
       columns: [
         {
           base_type: "type/BigInteger",
@@ -292,7 +291,6 @@ const dateTimeCard = {
       },
     ],
     results_metadata: {
-      checksum: "XIqamTTUJ9nbWlTwKc8Bpg==",
       columns: [
         {
           base_type: "type/DateTime",
@@ -424,7 +422,6 @@ const numberCard = {
       },
     ],
     results_metadata: {
-      checksum: "jTfxUHHttR31J8lQBqJ/EA==",
       columns: [
         {
           base_type: "type/Integer",
-- 
GitLab