f-teyssier commented on issue #31158: URL: https://github.com/apache/superset/issues/31158#issuecomment-3200490389
Hi, nothing new on this one ? I have the same issue on Superset 4.1.3 with playwright firefox: [Le PDF Misc Charts-1.pdf](https://github.com/user-attachments/files/21855089/Le.PDF.Misc.Charts-1.pdf) I have tried a lot of combinations with this but it's only effective on png export, not pdf. Here is my conf file: ``` import logging import os import sys from celery.schedules import crontab from flask_caching.backends.filesystemcache import FileSystemCache from flask_caching.backends.rediscache import RedisCache ###Configurations#### logger = logging.getLogger() #Version TAG=os.getenv("TAG") SQLALCHEMY_ECHO = True # Variables d'environnement pour la DB DATABASE_DIALECT = os.getenv("DATABASE_DIALECT") DATABASE_USER = os.getenv("POSTGRES_USER") DATABASE_PASSWORD = os.getenv("POSTGRES_PASSWORD") DATABASE_HOST = os.getenv("DATABASE_HOST") DATABASE_PORT = os.getenv("DATABASE_PORT") DATABASE_DB = os.getenv("POSTGRES_DB") # Connexion SQLAlchemy SQLALCHEMY_DATABASE_URI = ( f"{DATABASE_DIALECT}://" f"{DATABASE_USER}:{DATABASE_PASSWORD}@" f"{DATABASE_HOST}:{DATABASE_PORT}/{DATABASE_DB}" ) EXAMPLES_USER = os.getenv("EXAMPLES_USER") EXAMPLES_PASSWORD = os.getenv("EXAMPLES_PASSWORD") EXAMPLES_HOST = os.getenv("EXAMPLES_HOST") EXAMPLES_PORT = os.getenv("EXAMPLES_PORT") EXAMPLES_DB = os.getenv("EXAMPLES_DB") SQLALCHEMY_EXAMPLES_URI = ( f"{DATABASE_DIALECT}://" f"{EXAMPLES_USER}:{EXAMPLES_PASSWORD}@" f"{EXAMPLES_HOST}:{EXAMPLES_PORT}/{EXAMPLES_DB}" ) # Variables Redis REDIS_HOST = os.getenv("REDIS_HOST", "redis") REDIS_PORT = os.getenv("REDIS_PORT", "6379") REDIS_CELERY_DB = os.getenv("REDIS_CELERY_DB", "0") REDIS_RESULTS_DB = os.getenv("REDIS_RESULTS_DB", "1") # Configuration Celery CELERY_CONFIG = { "broker_url": f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}", "result_backend": f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}", "imports": ("superset.sql_lab", "superset.tasks.scheduler"), "worker_log_level": "INFO", "task_log_prefix": "superset.tasks", "beat_schedule": { "reports.scheduler": { "task": "reports.scheduler", "schedule": crontab(minute="*", hour="*"), }, "reports.prune_log": { "task": "reports.prune_log", "schedule": crontab(minute=10, hour=0), }, }, } # Cache général CACHE_CONFIG = { "CACHE_TYPE": "RedisCache", "CACHE_DEFAULT_TIMEOUT": 300, "CACHE_KEY_PREFIX": "superset_", "CACHE_REDIS_HOST": REDIS_HOST, "CACHE_REDIS_PORT": REDIS_PORT, "CACHE_REDIS_DB": REDIS_RESULTS_DB, } DATA_CACHE_CONFIG = CACHE_CONFIG # Backend pour les résultats SQL Lab RESULTS_BACKEND = RedisCache( host=REDIS_HOST, port=int(REDIS_PORT), db=int(REDIS_RESULTS_DB), key_prefix="superset_results" ) # Définir la clé secrète via une variable d'environnement import os SECRET_KEY = os.getenv("SUPERSET_SECRET_KEY") ####Tags Superset#### # SQL Lab SQLLAB_CTAS_NO_LIMIT = True # Localisation et sécurité BABEL_DEFAULT_LOCALE = 'fr' ENABLE_PROXY_FIX = True PREVENT_UNSAFE_DB_CONNECTIONS = True SESSION_COOKIE_SECURE = True WTF_CSRF_ENABLED = True # Logs log_level_text = os.getenv("SUPERSET_LOG_LEVEL", "INFO") LOG_LEVEL = getattr(logging, log_level_text.upper(), logging.INFO) logging.basicConfig(level=LOG_LEVEL) # SMTP hidden # Feature Flags FEATURE_FLAGS = { "ALERT_REPORTS": True, #Active les alertes et rapports auto "ALERTS_ATTACH_REPORTS": True, "ALERT_REPORT_TABS": True, "EMAIL_NOTIFICATIONS": True, #Active les emails de notification "EMBEDDED_SUPERSET": True, #Active l'embedding de superset dans d'autres pages web "EMBEDDABLE_CHARTS": True, #Active l'embedding des graphiques dans d'autres pages web "ENABLE_TEMPLATE_PROCESSING": True, #Active l'utilisation de Jinja (python like dans les requ�tes) "DASHBOARD_RBAC": True, #Droits d'acc�s pour les dashboard # "DASHBOARD_NATIVE_FILTERS": True, #Active les filtres natifs des dashboard # "VERSIONED_EXPORT": True, #Active la versioning des exports "ALLOW_ADHOC_SUBQUERY":True, #Activer les sous requ�tes dans les filtres "ALLOW_FULL_CSV_EXPORT":True, "DATE_FORMAT_IN_EMAIL_SUBJECT" : True, # Activer le formatage de date dans les objets des emails, https://strftime.org/ "PLAYWRIGHT_REPORTS_AND_THUMBNAILS" : True, "ENABLE_SUPERSET_META_DB" :True, #requ�tes cross DB, n�cessite la config :https://superset.apache.org/docs/configuration/databases#querying-across-databases "SCHEDULED_QUERIES": True, "DASHBOARD_VIRTUALIZATION": False, #Désactive la virtualisation des dashboards "ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS": True, "ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT": True } # Désactiver le mode dry-run pour envoyer réellement les notifications ALERT_REPORTS_NOTIFICATION_DRY_RUN = False SCREENSHOT_LOCATE_WAIT = 100 SCREENSHOT_LOAD_WAIT = 600 SCREENSHOT_PLAYWRIGHT_DEFAULT_TIMEOUT = 60_000 # URL de base pour les captures d'écran WEBDRIVER_BASEURL = "http://superset_app:8088" # URL conviviale pour les liens dans les emails WEBDRIVER_BASEURL_USER_FRIENDLY = hidden # Type de navigateur à utiliser pour les captures d'écran (firefox par défaut) WEBDRIVER_TYPE = "firefox" WEBDRIVER_WINDOW = { "dashboard": (1600, 2000), # Largeur augmentée x Hauteur "slice": (1600, 2000), "pixel_density": 3 # Densité de pixels accrue } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
