This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Oct 06, 2023
-
-
Case Nelson authored
-
Case Nelson authored
-
Nemanja Glumac authored
-
Tim Macdonald authored
* Minor updates to the developer's guide * extra context --------- Co-authored-by:
dan sutton <dan@dpsutton.com>
-
Nemanja Glumac authored
* Make it easy to add SQLite database * Replace H2 with SQLite in E2E tests * Remove long unused E2E reproduction It's been sufficiently covered with backend tests. * Remove H2 database helper from E2E tests
-
Kamil Mielnik authored
* Show a warning modal when clicking "Cancel" in dashboard * Update dashboard test * Update question settings test * Add missing "Edit dashboard" click * Add tests for leaving dashboard editing via Cancel button
-
Kamil Mielnik authored
* Add model-editing logic to isLocationAllowed in QueryBuilder * Fix IS_LOCATION_ALLOWED implementation * Fix typos * Remove redundant checks and invert logic for better readability * Add editing queries tests * Improve test to include reverted form interaction * Fix existing test case * Add editing metadata test * Add editing metadata test (unedited) * Organize tests * Add a test for not showing custom warning modal when saving edited query * Extract slug to TEST_MODEL_CARD_SLUG * Add a test for not showing custom warning modal when saving edited metadata * Remove redundant routing * Add a workaround for test setup * Add a test for tabs navigation * Fix failing test * Extract isNavigationAllowed out of isLocationAllowed * Extract createMockLocation * Add isNavigationAllowed test setup and test for new questions * Add a test case for beforeunload event * Format code * Add more tests and organize them * Add notebook question tests * Format code
-
Kamil Mielnik authored
* Rename component to match the filename * Fix typo * Replace useBeforeUnload with LeaveConfirmationModal in SegmentForm * Replace useBeforeUnload with LeaveConfirmationModal in MetricForm * Update setup of MetricForm tests to allow testing navigation * Update setup of SegmentForm tests to allow testing navigation * Use proper history in MetricForm * Refactor SegmentForm test setup to be consistent with the one of MetricForm * Make MetricForm and SegmentForm tests consistent * Add tests for not showing custom warning * Add tests for showing custom warning when leaving with unsaved changes * Extract FORM_URL * Remove redundant asyncs and awaits * Rename MetricForm.unit.spec.tsx & SegmentForm.unit.spec.tsx to MetricApp.unit.spec.tsx & SegmentApp.unit.spec.tsx and move them near the components they're testing * Improve a11y * Add missing endpoint mocks * Improve selectors thanks to proper a11y * Add tests for not showing warning modal when saving changes * Convert CreateMetricForm to a functional component * Convert CreateSegmentForm to a functional component * Convert UpdateMetricFormInner to a functional component * Convert UpdateSegmentFormInner to a functional component * Disable LeaveConfirmationModal on scheduled navigation * Setup metrics & segments POST endpoints * Properly mock metric and segment creation * Lift LeaveConfirmationModal from SegmentForm to SegmentApp * Lift LeaveConfirmationModal from MetricForm to MetricApp * Sort props * Get rid of useCallbackEffect usage in MetricApp * Get rid of useCallbackEffect usage in SegmentApp
-
Uladzimir Havenchyk authored
-
- Oct 05, 2023
-
-
metamben authored
-
metamben authored
-
Ryan Laurie authored
-
Ngoc Khuat authored
-
Cal Herries authored
-
- Oct 04, 2023
-
-
metamben authored
-
metamben authored
-
Cam Saul authored
* Implement #33646 * More dox * Seconds, not milliseconds * Respect env var values
-
Danilo Campana Fuchs authored
-
Cam Saul authored
-
Cam Saul authored
-
Alexander Polyankin authored
-
Alexander Polyankin authored
-
Alexander Polyankin authored
-
Nemanja Glumac authored
I broke tests on master with the following change: 0d77aba#diff-205d5528aa8f03902903027631d50ef76459835737fb06b16e55fdd1d7430c8eL331 Relevant failure: https://www.deploysentinel.com/ci/runs/651d290ef6799f2563b8b986 This PR brings it back.
-
Uladzimir Havenchyk authored
-
Nemanja Glumac authored
It was deprecated and left in a codebase for backwards compatibility. But it seems we've migrated all references to the new method `delete-file-if-exists`. The last time this was touched was three years ago. Should be safe to remove.
-
Nemanja Glumac authored
* Fix the flakes for metrics as well
-
- Oct 03, 2023
-
-
Cam Saul authored
-
Jacob Joseph authored
added an example of rounding with a decimal place
-
Ryan Laurie authored
-
Braden Shepherdson authored
`yarn dev` had been adjusted to use `build-hot:js-wait` (which waits for the first CLJS compilation to be done), but `yarn dev-ee` had not been changed, so its JS compilation ran too early, failed, and never re-ran. We actually had this broken behavior (JS build runs too early, CLJS build completes, JS build fails, JS build notices new inputs and re-runs) for a long time. But since it fixed itself when the JS build re-ran, it didn't cause any issues. Now that the JS build no longer watches the CLJS output for changes, the CLJS output needs to be there for the first JS build.
-
Tim Macdonald authored
-
Ibe Dwi authored
* fix: add ExpandButton color on parent's hover * fix: icon's color by canSelect, remove !important * feat: update expand button style on canSelect props * fix: icon button color when hovered
-
Anton Kulyk authored
* Test using columns from joined tables or cards * Test multi stage joins * Test removal on source table change * Test RHS table column selection * Reduce flakiness? * Fix test * Reduce flakiness?
-
Kamil Mielnik authored
* Use LeaveConfirmationModal in QueryBuilder * Add isLocationAllowed prop to LeaveConfirmationModal * Do not route-block running modified native question * Fix typo * Introduce explanatory variables * Move updating URL during question creation to QueryBuilder * Schedule navigation to after re-render so that LeaveConfirmationModal prop has a chance to update * Add a test for unsaved changes warning * Introduce useCallbackEffect * Refactor QueryBuilder to use useCallbackEffect * Refactor ActionCreator to use useCallbackEffect * Fix useCallbackEffect typing * Move onSubmit out of the scheduled callback to reduce probability of race conditions * Add comments explaining useCallbackEffect usage * Improve JSDocs * Add a test for running modified question * Update button query to more accessible one * Add a test for saving a modified question * Update test names * Add a test for leaving with no changes * Remove isDirty-related no-change assertions, as isDirty flag does not work reliably - Question.prototype.isDirtyComparedTo would return true because edited "question" would have extra "description: null" attribute and no "name" compared to "originalQuestion" (see "getIsDirty") * Move useCallbackEffect to its own directory * Add test setup for useCallbackEffect * Add a test case for scheduling * Add a test for scheduling callback effect * Do not disable navigation in models - this is a temporary condition until #33793 is implemented * Remove redundant _.noop * Rename isScheduled to isCallbackScheduled * Replace useBeforeUnload with LeaveConfirmationModal in DatabaseEditApp * Refactor DatabaseEditApp.unit.spec.js to TypeScript * Add initialRoute param, return history & add /home route * Add a test case for showing the unsaved changes modal * Add a test case for not showing the unsaved changes modal * Format code * Extend a test case to assert isDirty being properly computed * Remove redundant route * Remove redundant code * Add a test for custom warning modal when saving edited question as a new one * Redirect to databases page on database creation in component so that isDirty flag can re-compute on re-render * Fix mocks setup * Remove redundant withRouter usage * Use waitFor + expect + not.toBeInDocument instead waitForElementToBeRemoved * Add a test case for creating new database connection * Remove redundant promise
-
Cal Herries authored
-
Nemanja Glumac authored
-
Aleksandr Lesnenko authored
-
- Oct 02, 2023
-
-
Ryan Laurie authored
-
Braden Shepherdson authored
This also moves the CLJS output out of `frontend/src/cljs{,_release}` to `target/cljs_{dev,release}`. If that causes problems for FE tooling I don't know about, it could be moved back. Hot reloading: CLJS changes are hot-reloaded into the running app by Shadow CLJS - no action is needed. Note that the UI will not refresh; you usually have to click around so the updated MLv2 code gets executed. Usage of the CLJS REPL: - Open the browser (you should see `shadow-cljs: #N ready!` in console) - Connect to nrepl on 50655 - "Select" the `:app` build; - https://shadow-cljs.github.io/docs/UsersGuide.html#_editor_integration - Conjure: `:ConjureShadowSelect app` - Plain REPL: Eval in CLJ mode `(shadow/repl :app)` - Consider running `yarn build-hot:cljs` and `yarn build-hot:js` in separate terminals; then when `yarn build-hot:js` crashes you don't have to reconnect your REPL. - The REPL works beautifully, even loading files outside the :entries of the shadow-cljs build like tests! "Stale" error in browser: - This can happen if the webpack bundle is created before the CLJS is done building. - If you ran `yarn build-hot:cljs` and `:js` separately, let `:cljs` finish compiling first. - If you see this otherwise: (a) contact Braden so it can be fixed; and (b) either restart `build-hot:js` or force webpack to rebuild by hitting http://localhost:8080/webpack-dev-server/invalidate Yarn commands: `dev`, `dev-ee`, `build-hot`, and `build-static-viz:watch` all now wait for the CLJS build to be complete by watching for files to be generated. They should work the same from a user's POV. (Since the webpack build no longer watches the CLJS output, it won't notice the changes and immediately rebuild after the first build. This avoids errors on the clean build, or "stale build" messages in the app from Shadow CLJS.) Fixes #32674.
-