diff --git a/docker/Dockerfile b/docker/Dockerfile index db3e36d4bd7ea..e07e233d548fd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + FROM python:3.6-slim # Configure environment diff --git a/docker/auth-kerberized.sh b/docker/auth-kerberized.sh index df8c63946c326..f5c38d1b29713 100644 --- a/docker/auth-kerberized.sh +++ b/docker/auth-kerberized.sh @@ -1,4 +1,20 @@ #!/usr/bin/env bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# principalKey=`klist -tke /etc/security/keytabs/$HIVE_KEYTAB_NAME | grep '@' | awk -F' ' '{print $4}'|head -1` kinit -kt /etc/security/keytabs/$HIVE_KEYTAB_NAME $principalKey \ No newline at end of file diff --git a/docker/cleanup-docker.sh b/docker/cleanup-docker.sh index 8b133260c2a33..cf4d51d1f936a 100644 --- a/docker/cleanup-docker.sh +++ b/docker/cleanup-docker.sh @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + set -e # remove all exited containers docker rm -v $(docker ps -a -q -f status=exited) diff --git a/docker/docker-build.sh b/docker/docker-build.sh index 42d7ce420d35b..e2fe2773f5de7 100644 --- a/docker/docker-build.sh +++ b/docker/docker-build.sh @@ -1,4 +1,20 @@ #!/usr/bin/env bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# set -ex START=$(date +%s) diff --git a/docker/docker-init.sh b/docker/docker-init.sh index aa43f17d6eb30..2a9b98f791af9 100755 --- a/docker/docker-init.sh +++ b/docker/docker-init.sh @@ -1,4 +1,20 @@ #!/usr/bin/env bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# set -ex diff --git a/docker/superset_config.py b/docker/superset_config.py index a4e8188dde915..20ce1c6a3da49 100644 --- a/docker/superset_config.py +++ b/docker/superset_config.py @@ -1,3 +1,21 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# pylint: disable=C,R,W + # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division diff --git a/superset/assets/src/dashboard/util/publishSubscriberUtil.js b/superset/assets/src/dashboard/util/publishSubscriberUtil.js index 5e5e7e3f05a0c..396085494faa1 100644 --- a/superset/assets/src/dashboard/util/publishSubscriberUtil.js +++ b/superset/assets/src/dashboard/util/publishSubscriberUtil.js @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import { union, find } from 'lodash'; export const APPLY_FILTER = 'APPLY_FILTER'; diff --git a/superset/assets/src/explore/components/AdhocColumnEditPopover.jsx b/superset/assets/src/explore/components/AdhocColumnEditPopover.jsx index 5e6da2a964967..13d315bedb75a 100644 --- a/superset/assets/src/explore/components/AdhocColumnEditPopover.jsx +++ b/superset/assets/src/explore/components/AdhocColumnEditPopover.jsx @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import React from 'react'; import PropTypes from 'prop-types'; import { Button, Popover, Tab, Tabs } from 'react-bootstrap'; diff --git a/superset/assets/src/explore/components/AdhocColumnEditPopoverContent.jsx b/superset/assets/src/explore/components/AdhocColumnEditPopoverContent.jsx index df8458f02c82a..53546a01a0958 100644 --- a/superset/assets/src/explore/components/AdhocColumnEditPopoverContent.jsx +++ b/superset/assets/src/explore/components/AdhocColumnEditPopoverContent.jsx @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import React from 'react'; import d3 from 'd3'; import PropTypes from 'prop-types'; diff --git a/superset/assets/src/explore/components/AdhocColumnOption.jsx b/superset/assets/src/explore/components/AdhocColumnOption.jsx index 5e37a2ce2e844..cd4d608199356 100644 --- a/superset/assets/src/explore/components/AdhocColumnOption.jsx +++ b/superset/assets/src/explore/components/AdhocColumnOption.jsx @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import React from 'react'; import PropTypes from 'prop-types'; import { Label, OverlayTrigger } from 'react-bootstrap'; diff --git a/superset/assets/src/explore/components/controls/AdhocColumnControl.jsx b/superset/assets/src/explore/components/controls/AdhocColumnControl.jsx index 865dc1dbf0edc..751178fd10004 100644 --- a/superset/assets/src/explore/components/controls/AdhocColumnControl.jsx +++ b/superset/assets/src/explore/components/controls/AdhocColumnControl.jsx @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ import React from 'react'; import PropTypes from 'prop-types'; import VirtualizedSelect from 'react-virtualized-select'; diff --git a/superset/assets/src/explore/controlPanels/LeafletMap.js b/superset/assets/src/explore/controlPanels/LeafletMap.js index 6647e02adba5f..181ec1fd98464 100644 --- a/superset/assets/src/explore/controlPanels/LeafletMap.js +++ b/superset/assets/src/explore/controlPanels/LeafletMap.js @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { t } from '@superset-ui/translation'; export default { diff --git a/superset/assets/src/login.js b/superset/assets/src/login.js index 75889c532f64c..d02243864dd42 100644 --- a/superset/assets/src/login.js +++ b/superset/assets/src/login.js @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { encryptText } from './utils/common'; /** * apply onsubmit event for login form to encrypt pwd before send in request diff --git a/superset/assets/src/visualizations/LeafletMap/LeafletMap.css b/superset/assets/src/visualizations/LeafletMap/LeafletMap.css index 9302008872e4a..da9593da95cfa 100644 --- a/superset/assets/src/visualizations/LeafletMap/LeafletMap.css +++ b/superset/assets/src/visualizations/LeafletMap/LeafletMap.css @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .color_column_div{ } diff --git a/superset/assets/src/visualizations/LeafletMap/LeafletMap.js b/superset/assets/src/visualizations/LeafletMap/LeafletMap.js index 41bb3c496c016..d1f0231664d0b 100644 --- a/superset/assets/src/visualizations/LeafletMap/LeafletMap.js +++ b/superset/assets/src/visualizations/LeafletMap/LeafletMap.js @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import './LeafletMap.css'; // todo: use types to avoid full path of libs import '../../../node_modules/leaflet/dist/leaflet.css'; diff --git a/superset/assets/src/visualizations/LeafletMap/LeafletMapChartPlugin.js b/superset/assets/src/visualizations/LeafletMap/LeafletMapChartPlugin.js index 63d58c7163dd4..8cca8f0338c03 100644 --- a/superset/assets/src/visualizations/LeafletMap/LeafletMapChartPlugin.js +++ b/superset/assets/src/visualizations/LeafletMap/LeafletMapChartPlugin.js @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import { t } from '@superset-ui/translation'; import { ChartMetadata, ChartPlugin } from '@superset-ui/chart'; import thumbnail from './images/thumbnail.png'; diff --git a/superset/assets/src/visualizations/LeafletMap/ReactLeafletMap.js b/superset/assets/src/visualizations/LeafletMap/ReactLeafletMap.js index 875737864d039..ededdcba01855 100644 --- a/superset/assets/src/visualizations/LeafletMap/ReactLeafletMap.js +++ b/superset/assets/src/visualizations/LeafletMap/ReactLeafletMap.js @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import reactify from '../../utils/reactify'; import Component from './LeafletMap'; diff --git a/superset/assets/src/visualizations/LeafletMap/graphIcon.js b/superset/assets/src/visualizations/LeafletMap/graphIcon.js index e01832c7e85aa..376f93bf670a9 100644 --- a/superset/assets/src/visualizations/LeafletMap/graphIcon.js +++ b/superset/assets/src/visualizations/LeafletMap/graphIcon.js @@ -1,10 +1,22 @@ /** - * Created by rasmiranjan.nayak on 28/05/15. + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ -/* - * L.ENB is a circle overlay with a permanent pixel radius. - */ function drawHexagon(cntxt, x_1,y_1,y_2, options){ cntxt.moveTo(0, 0); cntxt.lineTo(x_1, y_1); diff --git a/superset/assets/src/visualizations/LeafletMap/transformProps.js b/superset/assets/src/visualizations/LeafletMap/transformProps.js index a025b00184ad0..86fbf2ec7e0a0 100644 --- a/superset/assets/src/visualizations/LeafletMap/transformProps.js +++ b/superset/assets/src/visualizations/LeafletMap/transformProps.js @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + export default function transformProps(chartProps) { console.log(chartProps); const { height , formData, payload , onAddFilter } = chartProps; diff --git a/superset/assets/stylesheets/guavus.less b/superset/assets/stylesheets/guavus.less index 3450f86e5e3b1..df8dc58bd3374 100644 --- a/superset/assets/stylesheets/guavus.less +++ b/superset/assets/stylesheets/guavus.less @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + //=== Inverted navbar // Reset inverted navbar basics @navbar-inverse-bg: #383846; diff --git a/superset/views/add_to_dashboard.py b/superset/views/add_to_dashboard.py index 0fbb2cec55760..33b3ff95a4d92 100644 --- a/superset/views/add_to_dashboard.py +++ b/superset/views/add_to_dashboard.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# pylint: disable=C,R,W + import logging import simplejson as json diff --git a/superset/views/default_slice_metadata.py b/superset/views/default_slice_metadata.py index 6281a55ecdb82..94d99dfd67cb5 100644 --- a/superset/views/default_slice_metadata.py +++ b/superset/views/default_slice_metadata.py @@ -1,3 +1,21 @@ +#!/usr/bin/env python +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# pylint: disable=C,R,W DEFAULT_SLICES = { 'table': { 'slice_name':'Untitled',