mirror of
https://github.com/apache/superset.git
synced 2026-05-01 22:14:23 +00:00
Compare commits
25 Commits
docs/testi
...
cherries
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84ee6d5084 | ||
|
|
5d4d7febb9 | ||
|
|
cbedb8b814 | ||
|
|
3fac9367fb | ||
|
|
63cbcb80c3 | ||
|
|
36956a5d24 | ||
|
|
1c76d583b3 | ||
|
|
ee77f11b27 | ||
|
|
3b40e90b40 | ||
|
|
6cd83c3025 | ||
|
|
af941736a4 | ||
|
|
e502c22c70 | ||
|
|
46411bc4ad | ||
|
|
32e06616d9 | ||
|
|
b3bc1429ac | ||
|
|
9b3eef893a | ||
|
|
151657ba3e | ||
|
|
23cc83f300 | ||
|
|
6e820b8355 | ||
|
|
8db14c47e7 | ||
|
|
58ff72776d | ||
|
|
b72bf98f68 | ||
|
|
32b466184e | ||
|
|
bfdfd66160 | ||
|
|
a4c1d6d5c0 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "superset",
|
"name": "superset",
|
||||||
"version": "0.23.0dev",
|
"version": "0.23.0rc1",
|
||||||
"description": "Superset is a data exploration platform designed to be visual, intuitive, and interactive.",
|
"description": "Superset is a data exploration platform designed to be visual, intuitive, and interactive.",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
@@ -77,6 +77,8 @@ export default function geoJsonLayer(formData, payload, slice) {
|
|||||||
features = jsFnMutator(features);
|
features = jsFnMutator(features);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
features = [];
|
||||||
|
recurseGeoJson(payload.data, propOverrides, jsFnMutator);
|
||||||
return new GeoJsonLayer({
|
return new GeoJsonLayer({
|
||||||
id: `geojson-layer-${fd.slice_id}`,
|
id: `geojson-layer-${fd.slice_id}`,
|
||||||
filled: fd.filled,
|
filled: fd.filled,
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{% extends "appbuilder/base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div id="loginbox" style="margin-top:50px;" class="mainbox col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2">
|
||||||
|
<center>
|
||||||
|
<a href="/login/google">
|
||||||
|
<img width="300" src="https://developers.google.com/accounts/images/sign-in-with-google.png">
|
||||||
|
</a>
|
||||||
|
</center>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
@@ -2,3 +2,4 @@ from . import base # noqa
|
|||||||
from . import core # noqa
|
from . import core # noqa
|
||||||
from . import sql_lab # noqa
|
from . import sql_lab # noqa
|
||||||
from . import annotations # noqa
|
from . import annotations # noqa
|
||||||
|
from . import lyft # noqa
|
||||||
|
|||||||
56
superset/views/lyft.py
Normal file
56
superset/views/lyft.py
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
from __future__ import absolute_import
|
||||||
|
from __future__ import division
|
||||||
|
from __future__ import print_function
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import json
|
||||||
|
import logging
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
from flask import (
|
||||||
|
g, request, Response,
|
||||||
|
)
|
||||||
|
from flask_appbuilder import expose
|
||||||
|
from flask_babel import gettext as __
|
||||||
|
|
||||||
|
from superset import (
|
||||||
|
app, appbuilder, db, utils, sm,
|
||||||
|
)
|
||||||
|
|
||||||
|
import superset.models.core as models
|
||||||
|
from superset.views.core import Superset
|
||||||
|
from superset.utils import QueryStatus
|
||||||
|
from .base import (
|
||||||
|
json_error_response, generate_download_headers, CsvResponse,
|
||||||
|
)
|
||||||
|
|
||||||
|
config = app.config
|
||||||
|
stats_logger = config.get('STATS_LOGGER')
|
||||||
|
log_this = models.Log.log_this
|
||||||
|
can_access = utils.can_access
|
||||||
|
DAR = models.DatasourceAccessRequest
|
||||||
|
|
||||||
|
|
||||||
|
ALL_DATASOURCE_ACCESS_ERR = __(
|
||||||
|
'This endpoint requires the `all_datasource_access` permission')
|
||||||
|
DATASOURCE_MISSING_ERR = __('The datasource seems to have been deleted')
|
||||||
|
ACCESS_REQUEST_MISSING_ERR = __(
|
||||||
|
'The access requests seem to have been deleted')
|
||||||
|
USER_MISSING_ERR = __('The user seems to have been deleted')
|
||||||
|
DATASOURCE_ACCESS_ERR = __("You don't have access to this datasource")
|
||||||
|
|
||||||
|
|
||||||
|
def json_success(json_msg, status=200):
|
||||||
|
return Response(json_msg, status=status, mimetype='application/json')
|
||||||
|
|
||||||
|
|
||||||
|
class Lyft(Superset):
|
||||||
|
|
||||||
|
@log_this
|
||||||
|
@expose('/explore_json/<datasource_type>/<datasource_id>/')
|
||||||
|
def explore_json(self, datasource_type, datasource_id):
|
||||||
|
if sm.check_api_access():
|
||||||
|
return super(Lyft, self).explore_json(datasource_type, datasource_id)
|
||||||
|
return json_error_response("Access denied")
|
||||||
|
|
||||||
|
appbuilder.add_view_no_menu(Lyft)
|
||||||
Reference in New Issue
Block a user