The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Hide view details button in Transform viz (#64752)
Romeo Van Snick5299dd726aa1
diff --git a/e2e/test/scenarios/data-studio/transforms.cy.spec.ts b/e2e/test/scenarios/data-studio/transforms.cy.spec.tsindex 9c436067e1f..23c617d050b 100644--- a/e2e/test/scenarios/data-studio/transforms.cy.spec.ts+++ b/e2e/test/scenarios/data-studio/transforms.cy.spec.ts@@ -616,6 +616,36 @@ LIMITH.popover().should("be.visible");});+ it("not show the 'Show details' buttons in ID columns (metabase#64473)", () => {+ const databaseId = WRITABLE_DB_ID;+ const sourceTable = SOURCE_TABLE;+ const nameColumn = "name";++ H.getTableId({ databaseId, name: sourceTable }).then((tableId) => {+ H.getFieldId({ tableId, name: nameColumn }).then((nameColumnId) => {+ // Make name a key+ cy.request("PUT", `/api/field/${nameColumnId}`, {+ semantic_type: "type/PK",+ });+ });+ });++ createMbqlTransform({+ databaseId,+ sourceTable,+ visitTransform: true,+ });++ H.DataStudio.Transforms.editDefinition().click();++ getQueryEditor().within(() => {+ cy.findByTestId("run-button").eq(0).click();+ cy.findByTestId("loading-indicator").should("not.exist");++ cy.findAllByTestId("detail-shortcut").should("not.exist");+ });+ });+it("should not be possible to create a transform from a question or a model that is based of an unsupported database", () => {function testCardSource({type,diff --git a/frontend/src/metabase/querying/editor/components/QueryEditor/QueryEditorVisualization/QueryEditorVisualization.tsx b/frontend/src/metabase/querying/editor/components/QueryEditor/QueryEditorVisualization/QueryEditorVisualization.tsxindex 750abbae82b..90a5e629eae 100644--- a/frontend/src/metabase/querying/editor/components/QueryEditor/QueryEditorVisualization/QueryEditorVisualization.tsx+++ b/frontend/src/metabase/querying/editor/components/QueryEditor/QueryEditorVisualization/QueryEditorVisualization.tsx@@ -37,6 +37,7 @@ export function QueryEditorVisualization({isRunnable={isRunnable}isRunning={isRunning}isDirty+ queryBuilderMode="dataset"isResultDirty={isResultDirty}isNativeEditorOpen={isNative}isDirtyStateShownForError={!isNative}