This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Sep 06, 2022
-
-
metamben authored
Fixes #25213.
-
metamben authored
-
Ngoc Khuat authored
-
Gustavo Saiani authored
-
- Sep 05, 2022
-
-
Alexander Polyankin authored
-
Alexander Polyankin authored
-
Ngoc Khuat authored
-
Alexander Polyankin authored
-
Alexander Polyankin authored
-
Gustavo Saiani authored
-
Alexander Kiselev authored
-
Anton Kulyk authored
* Add `app_id` to `Bookmark` type * Convert `bookmark` URL utility to TypeScript * Add unit tests for `bookmark` URL utility * Fix bookmark URL paths * we shouldn't use "/card" for questions as this path is actually deprecated * we shouldn't use "card" for models if we can use "/models" from the get go * Add support for data app bookmark paths * Highlight bookmarked app when it's open
-
Alexander Polyankin authored
-
Nick Fitzpatrick authored
-
Gustavo Saiani authored
-
Alexander Polyankin authored
-
- Sep 02, 2022
-
-
Aleksandr Lesnenko authored
-
Anton Kulyk authored
* Add `DataAppSearchItem` type * Handle app search item type in `Urls.dataApp` * Add `getUrl` method to data apps entity * Support apps and pages in `entityTypeForModel` * Properly display page icons in search * Fix apps and pages labels * Temporary use dash URL for pages * Handle data apps in `Urls.collection` * Add apps and pages filters to the `/search` page
-
Ariya Hidayat authored
-
- Sep 01, 2022
-
-
metamben authored
* Return app collections as apps, page dashboards as pages * Fix bug: descriptions of datasets should also be searchable
-
adam-james authored
* Send show_values key to static-viz js The static viz components expect certain keys on the settings map passed into the js. At this time, the contract between the backend (Clojure) and the static-viz (js) feels a little under-specified. However, for the change to XY Charts here, we follow the existing method in code of checking the backend viz-settings map for some key, and passing it into js in a 'simplified' form. For instance, in this change, `:graph.show-values` is taken and placed into the settings map as `:show_values` for the static-viz js to use. * De-dupe key * Keep this PR super simple, don't eliminate sparkline stuff yet * Add :line earlier in cond, try to fix tests that fail * Get the :line conditional in the right place, allowing :scalar
-
Nemanja Glumac authored
* Fix native query * Replace deprecated `cy.server` and `cy.route` * Add database through API rather than using UI * Remove superfluous `visit` `openNativeEditor` already contains `cy.visit("/")` * Use Postgres instead of H2 for a second database * Speed typing up a bit * Do not use hard coded IDs * Update test title * Move spec to `native` reproductions
-
Nemanja Glumac authored
* Temporarily skip repro for #17450 for H2 database * Reproduce #17450 using Postgres
-
adam-james authored
* Format Pie Chart Legend Labels as Month, YYYY On the backend, the pie chart legend is not rendered in the javascript, it is instead re-created server side as a set of html elements. This means "YYYY-MM-DD" formatted dates do not get passed through the frontend code responsible for formatting date times (I believe this is done with a library called 'moment.js'). And, since the SVG cannot contain html foreignObjects (the backend SVG renederer 'batik' ignores foreign objects), the legend is left as a responsiblility for Clojure land. This PR adds a `format-month` function to handle this case. Current caveats with this approach: - doesn't consider localization (yet) - adjusted the html to use a table instead of a div full of spans and the formatting could use some tweaks - assumes any string that is parse-able into a Jave DateTime object will be displayed in this Month, Year format, - which might not be true in all cases * Improve label formatting by using viz-settings transform fns * Rework Static Pie Chart legend Try to make it look a bit nicer: - splits legends into 2 tables if there are more than 8 entries - larger colored circle - use tables to help lay things out more evenly (CSS flexbox doesn't seem to work) - handle some legend label formatting cases beyond just timestamps (eg weeks of year, yearly quarters) Also fixed the failing test * Adding a month formatter. Sometimes, the label values are not passed in as timestamps, but just numbers (as strings). In these cases, the Datetime formatters won't be useful, so there are some cases built to handle these. * Remove print statement * Change temporal format fns to more closely follow viz-settings Various changes are made to improve static-viz's use of viz-settings from the frontend. - abbreviation is considered (eg. so "January" is rendered as "Jan" when setting is true) - abbreviation also works for Days of week - x-of-y cases are handled a bit better - separator settings are properly reflected (eg. 2022/05 becomes 2022-05 if separator changed to "-") * Remove unused key from the let * Fix some failing tests * Adding more tests * Prevent non-temporal legend labels from being rendered via datetime If a legend's label is some string, we want to pass it unmodified. If it's a number or a timestamp, we can pass it through to the date time render function to format the string to match the viz-settings/column units * Add missed docstring * Don't lowercase 'D' format, pass correct lowercase 'd' before 'D' format = day of year, which in most human-readable formats is not what we want, but it IS what we want in a :day-of-year case. Instead of always lowercasing, just make sure the lowercase 'd' is in the defaults/overrides * Better way to handle day of week and month of year Also got rid of bad use of read-string by using parse-long * Use a java lib. to format ordinal numbers, respecting site locale
-
Aleksandr Lesnenko authored
-
Aleksandr Lesnenko authored
* pie labels * hide labels when no space for them * unused class * review * fix resizing issue, add visual test * mute invalid typings
-
Gustavo Saiani authored
-
metamben authored
Fixes #25143 and #25157. For recent_views and popular_items hydrate the is_app_page flag for dashboards.
-
Alexander Polyankin authored
-
Ariya Hidayat authored
-
Alexander Polyankin authored
-
Jeff Bruemmer authored
* update link * note on public exports * images * readme link * link to install start
-
Alexander Polyankin authored
-
- Aug 31, 2022
-
-
Nemanja Glumac authored
* Skip test that manually adds H2 database * Use custom action instead
-
Braden Shepherdson authored
This is a simple expedient: convert our entities to a `(sorted-map)` before passing them to the YAML writer! This gives a consistent, platform-agnostic order between dumps. (It might have already been fine, since it's based on Clojure's `hash`?)
-
Braden Shepherdson authored
* Add `serdes-descendants` for "containment" to serialize a subtree This allows naming eg. a Collection and will recursively serialize: all dashboards, cards and dashcards it contains directly, plus all child collections and everything they contain. Currently this words on Collection, Dashboard, DashboardCard, and Card. * lint * Switch to plural `extract-subtrees` with a list of `targets`
-
metamben authored
Hydrate app_id on collections in the search endpoint
-
metamben authored
-
metamben authored
See #25097 for context.
-
Nemanja Glumac authored
* Skip adding another H2 database to avoid failures in CI This is just a temporary measure! Remove this mechanism as soon as #24900 gets fixed! * Use Boolean `true`
-