无法在Superset中找到”Embed dashboard”。

huangapple go评论65阅读模式
英文:

Can't find "Embed dashboard" in Superset

问题

我将把Superset仪表板嵌入到ReactJs中。当我使用默认的管理员用户登录时,我无法在我当前打开的仪表板下拉菜单中找到"嵌入仪表板"这个词。以前,我在config.py Superset中更改了一些设置。

SESSION_COOKIE_SAMESITE = None
ENABLE_PROXY_FIX = True
"EMBEDDED_SUPERSET": True
CORS_OPTIONS = {
  'supports_credentials': True,
  'allow_headers': ['*'],
  'resources':['*'],
  'origins': ['http://localhost:8088', 'http://localhost:8888']
}

还有docker-compose.yaml,在设置后重新启动Docker容器。

version: '3'
services:
  superset:
    image: apache/superset:latest
    ports:
      - 8088:8088
    container_name: superset
    restart: always
    volumes:
      - ../data/superset:/opt/superset/workspace
    environment:
      - TZ=Asia/Jakarta
      - SUPERSET_FEATURE_EMBEDDED_SUPERSET='true'

就像在我的仪表板上显示的那样:

无法在Superset中找到”Embed dashboard”。

如何让"嵌入仪表板"消息出现?设置中是否有任何错误?

谢谢。

英文:

I'm going to embed the Superset dashboard into ReactJs. When I login using the default admin user I can't find the words "Embed dashboard" in the dashboard dropdown that I'm currently opening. Previously I've changed some settings in config.py Superset

SESSION_COOKIE_SAMESITE = None
ENABLE_PROXY_FIX = True
"EMBEDDED_SUPERSET": True
CORS_OPTIONS = {
  'supports_credentials': True,
  'allow_headers': ['*'],
  'resources':['*'],
  'origins': ['http://localhost:8088', 'http://localhost:8888']
}

and docker-compose.yaml, after setting i'm restart docker container

version: '3'
services:
  superset:
    image: apache/superset:latest
    ports:
      - 8088:8088
    container_name: superset
    restart: always
    volumes:
      - ../data/superset:/opt/superset/workspace
    environment:
      - TZ=Asia/Jakarta
      - SUPERSET_FEATURE_EMBEDDED_SUPERSET='true'

like this display on my dashboard

无法在Superset中找到”Embed dashboard”。

How do I get the "Embed dashboard" message to appear? Are there any mistakes in the settings?

thanks.

答案1

得分: 2

https://www.tetranyde.com/blog/embedding-superset

> 启用 Superset 嵌入仪表板功能
如果您前往仪表板选项,将找不到嵌入仪表板选项。要启用它,请打开 superset_config.py(位于 docker/pythonpath_dev 目录内)- 此文件允许您配置 Superset 并添加以下功能标志:
>
> FEATURE_FLAGS = {..., "EMBEDDED_SUPERSET": True}

英文:

https://www.tetranyde.com/blog/embedding-superset

> Enable Superset Embed Dashboard Feature
If you go to dashboard options, there is no embed dashboard option. To enable it, open superset_config.py (located inside docker/pythonpath_dev) - this file allows you to configure superset and add the following feature flag:
>
> FEATURE_FLAGS = {..., "EMBEDDED_SUPERSET": True}

huangapple
  • 本文由 发表于 2023年2月8日 14:23:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/75382029.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定