-
- Downloads
Remove redundant (and wrong) `hasData` check from ViewHeader component (#37566)
- Remove redundant checks - `canEditQuery` shouldn't determine whether or not a Save button should be visible; It only marks it as disabled or not. - Update a related E2E test - This commit makes the test more explicit and more understandable. - Fix the test assumption - In all other cases we show the disabled Save button to the "nodata" user. It was only in this test that we wrongly asserted that the button doesn't exist at all. * Deprecate `hasData()` methods on StructuredQuery and NativeQuery Resolves #37516
Showing
- e2e/test/scenarios/question/reproductions/18978-18977-nested-question-nodata-user.cy.spec.js 61 additions, 79 deletions...ctions/18978-18977-nested-question-nodata-user.cy.spec.js
- frontend/src/metabase-lib/queries/NativeQuery.ts 4 additions, 0 deletionsfrontend/src/metabase-lib/queries/NativeQuery.ts
- frontend/src/metabase-lib/queries/StructuredQuery.ts 3 additions, 0 deletionsfrontend/src/metabase-lib/queries/StructuredQuery.ts
- frontend/src/metabase/query_builder/components/view/ViewHeader.jsx 4 additions, 8 deletions...src/metabase/query_builder/components/view/ViewHeader.jsx
Please register or sign in to comment