* Add Asana alert destination
* change icon
* fix format
* add except in log
* fix flake8
* add metadata kwarg to notify
* update asana image
* make pat and project id required
* rename asana destination icon
* reuse Alert
* extract api base url to property method
* use required options
* add asana destination test
* make format
* define metadata
* fix test
* remove json.dumps from asana test
---------
Co-authored-by: Konstantin Smirnov <46676677+konnectr@users.noreply.github.com>
Co-authored-by: konnectr <1konnectrl@gmail.com>
Co-authored-by: Guido Petri <18634426+guidopetri@users.noreply.github.com>
* [client] add friendly console log on '<' syntax error
Issue: when a javascript file is served with invalid contents, sometimes
it means that a fallback html file was returned from server instead.
This can be hard to determine because the stack trace is not helpful and
the `filename` information was previously lost from the global error
handler.
Added a specific error for this case to produce a friendlier error
message on the console.
* Add ace define override for custom mode
* Apply prettier changes
---------
Co-authored-by: Justin Clift <justin@postgresql.org>
* Bump Cypress to 6.0.1
Unfortunately, due to a change in how Cypress treats elements with opacity 0, we need to disable two of the front end tests.
Hopefully someday, someone with better knowledge of JS and Cypress is able to fix these. :)
* Fix persisting datasource selection choice
Closes getredash/redash#5646.
We were already storing this in localStorage, however we weren't
accounting for the fact that it was stored as a string, rather than
an integer.
* Restyled by prettier (#6182)
Co-authored-by: Restyled.io <commits@restyled.io>
---------
Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
* Remove DynamoDB as a data source for now, due to dependency incompatibilities
* Remove Firebolt as a data source for now, due to dependency incompatibilities
* Remove pymapd / pyomnisci / heavyai, due to dependency incompatibilities
* Remove pycrypto, upgrade cryptography
* Remove pyarrow (for now), which we no longer need
* Require an (older) version of black, to avoid test failures with more recent click library
* Upgrade gevent to 21.12.0
* Upgrade greenlet to 1.1.2
* Upgrade httpli2 to 0.18.1
* Upgrade requests to 2.31.0
* Upgrade snowflake-connector-python to 3.0.4
* Upgrade urllib3 to 1.25.11
Note, the warning message caused by the older versions of gevent and greenlet was:
RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 40 from C header, got 144 from PyObject
* Update ngines definition to allow for newer versions of Node.
With Node version 19 I stumbled into some issues so for now bumped it to v16, until we get to updating the libraries we use.
* docker-compose.yml updates:
1. Switch to newer maildev docker image.
2. Update local port to 5001 as 5000 seems to be used by a system process now.
* Update pymssql and pyarrow. Also commented out ibm-db until we have a way to not install it only on ARM.
* Microsoft Teams Webhook alert destination
* Text formatting and new image for Microsoft Teams Webhook
* Comment on how to build frontend
* Add title to clarify webhook URL
* Make the message into a configurable template.
- A runner supporting the newest versions of ES,
aggregation, nested aggregations and nested fields.
- A runner for the SQL OpenDistro flavor
- A runner for the SQL X-Pack flavor
Co-authored-by: Nicolas Le Manchet <nicolas@lemanchet.fr>
Co-authored-by: wwl717195673 <717195673@qq.com>
This change took place in steps:
1. Change order of content and sidebar.
Sidebar appears first, then content.
2. Fix padding
* Before: content was jutted against the sidebar. The sidebar was double-
padded from the edge of the content area.
After: Content has 15px pad against the sidebar. Sidebar has the same pad
as the page title.
3. Don't pad the content on small screens.
Otherwise the content appears off-center and doesn't use all of the
available space.
4. Allow Create buttons to have varying width
This makes the Query, Dashboard, and Alert list pages share the same style
* Excel query runner
* Param handling for read_excel
* CSV query runner
* Fix wrong module name
* Use yaml as query language
* Use yaml as query language for CSV
* Added icon and required modules
* Local address filtering
* Fix syntax error
* Add PlainButton
* refactor close icons
* reorder import
* refactor remaining anchors
* refactor: replace remaining <button> and TODOs
* refactor: changed applicable elements to type link
* fix: minor details
* bug: fix tooltip ternary
* refactor: improve interactivity and semantics of schema list item
useEffect() doesn't run until _after_ the component renders. Before the
hook runs, the value of `groups` === []. And this is passed to
<DynamicForm>'s `initialValue` prop. The `initialValue` is not re-evaluated
after useEffect() completes. So the users groups are never updated.
This change pulls the user's current groups from `user` prop on the
page.
* feature: add external link
* refactor: split external link into own component
* refactor: added link with icon
* refactor: remove reduntant tab index
* refactor: simplify props
* refactor: fix types
* refactor: bring types and components together
* refactor: improve treatment of target