Apache Superset is a Data Visualization and Data Exploration Platform
Go to file
cccs-RyanS ddc01ea781
feat(business-types): initial implementation of SIP-78 (#18794)
* add BUSINESS_TYPE_ADDONS to config with example callback

* Removing uneeded whitespace

* [Work in progress] Modifying cidr function to allow for  single ip and adding port outline

* Added test REST endpoint, added some more ports

I've thrown in a test.py script as well that will try to connect to the
business_type endpoint.

* Moving code from config.py into the business api

Very simple api is exposed that will allow someone to call a checkport
endpoint and get back a response.

* Removing commented out bits.

* Adding fucntion dict back to the config

* Moving business_type endpoint to charts

* Adding schema for get endpoint

* Removing imports, updating docstring, fixing typo

Just some small changes as described in the title.  I've updated the
test.py as well so it functions with the endpoint changes.

* Adding translation dict

* Fixing ops

* Adding check for list

* Modifying changes to add quotes where needed

Also changed BusinessTypeResponse to resp.

* Adding in some code to call the filter config

If a column starts with "cidr_" it will call the code in config.py to
try to translate the filter.  Nothing is changed in the JSON being
executed, just some information is dumped to console.

* Porting Ryan's changes

* Adding migration script (as per Ryan's PR)

* Fixing typo

* Prettier fixes

* [CLDN-1043] Adding rough version of filter changes for business types

* fix down migration

* Fixing bugs after merge

* adding functionality to appy filters in back end

* Fixing linting issues

* fix down revision

* Changing conversion callback to handle multiple values at once

* Adding string representation of values

* Code cleanup plus fixing debouce to only be called once for each entry

* Removing non needed logginh

* Changing operator list to use sting values

* Using text value operators

* Removing clear operator call

* Moving business type endpoints

* fix down revision

* Adding port functions

* update migration

* fix bad rebase and add ff

* implement validator

* dont add invalid values to response

* [CLDN-1205] Added a new exception type for a business type translation error. Added the error message in the display_value field within the business type response. Modified the IP and Port business types to populate the error message field in the response if an error occurs

* [CLDN-1205] Added meaningful error message for port translation errors

* Removing status field from businesstype Response and adding in error message

* [CLDN-1205] Added check to make sure the port business type is within the valid range of ports, if it is not, it will populate the error message

* [CLDN-1205] Fixed the if statement that checks to see if the string_value is in the valid range of port numbers. It did not corrently verify this before now.

* [CLDN-1205] Fixed an error where it was trying to use string_value in <= statements. I just casted string_value to an integer if it is numeric, which allows <= operators to be used on it

* [CLDN-1207] Added unit tests for the cidr_func and port_translation_func functions which are located in /superset/config.py

* [CLDN-1207] removed the assertRaises line as it does not work with the cidr_func and port_translation_func functions

* [CLDN-1207] Added the skeleton of the test_cidr_translate_filter_func unit test, still need to update what the expected response from the function will be.

* [CLDN-1207] Added the remainder of the back-end unit tests for the business types

* [CLDN-1207] Fixed the syntax error which caused the test_cidr_translate_filter_func_NOT_IN_double unit test to fail

* [CLDN-1207] Removed the logging that was added for debugging purposes

* [CLDN-1207] Formatted the commands_tests.py file to make it nicer to look at/read through

* [CLDN-1207] Fixed the code so that it conformed to the pylint requirements (i.e., pylint no longer complains about the code in commands_tests.py)

* [CLDN-1207] Modified some of the docstrings so they made better use of the 100 character per line, line limit

* [CLDN-1207] Added the beginnings of the unit tests for the
business types API

* [CLDN-1207] Added a comment to the top of the commands_tests.py file explaining how to run the unit tests. This prevents the next person who tries to run them from having to waste time trying the different forms of testing that Superset supports (e.g., pytest, tox, etc.)

* [CLDN-1207] Added a grammar fix to the comments describing how to run the unit tests

* [CLDN-1207] Modified the description of the business_type API endpoints as they did not represent what the API was actually doing

* [CLDN-1207] Added further instructions on how to run the unit tests that are within the business_type/api_tests.py file

* add request validation

* disable request if business type missing

* [CLDN-1207] Unit tests for the business type API are now working, however, they need to be modified to make use of @mock as we don't want to have to run the server to be able to run the unit tests

* Removing businesss types deffinitons from config

* Adding select to only show valid business types

* Fixed Enzyme tests

* Added scalfolding for selecting filter dropdown

* Adding intigration tests

* fix revision

* fix typos and unnecessary requests

* break out useBusinessTypes

* Added front-end RTL unit tests for the business type API endpoint

* Fixed error from unit tests

* Added a unit test to ensure the operator list is updated after a business type API response is received

* Removing elect compoenet for business types

* Adding feature flag and allowing saving when no business type present

* fixing useEffect hooks

* Adding feature flag to model

* Changing behavior such that an empty string returns a default response

* add form validation

* Modified comments in unit test as command to run test has changed

* Modified comments in unit test as filename to run test has changed

* Modified the api_tests.py file to conform to the linting requirements

* Changed the name of one of the tests to reflect what the test is actually testing

* Added cypress back to the package.json

* Added informative comments

* Updated comments in files as well as removed imports which were not being used

* Changes made by npm run prettier

* Fixed spelling mistakes

* Updated models.py to remove placeholder comments used in development

* Added feature flag mocking in unit test

* Fixing open api failure

* Fixing business types to pass unit tests

* Reverting unsafe connections back to false

* Removing print statement

* Adding business tpye to export test

* setting default feature flag to false for business type

* Reverting pre commit

* Reverting pre commit and running pre commit

* Reverting pre commit and running pre commit

* Fixing formatting

* Adding license

* Fixing Linting

* Protecting api enpoints

* updating model

* Fixing code path when business type exists

* Linting

* Linting

* Fixing linting

* Fixing spelling

* Fixing schemas

* Fixing app import

* fixing item render

* Added RTL test to make sure business type operator list is updated after API response

* Fixing linting

* fix migration

* Changing unit tests

* Fixing import and DB migration after rebase

* Renaming to advanced types

* Fixing Linting

* More renaming

* Removing uneeded change

* Fixing linting and test errors

* Removing unused imports

* linting

* Adding more detailed name for migration

* Moving files to plugins

* more renaming

* Fixing schema name

* Disabling feature flag that should not be enabled by default

* Adding extra cehck

* NameChange

* formatting

* Fixing equals check

* Moveing all advanced type classes and types to one file, and converting tests to functional

* Adding advanced type to test and fix linitng

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
Co-authored-by: Dan Parent <daniel.parent@cse-cst.gc.ca>
Co-authored-by: GITHUB_USERNAME <EMAIL>
Co-authored-by: cccs-Dustin <96579982+cccs-Dustin@users.noreply.github.com>
2022-05-16 17:58:21 +03:00
.github chore: Fix and enhance Applitools workflows (#20071) 2022-05-16 14:26:38 +02:00
docker test(native filter): add new test for dependent filter (#19392) 2022-04-01 01:06:48 -07:00
docs feat(business-types): initial implementation of SIP-78 (#18794) 2022-05-16 17:58:21 +03:00
helm/superset fix(helm): fix postgresql values (#19835) 2022-04-28 09:38:12 -07:00
RELEASING chore(docs): Spelling (#19675) 2022-04-26 13:17:15 -03:00
requirements chore: Update aiohttp>=3.7.4 in requirements (#19872) 2022-04-27 15:58:14 -07:00
RESOURCES Fix broken link for DouroECI (#19911) 2022-05-04 13:52:09 -04:00
scripts feat(CI): clean up Python tests output (#19489) 2022-04-03 16:27:43 -07:00
superset feat(business-types): initial implementation of SIP-78 (#18794) 2022-05-16 17:58:21 +03:00
superset-embedded-sdk chore(deps): bump minimist from 1.2.5 to 1.2.6 in /superset-embedded-sdk (#19550) 2022-04-06 18:20:02 +03:00
superset-frontend feat(business-types): initial implementation of SIP-78 (#18794) 2022-05-16 17:58:21 +03:00
superset-websocket chore(deps): bump async from 3.2.0 to 3.2.3 in /superset-websocket (#19680) 2022-04-22 14:51:37 -06:00
tests feat(business-types): initial implementation of SIP-78 (#18794) 2022-05-16 17:58:21 +03:00
.asf.yaml chore: disable merge button (#17585) 2021-11-30 16:37:23 +08:00
.codecov.yml refactor(monorepo): change coverage of core to 100% (#17698) 2021-12-14 16:19:55 +08:00
.dockerignore feat: Containerize WebSocket server (#14514) 2021-05-10 09:28:50 -07:00
.editorconfig Adding editorconfig setting for IDE hints (#10855) 2020-09-14 08:19:23 -07:00
.flaskenv Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
.fossa.yml Update FOSSA configuration for new requirements layout (#10848) 2020-09-16 13:28:04 -07:00
.gitattributes fix: Normalise *.sh File Endings (#16608) 2021-09-13 16:25:15 -07:00
.gitignore feat: improve color consistency (save all labels) (#19038) 2022-03-21 15:20:04 +08:00
.gitmodules ci: set remote URL to https and bump sha (#14350) 2021-04-26 17:43:32 +01:00
.pre-commit-config.yaml chore: blacklist unsafe functions (#19537) 2022-04-05 14:55:30 -07:00
.pylintrc chore(pylint): Remove top-level disable (#16589) 2021-09-15 09:30:23 -07:00
.rat-excludes feat: Upgrade documentation V2 (#17411) 2022-01-27 14:54:53 -08:00
CHANGELOG.md docs: add changelog and updating entries for 1.5.0 (#20046) 2022-05-13 13:16:04 +03:00
CODE_OF_CONDUCT.md chore(docs): Spelling (#19675) 2022-04-26 13:17:15 -03:00
CONTRIBUTING.md docs: Detail front-end development instructions (#19870) 2022-05-11 10:07:48 -06:00
docker-compose-non-dev.yml feat(docker-compose): add TAG option (#18214) 2022-01-28 15:00:15 +02:00
docker-compose.yml chore(docs): Spelling (#19675) 2022-04-26 13:17:15 -03:00
Dockerfile Compile translations (#17877) 2022-01-04 17:01:42 +02:00
INSTALL.md Fix wrong filename mentioned in INSTALL.md (#14630) 2021-06-29 11:40:26 +03:00
LICENSE.txt chore: pre-commit run --all-files (#10500) 2020-08-02 14:32:17 -07:00
lintconf.yaml feat: publish superset helm chart (#14163) 2021-04-16 09:13:43 -07:00
Makefile chore: Deprecate Python 3.7 (#19017) 2022-03-15 06:29:18 +13:00
MANIFEST.in Update MANIFEST.in (#9261) 2020-03-25 22:00:41 -07:00
NOTICE docs: remove (some) references to incubating/incubation (#12284) 2021-01-06 13:40:40 -08:00
pytest.ini feat: support nulls in the csv uploads (#10208) 2020-07-06 13:26:43 -07:00
README.md Remove broken link to gallery (#19784) 2022-04-20 10:04:20 +03:00
setup.cfg chore: bump majors on celery and Flask (#19168) 2022-03-24 09:16:53 +00:00
setup.py feat: switch from sqlalchemy-trino to trino python client (#19957) 2022-05-05 09:43:31 -07:00
tox.ini chore!: remove ENABLE_REACT_CRUD_VIEWS feature flag (permanently enable) (#19231) 2022-03-18 14:00:23 -07:00
UPDATING.md docs: add changelog and updating entries for 1.5.0 (#20046) 2022-05-13 13:16:04 +03:00
yarn.lock docs: renamed yugabyte to yugabytedb (#19068) 2022-03-08 17:29:22 -05:00

Superset

License GitHub release (latest SemVer) Build Status PyPI version Coverage Status PyPI Get on Slack Documentation

Superset

A modern, enterprise-ready business intelligence web application.

Why Superset? | Supported Databases | Installation and Configuration | Release Notes | Get Involved | Contributor Guide | Resources | Organizations Using Superset

Why Superset?

Superset is a modern data exploration and data visualization platform. Superset can replace or augment proprietary business intelligence tools for many teams. Superset integrates well with a variety of data sources.

Superset provides:

  • A no-code interface for building charts quickly
  • A powerful, web-based SQL Editor for advanced querying
  • A lightweight semantic layer for quickly defining custom dimensions and metrics
  • Out of the box support for nearly any SQL database or data engine
  • A wide array of beautiful visualizations to showcase your data, ranging from simple bar charts to geospatial visualizations
  • Lightweight, configurable caching layer to help ease database load
  • Highly extensible security roles and authentication options
  • An API for programmatic customization
  • A cloud-native architecture designed from the ground up for scale

Screenshots & Gifs

Large Gallery of Visualizations


Craft Beautiful, Dynamic Dashboards


No-Code Chart Builder


Powerful SQL Editor


Supported Databases

Superset can query data from any SQL-speaking datastore or data engine (Presto, Trino, Athena, and more) that has a Python DB-API driver and a SQLAlchemy dialect.

Here are some of the major database solutions that are supported:

redshift google-biquery snowflake trino presto druid firebolt timescale rockset postgresql mysql mssql-server db2 sqlite sybase mariadb vertica oracle firebird greenplum clickhouse exasol monet-db apache-kylin hologres netezza pinot teradata yugabyte

A more comprehensive list of supported databases along with the configuration instructions can be found here.

Want to add support for your datastore or data engine? Read more here about the technical requirements.

Installation and Configuration

Extended documentation for Superset

Get Involved

Contributor Guide

Interested in contributing? Check out our CONTRIBUTING.md to find resources around contributing along with a detailed guide on how to set up a development environment.

Resources