This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Jul 04, 2022
-
-
Alexander Polyankin authored
-
- Jun 29, 2022
-
-
Alexander Kiselev authored
* enable esbuild * update i8n script and unit testing babel config * split out babel loader for styled components
-
- May 11, 2022
-
-
Alexander Kiselev authored
* remove memoize decorator * remove babel plugins * Fix AccordionList * remove memoize from accordionlist * fix value vs type issue with wrapped classes * fix typechecking in memoize class * rewrote query to export the memoized class directly
-
- Feb 08, 2022
-
-
Alexander Lesnenko authored
* replace attrs to defaultProps (#20260) * replace attrs to defaultProps * fix replaced attrs * fix className in defaultProps * use emotion (#20265) * replace attrs to defaultProps * fix replaced attrs * use emotion * fix typo in css * eliminate innerRefs * fixes * fixes * fixes * fixes * flakes * specs * specs * docs * specs * fix last spec * remove classNames from defaultProps
-
- Dec 07, 2021
-
-
Alexander Polyankin authored
-
- Oct 07, 2021
-
-
Alexander Lesnenko authored
* add basic typescript configuration * convert a tiny hook use-debounced-value to typescript * allow any for now? * update terser and static viz configs * adjust config * change extension of QuestionActivityTimeline from jsx to js to match jest config * adjust config * skip failing tests * Fix missing question method in unit tests (#18314) * review fix * fix Co-authored-by:
Anton Kulyk <kuliks.anton@gmail.com>
-
- Jul 30, 2021
-
-
Dalton authored
* Update babel dependencies to latest * Remove some old babel dependencies The dependencies in this commit include dependencies that have been renamed, such as babel-cli which is now @babel/cli. It also includes dependencies that have been replaced, such as babel-preset-stage-0 and its ilk, which have been replaced with @babel/preset-env. * Remove babel-register dependency This is referenced in our webpack.config.js file. I don't think we need Babel in our Node envionment, but I could be wrong, so leaving this as a separate commit. * Remove @babel/standalone and dependent code We're using @babel/standalone to support the writing of JSX in our internal-only ScratchApp editor. Unfortunately, this dependency is large--1.5mb not gzipped--and our current build does not intelligently split bundles, meaning our users our burdened by the size of this dependency whenever they must redownload the Metabase JS bundle. I'm removing it. We should still be able to write JS in the ScratchApp, but JSX no longer. * Add @babel/node to dev deps Needed by a cypress command * Add browserslist config Babel's preset-env dep needs this config to determine how to transform our JavaScript. By default I believe it ends up defaulting to "defaults." "defaults" is equivalent to the following rules: > 0.5%, last 2 versions, Firefox ESR, not dead A comma between rules represents a UNION operator. Per https://www.metabase.com/docs/latest/faq/general/supported-browsers.html we have deprecated IE 11 so I am including that explicitly in our browserslist. * Update babelrc plugins and presets - Replaced presets with preset-env and preset-react - Updated the names of some plugins, like transform-decorators-legacy, which is now @babel/plugin-proposal-decorators with an explicit "legacy: true" passed in the config. - Removed add-react-displayname because it is included in preset-react - Removed transform-builtin-extend because it is included in preset-env* - Removed syntax-trailing-function-commas because it is supported by all browsers we support * note: There is a "loose" config option for handling the extension of builtin classes. We may need it, but I am not sure. * Update babel cli args Replace -q with --quiet because -q no longer exists * Fix circular dep in auth.js by making it async Our app unfortunately contains MANY circular dependencies. Some, like this one, caused problems when the app instantiates because the "refreshCurrentUser" method is undefined when auth.js is initially run. While we should in the future avoid having circular deps in the first place, making them run async by requiring the dep and function run-time fixes this particular issue. * Fix circular dependency in metabase/redux/requests.js The handleActions and createAction methods imported from "metabase/lib/redux" are actually just methods from the "redux-actions" dependency... so importing those methods directly from that dep fixes this circular dependency problem. * Remove references to global.services and exports in metabase/services This line breaks the build. Git blame says the line is 5 years old, and I wouldn't expect such code to be used with how our app now requires deps. * Fix MBQLArrayClause problem caused by Array extension * Explicitly pass args from flatMap to function via anonymous cb I think the old Array.prototype.flatMap prototype must've had different args. They are now "currentValue, index, array" so when we passed it "enumeratePaths" as a callback, the second arg of enumeratePaths gets set to a number. This breaks the logic of enumeratePaths because it is a recursive function that depends on that second arg getting initialized as an empty array by default. * Remove code that spreads non-iterable value in array New Babel is stricter about handling this sort of code that doesn't match the JS spec. You can't spread an undefined value inside of an iterator. * Update jest and babel-jest to latest Updating Babel breaks our unit tests. Updating nothing causes every test to fail due to a Babel version mismatch. Updating only babel-jest causes the following error: TypeError: Jest: a transform must export a `process` function There may be a way around updating Jest, but updating it does not appear to be too difficult. * Set the testEnvironment to jsdom This was the default testEnvironment in our old version of jest. At some point the default was changed to node. * Remove unfinished "pending" unit tests I'm unfamiliar with this pending function, but the function no longer exists, causing the tests to fail. * don't pass async callback to describe * Update name of runTimersToTime to advanceTimersByTime * Fix incorrectly nested unit test * mock SVGElement.prototype.getBBox method * Don't return values in describe callback * Move variable declaration to above usage * Fix prettier error * Upgrade `documentation` library to the latest version (13.x.x) This library was the only one left that was still using Babel 6. * Return an MBQLClause instance after using Array methods * remove 'not IE 11' from browserslist * Remove mock that breaks unit test Co-authored-by:
Nemanja <31325167+nemanjaglumac@users.noreply.github.com>
-
- Apr 11, 2019
-
-
Tom Robinson authored
-
- May 29, 2018
-
-
Kyle Doherty authored
* Entity pages (courtesy @kdoh) * Add collection_id to Dashboards & Pulses (#7358) * add search to top nav * flip homepage, updated collections * make recent views self contained, add to home * recent items style, add some new colors * adjust default text color * add js colors to style guide * add copy color * segment loader * move to landings * landing nav * segment list + loader * clean up landing nav * metric + segment listing * mucking around with selectable stuff * layout tweaks * other loaders * stronger left sidebar * left sidebar * fix landing * layout port * more tweaks * nav tweaks * explore * collection wrap * Add collection_id to Dashboards & Pulses * GET /api/collection/:id default to returning everything. Wow! * colleciton items loader * dashboard move modal + cleanup * currentCollection and items * Add GET /api/collection/root endpoint * pulse move modal * MASSIVE ALERTS/PULSES/NOTIFICATIONS OVERHAUL * move activity feed * all items, cards * link * Filter out stuff you're not allowed to see from the so-called "Root" Collection * Tests for GET /api/collection/root * fix query builder and login layout * lint + test fixes * filter collection landing * create dash modal * new collection modal * Tests for Dashboard + Collection permissions * Tests for Pulse + Collection permissions * Add new Pulse/Alert perms tests & lots of cleanup
* Test fixes * tweak grid, add system to icon * truncate long titles * remove duplicate file * add collection to create dashboard * add collection selection to pulse edit * icon spacing * use site name for landing * clean up routes * include required pulse card keys * fix entity menu action / link and add to collection landing * update jest snapshots changed by icon * use entity loader for collections * use object loader for collection items * fix colleciton edit and permissions * remove unused file * add key to collection grid items * link to pulse edit * use named list for collections * Increase nav z-index Fixes #7523 * tweak z-index level * fix filters * fitViewport component and application * add fitViewport to setup and post setup * add root collection to dashboard move modal * move to id for loading collections * fix permission editor * fix other instances of collection slug * fix unit tests * flow fixes * dep flow fixes * Fix admin routes not loading currentUser before checking auth * Add id: root to Root Collection * root collection items * temporary archive links * fix up question archive route * redirect to collection on pulse creation * use fitClasses on /explore * Fix NavBar popover and modal interactions * Fix comments about when migrations were added * fix lint * style updates * fix recent views * collection empty state * Make FitViewPort more robust * Fix side bar link states * fix snapshot * Fix alerts * update link and landing nav style * add archive collection route / modal * add modal * Disable onboarding integration test * Fix disabling of dashbaord tests * Update snapshots and lint error * Fix collection archiving * lint * revert text color * Reload collection list each time it's shown to ensure it's in the correct state: * fix empty state image * only show permissions edit option for the root collection * nav * simple layout * fix grid * grid component * fix translation * fitClassNames > fitClasses * fix up collection items loader * remove unused files * remove type filter * qb lives * default to qb * collection landing and components * hoverable card * placeholder search bar * flip collection / content order on landing * fix padding * dashboards first in the list * Merge master into collections-project * only show sidebar if exists * Add collection_position column to Card/Dashboard/Notification (#7675) * add first version of pins * Fix memory leak found using RedShift JDBC Metadata methods Running sync calls several JDBC metadata methods that return `ResultSet` objects. According to the JDBC spec, when the connection associated to the JDBC ResultSet has been closed, it should free the resources used by the ResultSets that were left open in that connection. That doesn't look to be happening in RedShift. Closing the ResutSet instance ourselves before the connection closes will ensure that these resources are freed and doesn't allow the RedShift bug to occur. * use entity update instead of raw api * Fix tests :wrench::unamused: * Unified archive, search, schema data browsing, and refactor of entities * Fix create dashboard modal * Collections overworld (#7687) * add overworld * layout tweaks * remove navbar browsing link * table item cards * search page layout and item icon colors * search bar active style * Remove Label & CardLabel models & endpoints * DO NOT RUN TESTS ON SHUTDOWN! EVER! * remove navbar browsing link * table item cards * search page layout and item icon colors * search bar active style * archive page changes * Merge master into collections-project * activity style updates * match search bar width to content * schema grid * greet with name * type sync * pin icon * be round now * search spacing and entitiy item last child border * collection text color * collection pinned item size / text * better root collection name * something styled * init search empty state * lint fix * fix colleciton links. fixes #7716 (#7720) * Merge master into collections-project * database card styling * tweak hex value * prettier * fix overlap (#7737) * Reload collections list in question save modal, and collections items list as stopgap until it's more automatic (#7731) * Fix public question layout (#7732) * Change Urls.collection() to take an ID, default to 'root', and use when creating pulse * Collections project bg sync (#7740) * default to bg-slate-extra-light color * admin routes * fix question archive redirect and archived message (#7730)
-
- Mar 01, 2018
-
-
Tom Robinson authored
-
- Feb 18, 2018
-
-
Tom Robinson authored
-
- Aug 23, 2017
-
-
Tom Robinson authored
-
- Aug 21, 2017
-
-
Tom Robinson authored
-
- Feb 21, 2017
-
-
Tom Robinson authored
-
- Feb 09, 2017
-
-
Tom Robinson authored
-
- Jan 03, 2017
-
-
Tom Robinson authored
-
- May 12, 2016
-
-
Tom Robinson authored
-
- Apr 06, 2016
-
-
Tom Robinson authored
-
- Apr 05, 2016
-
-
Tom Robinson authored
-