mirror of https://github.com/apache/superset.git
feat: Changing Dataset names (#16199)
* added google alert * changing Dataset Names
This commit is contained in:
parent
98fc29cbbb
commit
6c304b83a9
|
@ -66,7 +66,7 @@ Navigate to **Data ‣ Datasets** and select the **+ Dataset** button in the top
|
|||
|
||||
A modal window should pop up in front of you. Select your **Database**,
|
||||
**Schema**, and **Table** using the drop downs that appear. In the following example,
|
||||
we register the **cleaned_sales_data** table from the **examples** database.
|
||||
we register the **Vehicle Sales** table from the **examples** database.
|
||||
|
||||
<img src="/images/tutorial_09_add_new_table.png" />
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ const createProps = () => ({
|
|||
cache_timeout: null,
|
||||
changed_on: '2021-03-19T16:30:56.750230',
|
||||
changed_on_humanized: '3 days ago',
|
||||
datasource: 'FCC 2018 Survey',
|
||||
datasource: 'FCC Survey Results',
|
||||
description: null,
|
||||
description_markeddown: '',
|
||||
edit_url: '/chart/edit/318',
|
||||
|
|
|
@ -29,7 +29,7 @@ const createProps = () => ({
|
|||
cache_timeout: null,
|
||||
changed_on: '2021-03-19T16:30:56.750230',
|
||||
changed_on_humanized: '7 days ago',
|
||||
datasource: 'FCC 2018 Survey',
|
||||
datasource: 'FCC Survey Results',
|
||||
description: null,
|
||||
description_markeddown: '',
|
||||
edit_url: '/chart/edit/318',
|
||||
|
|
|
@ -27,7 +27,7 @@ from .helpers import get_example_data, get_table_connector_registry
|
|||
|
||||
|
||||
def load_bart_lines(only_metadata: bool = False, force: bool = False) -> None:
|
||||
tbl_name = "bart_lines"
|
||||
tbl_name = "San Franciso BART Lines"
|
||||
database = get_example_database()
|
||||
table_exists = database.has_table_by_name(tbl_name)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: FCC 2018 Survey
|
||||
table_name: FCC Survey Results
|
||||
main_dttm_col: null
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: channel_members
|
||||
table_name: Slack Channels and Members
|
||||
main_dttm_col: null
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: channels
|
||||
table_name: Slack Channels
|
||||
main_dttm_col: created
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: cleaned_sales_data
|
||||
table_name: Vehicle Sales
|
||||
main_dttm_col: OrderDate
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: covid_vaccines
|
||||
table_name: COVID Vaccines
|
||||
main_dttm_col: null
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: exported_stats
|
||||
table_name: Slack Exported Metrics
|
||||
main_dttm_col: Date
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -14,14 +14,14 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: members_channels_2
|
||||
table_name: Slack Members and Channels
|
||||
main_dttm_col: null
|
||||
description: null
|
||||
default_endpoint: null
|
||||
offset: 0
|
||||
cache_timeout: null
|
||||
schema: null
|
||||
sql: SELECT c.name AS channel_name, u.name AS member_name FROM channel_members cm
|
||||
sql: SELECT c.name AS channel_name, u.name AS member_name FROM "Slack Channels and Members" cm
|
||||
JOIN channels c ON cm.channel_id = c.id JOIN users u ON cm.user_id = u.id
|
||||
params: null
|
||||
template_params: null
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: messages
|
||||
table_name: Slack Messages
|
||||
main_dttm_col: bot_profile__updated
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -14,14 +14,14 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: messages_channels
|
||||
table_name: Slack Messages and Channels
|
||||
main_dttm_col: null
|
||||
description: null
|
||||
default_endpoint: null
|
||||
offset: 0
|
||||
cache_timeout: null
|
||||
schema: null
|
||||
sql: SELECT m.ts, c.name, m.text FROM messages m JOIN channels c ON m.channel_id =
|
||||
sql: SELECT m.ts, c.name, m.text FROM messages m JOIN "Slack Messages" c ON m.channel_id =
|
||||
c.id
|
||||
params: null
|
||||
template_params: null
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: new_members_daily
|
||||
table_name: Slack Daily Member Count
|
||||
main_dttm_col: null
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
@ -22,7 +22,7 @@ offset: 0
|
|||
cache_timeout: null
|
||||
schema: null
|
||||
sql: SELECT date, total_membership - lag(total_membership) OVER (ORDER BY date) AS
|
||||
new_members FROM exported_stats
|
||||
new_members FROM "Slack Exported Metrics"
|
||||
params: null
|
||||
template_params: null
|
||||
filter_select_enabled: true
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
table_name: threads
|
||||
table_name: Slack Threads
|
||||
main_dttm_col: ts
|
||||
description: null
|
||||
default_endpoint: null
|
||||
|
|
|
@ -176,7 +176,7 @@ def load_deck_dash() -> None:
|
|||
print("Loading deck.gl dashboard")
|
||||
slices = []
|
||||
table = get_table_connector_registry()
|
||||
tbl = db.session.query(table).filter_by(table_name="long_lat").first()
|
||||
tbl = db.session.query(table).filter_by(table_name="Sample Geodata").first()
|
||||
slice_data = {
|
||||
"spatial": {"type": "latlong", "lonCol": "LON", "latCol": "LAT"},
|
||||
"color_picker": COLOR_RED,
|
||||
|
@ -323,7 +323,9 @@ def load_deck_dash() -> None:
|
|||
slices.append(slc)
|
||||
|
||||
polygon_tbl = (
|
||||
db.session.query(table).filter_by(table_name="sf_population_polygons").first()
|
||||
db.session.query(table)
|
||||
.filter_by(table_name="San Francisco Population Polygons")
|
||||
.first()
|
||||
)
|
||||
slice_data = {
|
||||
"datasource": "11__table",
|
||||
|
@ -456,7 +458,7 @@ def load_deck_dash() -> None:
|
|||
viz_type="deck_arc",
|
||||
datasource_type="table",
|
||||
datasource_id=db.session.query(table)
|
||||
.filter_by(table_name="flights")
|
||||
.filter_by(table_name="Flights")
|
||||
.first()
|
||||
.id,
|
||||
params=get_slice_json(slice_data),
|
||||
|
@ -508,7 +510,7 @@ def load_deck_dash() -> None:
|
|||
viz_type="deck_path",
|
||||
datasource_type="table",
|
||||
datasource_id=db.session.query(table)
|
||||
.filter_by(table_name="bart_lines")
|
||||
.filter_by(table_name="San Franciso BART Lines")
|
||||
.first()
|
||||
.id,
|
||||
params=get_slice_json(slice_data),
|
||||
|
|
|
@ -25,7 +25,7 @@ from .helpers import get_example_data, get_table_connector_registry
|
|||
|
||||
def load_flights(only_metadata: bool = False, force: bool = False) -> None:
|
||||
"""Loading random time series data from a zip file in the repo"""
|
||||
tbl_name = "flights"
|
||||
tbl_name = "Flights"
|
||||
database = utils.get_example_database()
|
||||
table_exists = database.has_table_by_name(tbl_name)
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ from .helpers import (
|
|||
|
||||
def load_long_lat_data(only_metadata: bool = False, force: bool = False) -> None:
|
||||
"""Loading lat/long data from a csv file in the repo"""
|
||||
tbl_name = "long_lat"
|
||||
tbl_name = "Sample Geodata"
|
||||
database = utils.get_example_database()
|
||||
table_exists = database.has_table_by_name(tbl_name)
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ from .helpers import get_example_data, get_table_connector_registry
|
|||
def load_sf_population_polygons(
|
||||
only_metadata: bool = False, force: bool = False
|
||||
) -> None:
|
||||
tbl_name = "sf_population_polygons"
|
||||
tbl_name = "San Francisco Population Polygons"
|
||||
database = utils.get_example_database()
|
||||
table_exists = database.has_table_by_name(tbl_name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue