* getredash/redash#5026 Fix wrong Y-axis range for stacked bar chart
* Update tests
* Use Plotly's built-in algorinthm to compute Y-axis range
* Update tests
* Revert previous solution (yRange-related code)
* Revert other unrelated changes
* Revert other unrelated changes
* Move chart rendering to own file and ensure that rendering steps will occur in necessary order
* Reduce amount of plot updates by mergin separate updates into a sigle cumulative update
* Give better names for several functions
* TASK Add typescript dependencies to package.json
* TASK Add typescript to build process and npm scripts and TASK Move example components to typescript and add an example definition file.
* TASK Move back to ts-loader instead of babel typescript preset
* FIX Remove unnecessary changes
* FIX Explicitly mention tsconfig file in webpack.config.js to avoid `error while parsing tsconfig.json, The 'files' list in config file 'tsconfig.json' is empty`
See (https://github.com/TypeStrong/ts-loader/issues/405#issuecomment-330108362)
* FIX Move tsconfig to client subdirectory to make it accessible in docker container (only webpack.config.js is copied over from root folder in Dockerfile)
* TASK Move from ts-loader to babel to reduce compatibility issues between ES6/7 and typescript compilation.
* TASK Add types for classnames, hoist-non-react-statics and lodash. Fix default export of DashboardList and run prettier on eslintrc
* Run npm install
* Trigger tests
* Run npm install 2
* Trigger tests
* on dashboard api calls - take the id from the beginning of the slug, unless there is no number in it - in that case, take the entire slug as id
* add dashboard id when showing links to dashboards
* change path to include new name when renaming dashboards
* move slug generation to backend
* redirect to new name after changing (this time with a proper promise)
* oh right, we already have a slug function
* add spec that makes sure that renamed dashboards are redirected to the
url which contains their new name
* use id-slug in all Cypress specs
* move dashboards from /dashboard/:slug to /dashboards/:id-:name_as_slug
* Update dashboard url as its name changes
* Update separator to be "/"
* Update missing dashboard urls
* Update api not to depend on int id
* Use '-' instead of '/' as separator and update Dashboard.get calls
* slug -> name_as_slug
* Keep slug urls on cypress
* Update route path
* Use legacy attr for GET
* Use getter for urlForDashboard
* Update dashboard url when loaded by slug
* Update Dashboard routes to use id instead of slug
* Update Dashboard handler tests
* Update Cypress tests
* Fix create new dashboard spec
* Use axios { params }
* Drop Ternary operator
* Send updated slug directly in 'slug' attr
* Update multiple urls Dashboard test name
* Update route names
Co-authored-by: Levko Kravets <levko.ne@gmail.com>
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
Co-authored-by: Levko Kravets <levko.ne@gmail.com>
* allow overriding the type of key used for primary/foreign keys of the different models
* rename key_types to singular key_type
* add some documentation for `database_key_definitions`
* Textbox: confirm close if text was changed
* Update texting (with @gabrieldutra)
* Update texting
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
* Move components specific to UserProfile page to corresponding folder
* Split UserProfile page into components
* Rename components, refine code a bit
* Add some extension points
* Fix margin
* Split OrganizationSettings page into components
* Update change handling: use objects instead of string keys, move some logic to more appropriate place
* Convert OrganizationSettings page to functional component and refine code a bit
* Add some extension points
* Improve onChange handler
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
* Fix CLI command for "status"
CLI command "status" can fail due to incorrect connection information to RQ.
This change matches the behavior from line 65 and solves the connection error.
* Move connection up to CLI entrypoint
* ErrorMessage is not centered
* Adjust ErrorMessage size on large screens
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>