This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Jun 02, 2021
-
-
Ariya Hidayat authored
...since the back-end is already capable of handling those. * Handle PK/FK of the type STRING or STRING_LIKE
-
Gustavo Saiani authored
-
Luis Paolini authored
* Warn users about sandboxing and public sharing * Update docs/enterprise-guide/data-sandboxes.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> Co-authored-by:
Jeff Bruemmer <jeff@metabase.com>
-
dpsutton authored
* Add type on collection * Search with collection type * Cleanup bounded heap accumulator * Make search conditionally bump official collection items * collection api and tests * Put collection type onto hydrated cards on dashboards * Move official collection type scoring into ee codebase * ensure ee and oss agree when not official collection * Mark Collections tree with type * Remove unnecessary `and`s when no check for enhancements * Tests for setting collection tree type * Include hydration for collection type on dashboards * Make sure created test collections are cleaned up * Cleanup tests, don't search on collection_type looks for all text fields and searches the term against that. official would bring back all official types. no bueno * Docstring on protocol and don't shadow comparator * update to new ee impl var passing style * Collection model ensures no type change on personal collection * Check for personal collection when updating type model checks for personal collection and rejects in the update but doesn't check for children of personal collection. * Update checking for unchangeable properties of a personal collection * Cleanup: type collection tree, batched hydration, combine error checks * Cleanup * move bounded-heap accumulator to utils * switch to test.check testing * Bad test just to see what our CI will report * remove purposeful failing test (was for CI) * collection.type -> collection.authority_level * Test the actual ee scoring impl, not the wrapped one locally i had enhancements enabled so the tests were passing, but in CI it was failing as it did not have enhancements enabled
-
Gustavo Saiani authored
-
Anton Kulyk authored
-
Anton Kulyk authored
-
- Jun 01, 2021
-
-
Ariya Hidayat authored
-
- May 28, 2021
-
-
Alexander Lesnenko authored
-
Nemanja Glumac authored
-
Luis Paolini authored
-
Alexander Lesnenko authored
* add useDebounceValue hook * add AddCardSidebar components * extract DashboardSidebars component * use AddCardSidebar component * remove the old modal for adding questions * fix specs, unify dashboard toolbar buttons * fix enterprise specs * lint * fix more specs * maz empty state tweaks * review * specs * add role attributes * `Add question` => `Add questions` * add missing onkeydown handler to the QuestionPickerItem Co-authored-by:
Maz Ameli <maz@metabase.com>
-
- May 27, 2021
-
-
Anton Kulyk authored
* Basic `react-gird-layout` usage for Dashboards (#16167) * Install react-grid-layout * Add basic NewGridLayout implementation * Wrap DashboardGrid with WidthProvider * Bind DashboardGrid's onDrag methods * Coerce layout item IDs to string * Add method rendering NewDashboardGrid * Refactor `onLayoutChange` method to handle new grid * Use react-grid-layout's CSS classes * Fix lag while dragging grid items * Switch back to ExplicitSize HOC * Fix grid in editing state is too short * Import missing `react-grid-layout` CSS * Fix RGL overwrites dragging placeholder color * Hide default RGL's resize handle * Fix random dashboard layout rearrangements Before dashboard cards' parameters (x, y, width, height) were updated individually for each card It worked fine because there was only one card moving at a time Now when cards are automatically moving when a user drags another card, a race conditon appears, cards' parameters get overwritten, and layout breaks Fixed by using bulk updates for dashboard cards drag and resizing events * Fix dashboard background grid * Align RGL with parent component edges * Fix grid offset * Fix dashboard grid height * Fix no automatic page scroll while dragging * Fix navbar is stuck when scrolling dashboard * Remove previous grid component * Fix grid doesn't respect item min size * Extract grid background into a separate utils file * Fix dashboards layout issues (#16236) * Fix RGL cards are higher than the previous ones * Return the fixed header in editing mode back * Add support for responsive dashboard layouts (#16213) * Fix `gridItemWidth` calculation * Memoize grid children * Add utility to adapt layout for breakpoints * Use responsive react-grid-layout for dashboards * Don't overwrite main layout with smaller ones * Pass correct `isMobile` prop to DashCard component * Extract `renderGridItem` method * Increase dashboard cards vertical margin for mobile * Remove dashboard's old renderMobile method * Add isMobileBreakpoint utility function * Disable dashboard drag and resize for mobile * Remove old method disabling mobile drag and resize * Fix grid background rendering * Switch to desktop and mobile breakpoints * Update card heights for dashboard's mobile view * Add a comment about `!important` in CSS * Minor code style fix * Remove not used functions
-
- May 26, 2021
-
-
Ariya Hidayat authored
-
- May 25, 2021
-
-
Gustavo Saiani authored
-
Ariya Hidayat authored
When attempting to convert a filter, check first if the filter is a comparison against a constant. Otherwise, preserve the filter is in its custom expression (MBQL) form. Each in the following list can be converted into a standard filter (since the simple UI for the standard filter only allows literal comparison): [Total] < 300 between([Discount], 5, 15) [Name] = "Joe" but none of these should be converted [Discount] <= [Tax] between([Rating], 0, [MaxRating]) [Reviewer] != UPPER([Name]) * Allow standard filter to be invalid This is necessary to allow an incomplete filter, i.e. the user hasn't filled Y in "X < Y" form yet (hence Y is undefined). The filter is not valid but it is still considered in the standard form. * Check whether string comparison can be considered a standard filter * Idiomatic with array destructuring
-
Ariya Hidayat authored
When attempting to convert a filter, check first if the filter is a comparison against a constant. Otherwise, preserve the filter is in its custom expression (MBQL) form. Each in the following list can be converted into a standard filter (since the simple UI for the standard filter only allows literal comparison): [Total] < 300 between([Discount], 5, 15) [Name] = "Joe" but none of these should be converted [Discount] <= [Tax] between([Rating], 0, [MaxRating]) [Reviewer] != UPPER([Name]) * Allow standard filter to be invalid This is necessary to allow an incomplete filter, i.e. the user hasn't filled Y in "X < Y" form yet (hence Y is undefined). The filter is not valid but it is still considered in the standard form. * Check whether string comparison can be considered a standard filter * Idiomatic with array destructuring
-
Nemanja Glumac authored
-
- May 24, 2021
-
-
dpsutton authored
* Add yyyymmddhhss coercions to type system * Implementations for h2/mysql/postgres for yyyymmddhhss bytes and strings * Mongo and oracle * Adding checksum on migration it said was bad * import OffsetDateTime * Redshift and bigquery * snowflake expectations * sql server yyyymmddhhmmss. have to format the string then parse sqlserver lacks a parse function that takes a format string, they just take an integer that specifies a predefined format string. So we have to make the string into the right format then parse. * presto yyyymmddhhmmss * Test byte conversions * Remove errant `mt/set-test-drivers!` * Remove sqlite, change keyword for multiple native types in def the spec couldn't handle different shapes under the same keyword. so just use :natives {:postgres "BYTEA"} :native "BYTEA" * Make schema work with different shape maps * hx/raw "'foo'" -> hx/literal "foo" and remove checksums * _coercion_strategy -> _coercion-strategy * Handle coercion hierarchy for :Coercion/YYYYMMDDHHMMSSBytes->Temporal
-
Howon Lee authored
This ballooned in scope by a bit. 1. FE landed onto this. So both BE and FE 2. Added an offset-pagination middleware 3. Refactored collection in addition to paginating it so it works by a giant UNION ALL 4. Refactored effective collections to work by a moderately complicated query with very many WHERE clauses to execute the effective visibility, instead of doing it in clojureland
-
Ariya Hidayat authored
* Add a Cypress test
-
- May 22, 2021
-
-
Ariya Hidayat authored
-
- May 21, 2021
-
-
Cam Saul authored
-
Cam Saul authored
-
Nemanja Glumac authored
-
Anton Kulyk authored
-
- May 20, 2021
-
-
Gustavo Saiani authored
* Add PropTypes and simplify TokenizeInput * Add PropType for forwardedRef
-
Luis Paolini authored
-
Noah Moss authored
* Add async validation of password in account settings, and change schema error message * run prettier * add period to error message for consistency * revert change to api-documentation
-
Gustavo Saiani authored
-
Howon Lee authored
We made fieldname friendliness, people didn't like it, we tried to fix it, people still didn't like it, now we're just making the fieldnames all mildly unfriendly again. Not like, snake_case unfriendly, but Pascal Case With Spaces unfriendly
-
- May 19, 2021
-
-
Cam Saul authored
-
Cam Saul authored
v0.39.2
-
Cam Saul authored
v0.39.1
-
Anton Kulyk authored
* Add basic AddDatabaseHelpCard component * Display database engine on HelpCard * Display help link for cloud instances * Display link to database setup docs * Dispaly help card at `/admin/database/create` * Test help card changes copy on new db page * Display db setup help card on Setup * Display help card only when db engine is selected * Fix not translated string * Use styled-components for AddDatabaseHelpCard
-
Nemanja Glumac authored
-
Cam Saul authored
* Coercion strategy hierarchies * Don't rebuild hierarchy on every change * Emacs config tweaks * clojurescript-mode is derived from clojure-mode, combine the dir locals * Remove log statements and improve dir locals * Use new api from app - add coercions for text (iso stuff) - function to get the effective type for a strategy - extra validation in saving field to ensure that the triple `[coercion base effective]` is valid * remove unnecessary `coercions` map Co-authored-by:
dan sutton <dan@dpsutton.com>
-
- May 17, 2021
-
-
Cam Saul authored
* Fix Druid queries with multiple filters if some but not all are temporal * Fix Druid queries with temporal Fields that don't have a :temporal-unit * Test fix
* Fix syntax errors * Query result metadata should return the :unit from the source query when applicable * Test fix * Clarify comment in test * More test fixes * Test fix -
Ariya Hidayat authored
* Use ExternalLink to automatically use noopener/noreferrer * Address code review feedback
-
Cam Saul authored
* Port legacy data type migrations -> Liquibase * Fix migration IDs * Field type validation/error handling * Have semantic type fallback to nil * Fix semantic-type-migrations-test * Fix migrations * Revert accidental changes * Semantic/* & Relation/* ancestor types * Fix stray Relation/PK and Relation/FKs * Semantic/* and Relation/* ancestor types * cljs test fix * Fix :require * FE test fixes
* Test fixes * prettier * PR f e e d b a c k * Use medium size CircleCI image for Presto to prevent all the OOMs * Backport dir-locals tweaks from hierarchy PR * Redshift: only sync the test schema (faster CI and fix failure) * Better error handling for sync in tests * Revert accidental commit * Redshift test fixes
-