-
- Downloads
Refactor `cy.archiveQuestion`, `cy.createQuestion` & `cy.createNativeQuestion`...
Refactor `cy.archiveQuestion`, `cy.createQuestion` & `cy.createNativeQuestion` to TypeScript (#39614) (#40282) * Convert commands/api/question to TS * Add missing embedding_params and collection_position attributes to Card * Type question function * Move types to the top of file * Inline throwIfNotPresent * Add types for logAction * Define StructuredQuestionDetails & NativeQuestionDetails * Add typing to commands * Return for consistency * Remove queryType argument from question * Define typing for archiveQuestion command * Format code * Define typing for createQuestion and createNativeQuestion commands * Make options optional * Remove TODO * Use arrow functions, update JSDoc * Use type for consistency * Add missing attributes in mocks * Make embedding_params non-optional
Showing
- e2e/support/commands/api/question.ts 239 additions, 0 deletionse2e/support/commands/api/question.ts
- frontend/src/metabase-types/api/card.ts 4 additions, 0 deletionsfrontend/src/metabase-types/api/card.ts
- frontend/src/metabase-types/api/mocks/card.ts 2 additions, 0 deletionsfrontend/src/metabase-types/api/mocks/card.ts
- frontend/src/metabase/actions/containers/ActionCreator/ActionContext/QueryActionContextProvider/QueryActionContextProvider.tsx 2 additions, 0 deletions...QueryActionContextProvider/QueryActionContextProvider.tsx
Please register or sign in to comment