diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9f0fd5caa..146d0b632 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -432,9 +432,9 @@ npm run lint ### Python Testing -All python tests are carried out in [tox](http://tox.readthedocs.io/en/latest/index.html) +All python tests are carried out in [tox](https://tox.readthedocs.io/en/latest/index.html) a standardized testing framework. -All python tests can be run with any of the tox [environments](http://tox.readthedocs.io/en/latest/example/basic.html#a-simple-tox-ini-default-environments), via, +All python tests can be run with any of the tox [environments](https://tox.readthedocs.io/en/latest/example/basic.html#a-simple-tox-ini-default-environments), via, ```bash tox -e @@ -464,7 +464,7 @@ commands are invoked. ### JavaScript Testing -We use [Jest](https://jestjs.io/) and [Enzyme](http://airbnb.io/enzyme/) to test Javascript. Tests can be run with: +We use [Jest](https://jestjs.io/) and [Enzyme](https://airbnb.io/enzyme/) to test Javascript. Tests can be run with: ```bash cd superset/assets diff --git a/README.md b/README.md index 1bfc3ec9a..af3193ac9 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ Database Support Superset speaks many SQL dialects through SQLAlchemy, a Python ORM that is compatible with -[most common databases](http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html). +[most common databases](https://docs.sqlalchemy.org/en/rel_1_2/core/engines.html). Superset can be used to visualize data out of most databases: * MySQL diff --git a/RELEASING.md b/RELEASING.md index 9e1de0594..b4b06bc6c 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -83,7 +83,7 @@ git push apache 0.25 --tags # superset package. Committers that want to ship releases # should have this access. # You'll also need a `.pypirc` as specified here: -# http://peterdowns.com/posts/first-time-with-pypi.html +# https://gist.github.com/davydany/b08acef08f75fe297e13ae4d24ce9f4d ./pypi_push.sh # publish an update to the CHANGELOG.md for the right version range diff --git a/docs/Makefile b/docs/Makefile index 748dbecfe..1d0c8e59f 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -25,7 +25,7 @@ BUILDDIR = _build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) -$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from https://sphinx-doc.org/) endif # Internal variables. diff --git a/docs/faq.rst b/docs/faq.rst index 648bb8698..d1f781f4a 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -272,7 +272,7 @@ Superset in the :ref:`ref_database_deps` section of the docs. Database engines not listed in this page may work too. We rely on the community to contribute to this knowledge base. -.. _SQLAlchemy dialect: http://docs.sqlalchemy.org/en/latest/dialects/ +.. _SQLAlchemy dialect: https://docs.sqlalchemy.org/en/latest/dialects/ .. _DBAPI driver: https://www.python.org/dev/peps/pep-0249/ For a database engine to be supported in Superset through the diff --git a/docs/installation.rst b/docs/installation.rst index 429f70ccc..53e82318a 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -215,7 +215,7 @@ setup known to work well in production: :: superset:app Refer to the -`Gunicorn documentation `_ +`Gunicorn documentation `_ for more information. Note that *gunicorn* does not @@ -319,7 +319,7 @@ as well as Flask extensions like ``flask-wtf``, ``flask-cache``, ``flask-migrate``, and ``flask-appbuilder``. Flask App Builder, the web framework used by Superset offers many configuration settings. Please consult the `Flask App Builder Documentation -`_ +`_ for more information on how to configure it. Make sure to change: @@ -497,9 +497,9 @@ find an ``extra`` field as a ``JSON`` blob. This JSON string contains extra configuration elements. The ``engine_params`` object gets unpacked into the -`sqlalchemy.create_engine `_ call, +`sqlalchemy.create_engine `_ call, while the ``metadata_params`` get unpacked into the -`sqlalchemy.MetaData `_ call. Refer to the SQLAlchemy docs for more information. +`sqlalchemy.MetaData `_ call. Refer to the SQLAlchemy docs for more information. Schemas (Postgres & Redshift) @@ -583,7 +583,7 @@ The following keys in `superset_config.py` can be specified to configure CORS: * ``ENABLE_CORS``: Must be set to True in order to enable CORS -* ``CORS_OPTIONS``: options passed to Flask-CORS (`documentation `) +* ``CORS_OPTIONS``: options passed to Flask-CORS (`documentation `) DOMAIN SHARDING diff --git a/docs/security.rst b/docs/security.rst index 8894b29f0..67c359687 100644 --- a/docs/security.rst +++ b/docs/security.rst @@ -21,7 +21,7 @@ Security in Superset is handled by Flask AppBuilder (FAB). FAB is a "Simple and rapid application development framework, built on top of Flask.". FAB provides authentication, user management, permissions and roles. Please read its `Security documentation -`_. +`_. Provided Roles -------------- diff --git a/docs/visualization.rst b/docs/visualization.rst index b8c133a0e..049ec0a10 100644 --- a/docs/visualization.rst +++ b/docs/visualization.rst @@ -1837,17 +1837,17 @@ Need to add a new Country? To add a new country in country map tools, we need to follow the following steps : 1. You need shapefiles which contain data of your map. - You can get this file on this site: http://www.diva-gis.org/gdata + You can get this file on this site: https://www.diva-gis.org/gdata 2. You need to add ISO 3166-2 with column name ISO for all record in your file. It's important because it's a norm for mapping your data with geojson file 3. You need to convert shapefile to geojson file. - This action can make with ogr2ogr tools: http://www.gdal.org/ogr2ogr.html + This action can make with ogr2ogr tools: https://www.gdal.org/ogr2ogr.html 4. Put your geojson file in next folder : superset/assets/src/visualizations/CountryMap/countries with the next name : nameofyourcountries.geojson -5. You can to reduce size of geojson file on this site: http://mapshaper.org/ +5. You can to reduce size of geojson file on this site: https://mapshaper.org/ 6. Go in file superset/assets/src/explore/controls.jsx diff --git a/scripts/check_license.sh b/scripts/check_license.sh index 4ca00c3c4..f1bea2a82 100755 --- a/scripts/check_license.sh +++ b/scripts/check_license.sh @@ -20,7 +20,7 @@ acquire_rat_jar () { - URL="http://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" + URL="https://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" JAR="$rat_jar" diff --git a/setup.py b/setup.py index 7b6be5e55..a29dfe5a4 100644 --- a/setup.py +++ b/setup.py @@ -120,7 +120,7 @@ setup( }, author='Apache Software Foundation', author_email='dev@superset.incubator.apache.org', - url='http://superset.apache.org/', + url='https://superset.apache.org/', download_url=( 'https://dist.apache.org/repos/dist/release/superset/' + version_string ), diff --git a/superset/assets/package.json b/superset/assets/package.json index 710c47738..2db553a5c 100644 --- a/superset/assets/package.json +++ b/superset/assets/package.json @@ -45,7 +45,7 @@ "engines": { "node": ">= 6.11.5 <7.0.0 || >= 8.9.0" }, - "homepage": "http://superset.apache.org/", + "homepage": "https://superset.apache.org/", "dependencies": { "@data-ui/sparkline": "^0.0.54", "@superset-ui/chart": "^0.10.2", diff --git a/superset/assets/spec/javascripts/sqllab/Link_spec.jsx b/superset/assets/spec/javascripts/sqllab/Link_spec.jsx index 6ff6d809a..89116be1c 100644 --- a/superset/assets/spec/javascripts/sqllab/Link_spec.jsx +++ b/superset/assets/spec/javascripts/sqllab/Link_spec.jsx @@ -24,7 +24,7 @@ import Link from '../../../src/SqlLab/components/Link'; describe('Link', () => { const mockedProps = { tooltip: 'This is a tooltip', - href: 'http://www.airbnb.com', + href: 'https://www.airbnb.com', }; it('renders', () => { expect(React.isValidElement(TEST)).toBe(true); diff --git a/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx b/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx index dc52bece5..38b1647c6 100644 --- a/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx +++ b/superset/assets/src/SqlLab/components/TemplateParamsEditor.jsx @@ -85,7 +85,7 @@ export default class TemplateParamsEditor extends React.Component { in your SQL (example: SELECT * FROM {'{{ my_table }}'} ) by using  diff --git a/superset/assets/src/addSlice/AddSliceContainer.jsx b/superset/assets/src/addSlice/AddSliceContainer.jsx index 6935690ca..3ab0706c9 100644 --- a/superset/assets/src/addSlice/AddSliceContainer.jsx +++ b/superset/assets/src/addSlice/AddSliceContainer.jsx @@ -97,7 +97,7 @@ export default class AddSliceContainer extends React.PureComponent { 'If the datasource your are looking for is not ' + 'available in the list, ' + 'follow the instructions on the how to add it on the ')} - {t('Superset tutorial')} + {t('Superset tutorial')}


diff --git a/superset/assets/src/modules/geo.js b/superset/assets/src/modules/geo.js index 49398f94c..7dce24e97 100644 --- a/superset/assets/src/modules/geo.js +++ b/superset/assets/src/modules/geo.js @@ -49,7 +49,7 @@ export const EARTH_CIRCUMFERENCE_KM = 40075.16; export const MILES_PER_KM = 1.60934; export function kmToPixels(kilometers, latitude, zoomLevel) { - // Algorithm from: http://wiki.openstreetmap.org/wiki/Zoom_levels + // Algorithm from: https://wiki.openstreetmap.org/wiki/Zoom_levels const latitudeRad = latitude * (Math.PI / 180); // Seems like the zoomLevel is off by one const kmPerPixel = (EARTH_CIRCUMFERENCE_KM * Math.cos(latitudeRad)) / Math.pow(2, zoomLevel + 9); diff --git a/superset/config.py b/superset/config.py index c44328e5a..7f08fc353 100644 --- a/superset/config.py +++ b/superset/config.py @@ -160,10 +160,8 @@ AUTH_TYPE = AUTH_DB # Uncomment to setup OpenID providers example for OpenID authentication # OPENID_PROVIDERS = [ -# { 'name': 'Yahoo', 'url': 'https://me.yahoo.com' }, -# { 'name': 'AOL', 'url': 'http://openid.aol.com/' }, -# { 'name': 'Flickr', 'url': 'http://www.flickr.com/' }, -# { 'name': 'MyOpenID', 'url': 'https://www.myopenid.com' }] +# { 'name': 'Yahoo', 'url': 'https://open.login.yahoo.com/' }, +# { 'name': 'Flickr', 'url': 'https://www.flickr.com/' }, # --------------------------------------------------- # Roles config @@ -308,7 +306,7 @@ ADDITIONAL_MODULE_DS_MAP = {} ADDITIONAL_MIDDLEWARE = [] """ -1) http://docs.python-guide.org/en/latest/writing/logging/ +1) https://docs.python-guide.org/writing/logging/ 2) https://docs.python.org/2/library/logging.config.html """ diff --git a/superset/data/countries.md b/superset/data/countries.md index da96dd8a0..042c7b3e8 100644 --- a/superset/data/countries.md +++ b/superset/data/countries.md @@ -17,7 +17,7 @@ specific language governing permissions and limitations under the License. --> This data was downloaded from the -[World's Health Organization's website](http://data.worldbank.org/data-catalog/health-nutrition-and-population-statistics) +[World's Health Organization's website](https://datacatalog.worldbank.org/dataset/health-nutrition-and-population-statistics) Here's the script that was used to massage the data: diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index c738c9f3a..04779049d 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -1659,7 +1659,7 @@ class BQEngineSpec(BaseEngineSpec): BigQuery dialect requires us to not use backtick in the fieldname which are nested. Using literal_column handles that issue. - http://docs.sqlalchemy.org/en/latest/core/tutorial.html#using-more-specific-text-with-table-literal-column-and-column + https://docs.sqlalchemy.org/en/latest/core/tutorial.html#using-more-specific-text-with-table-literal-column-and-column Also explicility specifying column names so we don't encounter duplicate column names in the result. """ diff --git a/superset/extract_table_names.py b/superset/extract_table_names.py index ffee24479..d612b9e05 100644 --- a/superset/extract_table_names.py +++ b/superset/extract_table_names.py @@ -26,7 +26,7 @@ # SELECT statements. # # See: -# http://groups.google.com/group/sqlparse/browse_thread/thread/b0bd9a022e9d4895 +# https://groups.google.com/forum/#!topic/sqlparse/sL2aAi6dSJU import sqlparse from sqlparse.sql import Identifier, IdentifierList from sqlparse.tokens import DML, Keyword diff --git a/superset/migrations/env.py b/superset/migrations/env.py index c957babbc..04849b08b 100755 --- a/superset/migrations/env.py +++ b/superset/migrations/env.py @@ -75,7 +75,7 @@ def run_migrations_online(): # this callback is used to prevent an auto-migration from being generated # when there are no changes to the schema - # reference: http://alembic.readthedocs.org/en/latest/cookbook.html + # reference: https://alembic.sqlalchemy.org/en/latest/cookbook.html def process_revision_directives(context, revision, directives): if getattr(config.cmd_opts, 'autogenerate', False): script = directives[0] diff --git a/superset/views/core.py b/superset/views/core.py index 2bee09d1b..eb15dad4a 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -219,7 +219,7 @@ class DatabaseView(SupersetModelView, DeleteMixin, YamlExportMixin): # noqa 'sqlalchemy_uri': utils.markdown( 'Refer to the ' '[SqlAlchemy docs]' - '(http://docs.sqlalchemy.org/en/rel_1_2/core/engines.html#' + '(https://docs.sqlalchemy.org/en/rel_1_2/core/engines.html#' 'database-urls) ' 'for more information on how to structure your URI.', True), 'expose_in_sqllab': _('Expose this DB in SQL Lab'), @@ -242,10 +242,10 @@ class DatabaseView(SupersetModelView, DeleteMixin, YamlExportMixin): # noqa 'JSON string containing extra configuration elements.
' '1. The ``engine_params`` object gets unpacked into the ' '[sqlalchemy.create_engine]' - '(http://docs.sqlalchemy.org/en/latest/core/engines.html#' + '(https://docs.sqlalchemy.org/en/latest/core/engines.html#' 'sqlalchemy.create_engine) call, while the ``metadata_params`` ' 'gets unpacked into the [sqlalchemy.MetaData]' - '(http://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html' + '(https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html' '#sqlalchemy.schema.MetaData) call.
' '2. The ``metadata_cache_timeout`` is a cache timeout setting ' 'in seconds for metadata fetch of this database. Specify it as '